Class ClassificationAdminHandler

    • Field Detail

      • levelLabels

        protected java.lang.String[] levelLabels
      • levelLabelsMLMap

        protected java.util.HashMap<java.lang.String,​java.lang.String[]> levelLabelsMLMap
      • levelColors

        protected java.lang.String[] levelColors
      • levelDescriptions

        protected java.lang.String[] levelDescriptions
      • levelDescriptionsMLMap

        protected java.util.HashMap<java.lang.String,​java.lang.String[]> levelDescriptionsMLMap
    • Constructor Detail

      • ClassificationAdminHandler

        public ClassificationAdminHandler()
    • Method Detail

      • init

        protected void init()
        Description copied from class: JcmsFormHandler
        Method to implement if you need to initialize your handler from parameter received, prior to all security validation.

        You must absolutely not perform any action which modify data or site configuration.

        Therefore it is strongly recommend NOT TO implement this method, or use very wisely.

        Overrides:
        init in class JcmsFormHandler
      • processAction

        public boolean processAction()
                              throws java.io.IOException
        Description copied from class: JcmsFormHandler
        Method to be implemented to check/validate action to be performed and process them.

        Default implementation is to return false. No need to call super method.

        This method may NOT be invoked at all if security validation are not met.

        You must ensure your handler and JSP can work properly without any code invoked in this method.

        Overrides:
        processAction in class JcmsFormHandler
        Returns:
        false if no redirection is needed, true otherwise
        Throws:
        java.io.IOException - IO Exception
      • setOpSave

        public void setOpSave​(java.lang.String opSave)
      • setOpSaveAdvanced

        public void setOpSaveAdvanced​(java.lang.String opSaveAdvanced)
      • getFeatureParamName

        public java.lang.String getFeatureParamName​(ClassifiedFeature feat)
      • getConstraintParamName

        public java.lang.String getConstraintParamName​(ClassifiedConstraint cons)
      • getDisabledFeatures

        public java.util.Set<ClassifiedFeature> getDisabledFeatures​(int auditedLevel)
      • getEnabledFeatures

        public java.util.Set<ClassifiedFeature> getEnabledFeatures​(int auditedLevel)
      • getRequiredConstraints

        public java.util.Set<ClassifiedConstraint> getRequiredConstraints​(int auditedLevel)
      • getOptionalConstraints

        public java.util.Set<ClassifiedConstraint> getOptionalConstraints​(int auditedLevel)
      • setClassificationEnabled

        public void setClassificationEnabled​(boolean val)
      • getAvailableClassificationEnabled

        public boolean getAvailableClassificationEnabled()
      • setClassificationMemberClearanceEnabled

        public void setClassificationMemberClearanceEnabled​(boolean val)
      • getAvailableClassificationMemberClearanceEnabled

        public boolean getAvailableClassificationMemberClearanceEnabled()
      • setClassificationLevelLabels

        public void setClassificationLevelLabels​(java.lang.String... labels)
      • getAvailableClassificationLevelColor

        public java.lang.String getAvailableClassificationLevelColor​(int level)
      • getAvailableClassificationLevelDescriptions

        public java.util.Map<java.lang.String,​java.lang.String> getAvailableClassificationLevelDescriptions​(int level)
      • getAvailableClassificationLevelLabels

        public java.util.Map<java.lang.String,​java.lang.String> getAvailableClassificationLevelLabels​(int level)
      • getAvailableClassificationLevelLabels

        public java.util.Map<java.lang.String,​java.lang.String[]> getAvailableClassificationLevelLabels()
      • setClassificationLevelColors

        public void setClassificationLevelColors​(java.lang.String... colors)
      • getAvailableClassificationLevelColors

        public java.util.List<java.lang.String> getAvailableClassificationLevelColors()
      • setClassificationLevelDescriptions

        public void setClassificationLevelDescriptions​(java.lang.String... descriptions)
      • getAvailableClassificationLevelDescriptions

        public java.util.Map<java.lang.String,​java.lang.String[]> getAvailableClassificationLevelDescriptions()
      • getLevel

        public int getLevel()
      • setLevel

        public void setLevel​(int level)
      • getMaximumLevel

        public int getMaximumLevel()
      • getClassificationLevelPath

        public java.lang.String getClassificationLevelPath​(int level)
      • getAvailableBaselineLevel

        public int getAvailableBaselineLevel()
      • setBaselineLevel

        public void setBaselineLevel​(int level)