Uses of Enum Class
org.docx4j.wml.STDocProtect
Packages that use STDocProtect
Package
Description
-
Uses of STDocProtect in org.docx4j.openpackaging.packages
Methods in org.docx4j.openpackaging.packages with parameters of type STDocProtectModifier and TypeMethodDescriptionbooleanProtectDocument.isRestrictEditingWith(STDocProtect editValue) Verifies the documentProtection tag inside settings.xml file if the protection is enforced (w:enforcement="1") and if the kind of protection equals to passed (STDocProtect.Enum editValue)voidProtectDocument.restrictEditing(STDocProtect editValue) Enforces the protection with the option specified by passed editValue.
In the documentProtection tag inside settings.xml file
it sets the value of enforcement to "1" (w:enforcement="1")
and the value of edit to the passed editValue (w:edit="[passed editValue]")
sample snippet from settings.xmlvoidProtectDocument.restrictEditing(STDocProtect editValue, String password) Enforces the protection with the option specified by passed editValue and password, using rsaFull (sha1) (like Word 2010).voidProtectDocument.restrictEditing(STDocProtect editValue, String password, HashAlgorithm hashAlgo) Enforces the protection with the option specified by passed editValue, password, and HashAlgorithm for the password. -
Uses of STDocProtect in org.docx4j.openpackaging.parts.WordprocessingML
Methods in org.docx4j.openpackaging.parts.WordprocessingML with parameters of type STDocProtectModifier and TypeMethodDescriptionbooleanDocumentSettingsPart.isRestrictEditingWith(STDocProtect editValue) Verifies the documentProtection tag inside settings.xml file if the protection is enforced (w:enforcement="1") and if the kind of protection equals to passed (STDocProtect.Enum editValue)voidDocumentSettingsPart.protectRestrictEditing(STDocProtect editValue, String password, HashAlgorithm hashAlgo) Enforces the protection with the option specified by passed editValue, password, and HashAlgorithm for the password. -
Uses of STDocProtect in org.docx4j.wml
Fields in org.docx4j.wml declared as STDocProtectMethods in org.docx4j.wml that return STDocProtectModifier and TypeMethodDescriptionstatic STDocProtectCTDocProtect.getEdit()Gets the value of the edit property.static STDocProtectReturns the enum constant of this class with the specified name.static STDocProtect[]STDocProtect.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.docx4j.wml with parameters of type STDocProtectModifier and TypeMethodDescriptionvoidCTDocProtect.setEdit(STDocProtect value) Sets the value of the edit property.