|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.appdef.server.session.AppdefSessionUtil
org.hyperic.hq.appdef.server.session.CPropManagerEJBImpl
public class CPropManagerEJBImpl
Constructor Summary | |
---|---|
CPropManagerEJBImpl()
|
Method Summary | |
---|---|
void |
addKey(AppdefResourceType appdefType,
java.lang.String key,
java.lang.String description)
Add a key to a resource type based on a TypeInfo object. |
void |
addKey(CpropKey key)
Add a key to a resource type. |
void |
deleteKey(int appdefType,
int appdefTypeId,
java.lang.String key)
Remove a key from a resource type. |
void |
deleteValues(int appdefType,
int id)
Remove custom properties for a given resource. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
CpropKey |
findByKey(AppdefResourceType appdefType,
java.lang.String key)
find Cprop by key to a resource type based on a TypeInfo object. |
AppdefResourceType |
findResourceType(TypeInfo info)
find appdef resource type |
protected AgentReportStatusDAO |
getAgentReportStatusDAO()
|
protected AgentTypeDAO |
getAgentTypeDAO()
|
protected AIServerDAO |
getAIServerDAO()
|
java.util.List |
getCPropValues(AppdefResourceTypeValue appdefType,
java.lang.String key,
boolean asc)
Get all Cprops values with specified key name, irregardless of type |
java.util.Properties |
getDescEntries(AppdefEntityID aID)
Get a map which holds the descriptions & their associated values for an appdef entity. |
java.util.Properties |
getEntries(AppdefEntityID aID)
Get a map which holds the keys & their associated values for an appdef entity. |
java.util.List |
getKeys(int appdefType,
int appdefTypeId)
Get all the keys associated with an appdef resource type. |
static org.hyperic.hq.appdef.shared.CPropManagerLocal |
getOne()
|
java.lang.String |
getValue(AppdefEntityValue aVal,
java.lang.String key)
Get a custom property for a resource. |
void |
setConfigResponse(AppdefEntityID aID,
int typeId,
byte[] data)
Set custom properties for a resource. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
void |
setValue(AppdefEntityID aID,
int typeId,
java.lang.String key,
java.lang.String val)
Set (or delete) a custom property for a resource. |
Methods inherited from class org.hyperic.hq.appdef.server.session.AppdefSessionUtil |
---|
findResourceType, getAgentDAO, getAIQManagerLocal, getApplicationDAO, getApplicationManager, getConfigManager, getConfigResponseDAO, getCPropManager, getPlatformDAO, getPlatformManager, getPlatformTypeDAO, getResourceManager, getServerDAO, getServerManager, getServerTypeDAO, getServiceDAO, getServiceManager, getServiceTypeDAO |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CPropManagerEJBImpl()
Method Detail |
---|
public java.util.List getKeys(int appdefType, int appdefTypeId)
appdefType
- One of AppdefEntityConstants.APPDEF_TYPE_*appdefTypeId
- The ID of the appdef resource type
public AppdefResourceType findResourceType(TypeInfo info)
findResourceType
in class AppdefSessionUtil
public CpropKey findByKey(AppdefResourceType appdefType, java.lang.String key)
public void addKey(AppdefResourceType appdefType, java.lang.String key, java.lang.String description)
public void addKey(CpropKey key) throws AppdefEntityNotFoundException, CPropKeyExistsException
key
- Key to create
AppdefEntityNotFoundException
CPropKeyExistsException
public void deleteKey(int appdefType, int appdefTypeId, java.lang.String key) throws CPropKeyNotFoundException
appdefType
- One of AppdefEntityConstants.APPDEF_TYPE_*appdefTypeId
- The ID of the resource typekey
- Key to remove
CPropKeyNotFoundException
public void setValue(AppdefEntityID aID, int typeId, java.lang.String key, java.lang.String val) throws CPropKeyNotFoundException, AppdefEntityNotFoundException, PermissionException
aID
- Appdef entity id to set the value fortypeId
- Resource type idkey
- Key to associate the value withval
- Value to assicate with the key. If the value is null,
then the value will simply be removed.
CPropKeyNotFoundException
AppdefEntityNotFoundException
PermissionException
public java.lang.String getValue(AppdefEntityValue aVal, java.lang.String key) throws CPropKeyNotFoundException, AppdefEntityNotFoundException, PermissionException
aVal
- Appdef entity to get the value forkey
- Key of the value to get
CPropKeyNotFoundException
AppdefEntityNotFoundException
PermissionException
public java.util.Properties getEntries(AppdefEntityID aID) throws PermissionException, AppdefEntityNotFoundException
aID
- Appdef entity id to get the custom properties for
PermissionException
AppdefEntityNotFoundException
public java.util.Properties getDescEntries(AppdefEntityID aID) throws PermissionException, AppdefEntityNotFoundException
aID
- Appdef entity id to get the custom properties for
PermissionException
AppdefEntityNotFoundException
public void setConfigResponse(AppdefEntityID aID, int typeId, byte[] data) throws PermissionException, AppdefEntityNotFoundException
aID
- Appdef entity id to set the value fortypeId
- Resource type iddata
- Encoded ConfigResponse
PermissionException
AppdefEntityNotFoundException
public void deleteValues(int appdefType, int id)
public java.util.List getCPropValues(AppdefResourceTypeValue appdefType, java.lang.String key, boolean asc)
public static org.hyperic.hq.appdef.shared.CPropManagerLocal getOne()
public void ejbCreate() throws javax.ejb.CreateException
javax.ejb.CreateException
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
protected AgentTypeDAO getAgentTypeDAO()
protected AgentReportStatusDAO getAgentReportStatusDAO()
protected AIServerDAO getAIServerDAO()
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |