|
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.events.server.session.SessionBase
public abstract class SessionBase
Session class superclass, which provides generic utility functions
Field Summary | |
---|---|
protected static java.lang.String |
DATASOURCE
the events database name |
protected org.apache.commons.logging.Log |
log
|
protected static int |
SEQUENCE_INTERVAL
the interval between sequence ID's |
Constructor Summary | |
---|---|
SessionBase()
|
Method Summary | |
---|---|
static void |
canCreateAlertDefinition(AuthzSubject user,
AppdefEntityID entityId)
|
static void |
canCreateEscalation(java.lang.Integer subjectId)
|
static void |
canCreateResourceTypeAlertDefinitionTemplate(AuthzSubject user)
|
static void |
canDeleteAlertDefinition(AuthzSubject user,
AppdefEntityID entityId)
|
static void |
canDeleteResourceTypeAlertDefinitionTemplate(AuthzSubject user)
|
static void |
canFixAcknowledgeAlerts(AuthzSubject who,
AlertDefinitionInterface adi)
|
static void |
canFixAcknowledgeAlerts(AuthzSubject user,
AppdefEntityID entityId)
Check for manage alerts permission for a given resource By manage, we mean the ability to fix/acknowledge alerts & pause escalations... |
static void |
canModifyAlertDefinition(AuthzSubject user,
AppdefEntityID entityId)
|
static void |
canModifyEscalation(java.lang.Integer subjectId)
|
static void |
canModifyResourceTypeAlertDefinitionTemplate(AuthzSubject user)
|
static void |
canRemoveEscalation(java.lang.Integer subjectId)
|
static void |
canViewAlertDefinition(AuthzSubject user,
AppdefEntityID entityId)
|
static void |
canViewEscalation(java.lang.Integer subjectId)
|
static void |
canViewResourceTypeAlertDefinitionTemplate(AuthzSubject user)
|
protected java.lang.String |
describeCondition(AlertCondition cond,
Measurement dm)
|
protected Resource |
findResource(AppdefEntityID id)
|
static AppdefEntityID |
getAppdefEntityID(AlertDefinitionInterface adi)
|
protected javax.naming.InitialContext |
getInitialContext()
|
protected java.lang.Long |
getNextId(java.lang.String seq)
Get the next ID from the database sequence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.commons.logging.Log log
protected static final java.lang.String DATASOURCE
protected static final int SEQUENCE_INTERVAL
Constructor Detail |
---|
public SessionBase()
Method Detail |
---|
protected javax.naming.InitialContext getInitialContext() throws javax.naming.NamingException
javax.naming.NamingException
protected java.lang.Long getNextId(java.lang.String seq) throws javax.ejb.CreateException
javax.ejb.CreateException
- if the IDGenerator fails to generate a new IDpublic static AppdefEntityID getAppdefEntityID(AlertDefinitionInterface adi)
protected Resource findResource(AppdefEntityID id)
public static void canViewResourceTypeAlertDefinitionTemplate(AuthzSubject user) throws PermissionException
PermissionException
public static void canModifyResourceTypeAlertDefinitionTemplate(AuthzSubject user) throws PermissionException
PermissionException
public static void canCreateResourceTypeAlertDefinitionTemplate(AuthzSubject user) throws PermissionException
PermissionException
public static void canDeleteResourceTypeAlertDefinitionTemplate(AuthzSubject user) throws PermissionException
PermissionException
public static void canViewAlertDefinition(AuthzSubject user, AppdefEntityID entityId) throws PermissionException
PermissionException
public static void canModifyAlertDefinition(AuthzSubject user, AppdefEntityID entityId) throws PermissionException
PermissionException
public static void canCreateAlertDefinition(AuthzSubject user, AppdefEntityID entityId) throws PermissionException
PermissionException
public static void canDeleteAlertDefinition(AuthzSubject user, AppdefEntityID entityId) throws PermissionException
PermissionException
public static void canFixAcknowledgeAlerts(AuthzSubject who, AlertDefinitionInterface adi) throws PermissionException
PermissionException
public static void canFixAcknowledgeAlerts(AuthzSubject user, AppdefEntityID entityId) throws PermissionException
PermissionException
protected java.lang.String describeCondition(AlertCondition cond, Measurement dm)
public static void canCreateEscalation(java.lang.Integer subjectId) throws PermissionException
PermissionException
public static void canViewEscalation(java.lang.Integer subjectId) throws PermissionException
PermissionException
public static void canModifyEscalation(java.lang.Integer subjectId) throws PermissionException
PermissionException
public static void canRemoveEscalation(java.lang.Integer subjectId) throws PermissionException
PermissionException
|
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 |