com.aspose.cells

Class WriteProtection

  • java.lang.Object
    • com.aspose.cells.WriteProtection
public class WriteProtection 
extends java.lang.Object

Specifies write protection settings for a workbook.

Constructor Summary
 
Property Getters/Setters Summary
booleanisWriteProtected()
Indicates whether this workbook is write protected.
voidsetPassword(java.lang.Stringvalue)
Sets the protected password to modify the file.
booleangetRecommendReadOnly()
void
setRecommendReadOnly(booleanvalue)
Indicates if the Read Only Recommended option is selected.
 
Method Summary
booleanvalidatePassword(java.lang.Stringpassword)
Returns true if the specified password is the same as the write-protection password the file was protected with.
 

    • Constructor Detail

      • WriteProtection

        public WriteProtection()
    • Property Getters/Setters Detail

      • getRecommendReadOnly/setRecommendReadOnly

        public boolean getRecommendReadOnly() / public void setRecommendReadOnly(boolean value)
        
        Indicates if the Read Only Recommended option is selected.
      • isWriteProtected

        public boolean isWriteProtected()
        
        Indicates whether this workbook is write protected.
      • setPassword

        public void setPassword(java.lang.String value)
        
        Sets the protected password to modify the file.
    • Method Detail

      • validatePassword

        public boolean validatePassword(java.lang.String password)
        Returns true if the specified password is the same as the write-protection password the file was protected with.
        Parameters:
        password - The specified password.
        Returns: