public interface IProfileSubsystem extends ISubsystem
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Modifier and Type | Method and Description |
---|---|
boolean |
checkOwner()
Checks if owner id should be enforced during profile approval.
|
IProfile |
createProfile(java.lang.String id,
java.lang.String classid,
java.lang.String className,
java.lang.String configFile)
Creates new profile.
|
void |
createProfileConfig(java.lang.String id,
java.lang.String classId,
java.lang.String configPath)
Creates a new profile configuration file.
|
void |
deleteProfile(java.lang.String id,
java.lang.String configFile)
Deletes profile.
|
void |
disableProfile(java.lang.String id)
Disables a profile.
|
void |
enableProfile(java.lang.String id,
java.lang.String enableBy)
Enables a profile.
|
IProfile |
getProfile(java.lang.String id)
Retrieves a profile by id.
|
java.lang.String |
getProfileClassId(java.lang.String id)
Retrieves the id of the implementation of the given profile.
|
java.lang.String |
getProfileEnableBy(java.lang.String id)
Retrieves the approver of the given profile.
|
java.util.Enumeration |
getProfileIds()
Retrieves a list of profile ids.
|
boolean |
isProfileEnable(java.lang.String id)
Checks if a profile is approved by an agent or not.
|
getConfigStore, getId, init, setId, shutdown, startup
static final java.lang.String ID
IProfile getProfile(java.lang.String id) throws EProfileException
EProfileException
- failed to retrieveboolean isProfileEnable(java.lang.String id)
id
- profile idjava.lang.String getProfileEnableBy(java.lang.String id)
id
- profile idIProfile createProfile(java.lang.String id, java.lang.String classid, java.lang.String className, java.lang.String configFile) throws EProfileException
id
- profile idclassid
- implementation idclassName
- class NameconfigFile
- configuration fileEProfileException
- failed to create profilevoid deleteProfile(java.lang.String id, java.lang.String configFile) throws EProfileException
id
- profile idconfigFile
- configuration fileEProfileException
- failed to delete profilevoid createProfileConfig(java.lang.String id, java.lang.String classId, java.lang.String configPath) throws EProfileException
id
- profile idclassId
- implementation idconfigPath
- location to create the configuration filefailed
- to create profileEProfileException
void enableProfile(java.lang.String id, java.lang.String enableBy) throws EProfileException
id
- profile idenableBy
- agent's user idEProfileException
- failed to enable profilevoid disableProfile(java.lang.String id) throws EProfileException
id
- profile idEProfileException
- failed to disablejava.lang.String getProfileClassId(java.lang.String id)
id
- profile idjava.util.Enumeration getProfileIds()
boolean checkOwner()