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.
|
void |
commitProfile(java.lang.String id)
Commit a profile's underlying config store.
|
IProfile |
createProfile(java.lang.String id,
java.lang.String classid,
java.lang.String className)
Creates new profile.
|
void |
deleteProfile(java.lang.String id)
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<java.lang.String> |
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) throws EProfileException
id
- profile idclassid
- implementation idclassName
- class NameEProfileException
- failed to create profilevoid deleteProfile(java.lang.String id) throws EProfileException
id
- profile idEProfileException
- failed to delete profilevoid 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 disablevoid commitProfile(java.lang.String id) throws EProfileException
EProfileException
java.lang.String getProfileClassId(java.lang.String id)
id
- profile idjava.util.Enumeration<java.lang.String> getProfileIds()
boolean checkOwner()