Enum XarExtensionConfiguration.DocumentProtection

    • Method Detail

      • values

        public static XarExtensionConfiguration.DocumentProtection[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (XarExtensionConfiguration.DocumentProtection c : XarExtensionConfiguration.DocumentProtection.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static XarExtensionConfiguration.DocumentProtection valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isWarning

        public boolean isWarning()
        Returns:
        true if a warning should be showed when editing a protected document
      • isDeny

        public boolean isDeny()
        Returns:
        true if EDIT/DELETE rights should be denied
      • isForced

        public boolean isForced()
        Returns:
        true if the deny should apply to admins
      • isSimple

        public boolean isSimple()
        Returns:
        true if the deny should apply only to simple user and not advanced users