Interface IProfileSubsystem

  • All Superinterfaces:
    ISubsystem

    public interface IProfileSubsystem
    extends ISubsystem
    This represents the profile subsystem that manages a list of profiles.
    Version:
    $Revision$, $Date$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ID  
    • Method Detail

      • isProfileEnable

        boolean isProfileEnable​(java.lang.String id)
        Checks if a profile is approved by an agent or not.
        Parameters:
        id - profile id
        Returns:
        true if profile is approved
      • getProfileEnableBy

        java.lang.String getProfileEnableBy​(java.lang.String id)
        Retrieves the approver of the given profile.
        Parameters:
        id - profile id
        Returns:
        user id of the agent who has approved the profile
      • createProfile

        IProfile createProfile​(java.lang.String id,
                               java.lang.String classid,
                               java.lang.String className)
                        throws EProfileException
        Creates new profile.
        Parameters:
        id - profile id
        classid - implementation id
        className - class Name
        Throws:
        EProfileException - failed to create profile
      • deleteProfile

        void deleteProfile​(java.lang.String id)
                    throws EProfileException
        Deletes profile.
        Parameters:
        id - profile id
        Throws:
        EProfileException - failed to delete profile
      • enableProfile

        void enableProfile​(java.lang.String id,
                           java.lang.String enableBy)
                    throws EProfileException
        Enables a profile.
        Parameters:
        id - profile id
        enableBy - agent's user id
        Throws:
        EProfileException - failed to enable profile
      • disableProfile

        void disableProfile​(java.lang.String id)
                     throws EProfileException
        Disables a profile.
        Parameters:
        id - profile id
        Throws:
        EProfileException - failed to disable
      • getProfileClassId

        java.lang.String getProfileClassId​(java.lang.String id)
        Retrieves the id of the implementation of the given profile.
        Parameters:
        id - profile id
        Returns:
        implementation id managed by the registry
      • getProfileIds

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

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