Class AbstractProfileSubsystem

    • Field Detail

      • PROP_CHECK_OWNER

        protected static final java.lang.String PROP_CHECK_OWNER
        See Also:
        Constant Field Values
      • mProfiles

        protected java.util.LinkedHashMap<java.lang.String,​Profile> mProfiles
      • mProfileClassIds

        protected java.util.Hashtable<java.lang.String,​java.lang.String> mProfileClassIds
    • Constructor Detail

      • AbstractProfileSubsystem

        public AbstractProfileSubsystem()
    • Method Detail

      • getConfigStore

        public IConfigStore getConfigStore()
        Returns the root configuration storage of this system.

        Specified by:
        getConfigStore in interface ISubsystem
        Returns:
        configuration store of this subsystem
      • getId

        public java.lang.String getId()
        Retrieves the name of this subsystem.
        Specified by:
        getId in interface ISubsystem
        Returns:
        subsystem identifier
      • setId

        public void setId​(java.lang.String id)
                   throws EBaseException
        Sets specific to this subsystem.
        Specified by:
        setId in interface ISubsystem
        Parameters:
        id - subsystem identifier
        Throws:
        EBaseException - failed to set id
      • enableProfile

        public void enableProfile​(java.lang.String id,
                                  java.lang.String enableBy)
                           throws com.netscape.certsrv.profile.EProfileException
        Enables a profile for execution.
        Throws:
        com.netscape.certsrv.profile.EProfileException
      • getProfile

        public Profile getProfile​(java.lang.String id)
                           throws com.netscape.certsrv.profile.EProfileException
        Retrieves a profile by id.
        Throws:
        com.netscape.certsrv.profile.EProfileException
      • disableProfile

        public void disableProfile​(java.lang.String id)
                            throws com.netscape.certsrv.profile.EProfileException
        Disables a profile for execution.
        Throws:
        com.netscape.certsrv.profile.EProfileException
      • commitProfile

        public void commitProfile​(java.lang.String id)
                           throws com.netscape.certsrv.profile.EProfileException
        Commits a profile.
        Throws:
        com.netscape.certsrv.profile.EProfileException
      • commitConfigStore

        protected void commitConfigStore​(java.lang.String id,
                                         IConfigStore cs)
                                  throws com.netscape.certsrv.profile.EProfileException
        Throws:
        com.netscape.certsrv.profile.EProfileException
      • getProfileClassId

        public java.lang.String getProfileClassId​(java.lang.String id)
      • getProfileIds

        public java.util.Enumeration<java.lang.String> getProfileIds()
        Retrieves a list of profile ids. The return list is of type String.
      • checkOwner

        public boolean checkOwner()
        Checks if owner id should be enforced during profile approval.
        Returns:
        true if approval should be checked