Package com.microstrategy.web.beans
Class SecurityRoleEventHandler
- java.lang.Object
-
- com.microstrategy.web.beans.GenericEventHandler
-
- com.microstrategy.web.beans.SysEventHandler
-
- com.microstrategy.web.beans.SecurityRoleEventHandler
-
- All Implemented Interfaces:
EnumEditableObjectBeanEvents,EnumObjectBeanEvents,EnumSecurityRoleEvents,WebEventHandler,WebEventTags,java.lang.Cloneable
public class SecurityRoleEventHandler extends SysEventHandler implements EnumSecurityRoleEvents
- Since:
- MicroStrategy Web 9.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.beans.GenericEventHandler
GenericEventHandler.GenericEventKeys
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.beans.SysEventHandler
DEFAULT_CONFIG_PATH
-
Fields inherited from class com.microstrategy.web.beans.GenericEventHandler
_extraEvents, layerOfHandleRequest, MULTIPLE_EVENT_SOURCE_SUFFIX, NO_EVENT_ID
-
Fields inherited from interface com.microstrategy.web.beans.EnumEditableObjectBeanEvents
EDITABLE_OBJECT_ARGUMENT_NAME, EDITABLE_OBJECT_EVENT_DELETE, EDITABLE_OBJECT_EVENT_DUPLICATE, EDITABLE_OBJECT_EVENT_INIT_AS_NEW, EDITABLE_OBJECT_EVENT_REFRESH, EDITABLE_OBJECT_EVENT_SAVE, EDITABLE_OBJECT_EVENT_SET_NAME
-
Fields inherited from interface com.microstrategy.web.beans.EnumObjectBeanEvents
OBJECT_EVENT_ARGUMENT_FlAGS, OBJECT_EVENT_ARGUMENT_OBJECT_ID, OBJECT_EVENT_ARGUMENT_OBJECT_NAME, OBJECT_EVENT_ARGUMENT_OBJECT_SUBTYPE, OBJECT_EVENT_ARGUMENT_OBJECT_TYPE, OBJECT_EVENT_BROWSE
-
Fields inherited from interface com.microstrategy.web.beans.EnumSecurityRoleEvents
ARGUMENT_SUB_VALUE_DELIMITER, SECURITY_ROLE_EVENT_ARGUMENT_DESC, SECURITY_ROLE_EVENT_ARGUMENT_NAME, SECURITY_ROLE_EVENT_ARGUMENT_PRIVILEGE, SECURITY_ROLE_EVENT_ARGUMENT_PRIVILEGES_CATS, SECURITY_ROLE_EVENT_MODIFY_PROPERTIES, SECURITY_ROLE_EVENT_PRIVILEGES_CAT_SET, SECURITY_ROLE_EVENT_PRIVILEGES_CAT_TYPE_PREFIX
-
Fields inherited from interface com.microstrategy.web.beans.WebEventTags
ATT_ARGUMENT_ENUMERATOR, ATT_ARGUMENT_ID, ATT_ARGUMENT_INDEX, ATT_ARGUMENT_NAME, ATT_ARGUMENT_REQUIRED, ATT_ARGUMENT_TYPE, ATT_ARGUMENT_VALIDATOR, ATT_ARGUMENT_VALUE, ATT_EVENT_DEPRECATED, ATT_EVENT_ENUMERATOR, ATT_EVENT_HANDLER_ENUMERATOR, ATT_EVENT_HANDLER_NAME, ATT_EVENT_HANDLER_TYPE, ATT_EVENT_ID, ATT_EVENT_NAME, ATT_EVENT_TARGET, TAG_ARGUMENT, TAG_ARGUMENTS, TAG_EVENT, TAG_EVENT_HANDLER, TAG_EVENT_HANDLERS, TAG_EVENTS
-
-
Constructor Summary
Constructors Constructor Description SecurityRoleEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebInboxSourcegetInboxSource()protected WebObjectInfogetObject(java.lang.String id, int type)protected WebObjectInfogetObject(java.lang.String id, int type, int subType)protected WebObjectsFactorygetObjectsFactory()protected WebObjectSourcegetObjectSource()protected booleanhandleDelete(EditableObjectBean eb)protected booleanhandleDuplicate(EditableObjectBean eb)handleDuplicateprotected booleanhandleModifyPrivileges(WebEvent event)protected booleanhandleNew(EditableObjectBean eb)handleNewprotected booleanhandleRefresh(EditableObjectBean eb)handleRefreshprotected booleanhandleSave(EditableObjectBean eb)handleSaveprotected booleanhandleSetName(EditableObjectBean eb, WebEvent event)protected voidinitEvents()This method is called to initialize the list of events available with this event-handler.booleanprocessRequest(RequestKeys inKeys)Logic to process the event.protected voidsetObjectBean(ObjectBean ob)-
Methods inherited from class com.microstrategy.web.beans.SysEventHandler
getCatalog, getWebEvent, getWebEvents, initEvents, newDefaultEventInstance, newWebEvent
-
Methods inherited from class com.microstrategy.web.beans.GenericEventHandler
addEvent, addEvent, addEvents, addEventsFromRequestKeys, addEventsFromXML, appendRemainingEvent, clone, delegateRequest, getEventID, getEventTarget, getHandlerType, getName, getNextSourceName, getNextSourceName, getOrderedEvents, getPendingEvents, getSupportedWebComponentType, getWebComponent, getWebEvent, getWebEvent, getWebEventsFromRequest, handleRequest, isInitialized, isMyEvent, markInitailized, processExtraEvents, processMultipleEvents, processMultipleEvents, setHandlerType, setName, setWebComponent, validateRequiredArgument
-
-
-
-
Method Detail
-
processRequest
public boolean processRequest(RequestKeys inKeys) throws WebException
Description copied from class:GenericEventHandlerLogic to process the event. Specific event handler implementation extending this class will need to override the default behavior.- Specified by:
processRequestin interfaceWebEventHandler- Parameters:
inKeys- the RequestKeys object containing event ID, sources, and any other information.- Returns:
- true if handling succeeds; false if the event is ignored and not handled.
- Throws:
WebException- thrown if handling of the request fails.
-
handleModifyPrivileges
protected boolean handleModifyPrivileges(WebEvent event) throws WebBeanException
- Throws:
WebBeanException
-
handleSetName
protected boolean handleSetName(EditableObjectBean eb, WebEvent event) throws WebBeanException
- Throws:
WebBeanException
-
handleRefresh
protected boolean handleRefresh(EditableObjectBean eb) throws WebBeanException
handleRefresh- Returns:
- boolean
- Throws:
WebBeanException
-
handleNew
protected boolean handleNew(EditableObjectBean eb)
handleNew- Returns:
- boolean
-
handleDuplicate
protected boolean handleDuplicate(EditableObjectBean eb) throws WebBeanException
handleDuplicate- Returns:
- boolean
- Throws:
WebBeanException
-
handleSave
protected boolean handleSave(EditableObjectBean eb) throws WebBeanException
handleSave- Returns:
- boolean
- Throws:
WebBeanException
-
handleDelete
protected boolean handleDelete(EditableObjectBean eb) throws WebBeanException
- Throws:
WebBeanException
-
getObjectsFactory
protected WebObjectsFactory getObjectsFactory() throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
getObjectSource
protected WebObjectSource getObjectSource()
-
getObject
protected WebObjectInfo getObject(java.lang.String id, int type) throws WebObjectsException
- Throws:
WebObjectsException
-
getObject
protected WebObjectInfo getObject(java.lang.String id, int type, int subType) throws WebObjectsException
- Throws:
WebObjectsException
-
setObjectBean
protected void setObjectBean(ObjectBean ob)
-
getInboxSource
protected WebInboxSource getInboxSource()
-
initEvents
protected void initEvents()
Description copied from class:SysEventHandlerThis method is called to initialize the list of events available with this event-handler. Since this class uses lazy initialization for its event list; this method will be always called by the
Those event-handler that support more than one handler-type can extend this method and callSysEventHandler.getWebEvent(int)and theSysEventHandler.getWebEvents()methods to ensure it's available. If the list has been initialized, it does nothing, if not it callsSysEventHandler.initEvents(int type)passing this handler's typeSysEventHandler.initEvents(int type)with all the types they support.- Overrides:
initEventsin classSysEventHandler
-
-