Package com.microstrategy.web.app.beans
Class SecurityRoleUserEntitiesSelectorBeanImpl
- java.lang.Object
-
- com.microstrategy.utils.serialization.AbstractPersistable
-
- com.microstrategy.web.beans.AbstractTransformable
-
- com.microstrategy.web.beans.AbstractWebComponent
-
- com.microstrategy.web.app.beans.AbstractAppComponent
-
- com.microstrategy.web.app.beans.AbstractPersistableAppComponent
-
- com.microstrategy.web.app.beans.SecurityRoleUserEntitiesSelectorBeanImpl
-
- All Implemented Interfaces:
EnumWebPersistableState
,Persistable
,AppComponent
,SecurityRoleUserEntitiesSelectorBean
,RequestPersistable
,Transformable
,WebComponent
public class SecurityRoleUserEntitiesSelectorBeanImpl extends AbstractPersistableAppComponent implements SecurityRoleUserEntitiesSelectorBean
- Since:
- MicroStrategy Web 9.0.0
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
STATE_DELIMITOR, STATE_ITEM_SEPARATOR
-
Fields inherited from class com.microstrategy.web.beans.AbstractWebComponent
_features, _hasJustOpened
-
Fields inherited from class com.microstrategy.web.beans.AbstractTransformable
_beanContext
-
Fields inherited from class com.microstrategy.utils.serialization.AbstractPersistable
scriptEndTagEncoder
-
Fields inherited from interface com.microstrategy.web.app.beans.AppComponent
COMPONENT_POSITION_NOT_INITIALIZED
-
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
-
Constructor Summary
Constructors Constructor Description SecurityRoleUserEntitiesSelectorBeanImpl()
SecurityRoleUserEntitiesSelectorBeanImpl(boolean needEventHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doCollectData()
Call the required methods so the data is collected for this instanceprotected UserEntitiesBean
doCollectSelectedItems()
protected void
doFlatState(FlatStateSerializer ser, int howMuchState, FlatStateTokenizer tok)
Proceses the save/restore state opperation of the AppComponentSimpleList
getProjects()
Returns the list of available projects based on teh session.UserEntitiesBean
getSelectedItems()
Returns the selected users or groups from thetarget bean
.java.lang.String
getSelectedProjectId()
Returns the id of the selected project.protected AbstractHandler
getStateHandler()
UserEntitiesBrowserBean
getUserEntitiesBrowserBean()
Returns the user entities browser associated with this beanprotected WebEventHandler
newDefaultEventHandler()
protected void
saveXMLState(XMLStateSerializer builder, int howMuchState)
Saves the component statevoid
setSelectedProjectId(java.lang.String projectId)
Sets the selected project based on the project Id.-
Methods inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
addChildStateInfo, isCookieOpen, isSaveStateEnabled, saveState, saveState, saveState, saveState
-
Methods inherited from class com.microstrategy.web.app.beans.AbstractAppComponent
addChildStateInfo, collectData, collectMinimalData, compareChildsTargetWithCurrent, createTransformInstance, doCollectMinimalData, generateOutput, getAppContext, getContactInfo, getContainerServices, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getFeaturesManager, getLeft, getObjectSource, getResultFilterMode, getSession, getTargetBean, getTop, getType, getWebObjectsFactory, getWebObjectsFactory, getXMLStatus, hasChanged, hasTargetBeanChanged, haveChildrenChanged, initComponent, internalCollectData, isDialog, isForcedChildrenStateSaving, isIFrameRequest, isModal, isModalOpen, isOpen, newDefaultBeanContext, newHiddenInputBuilder, newNamespaceEncoder, newStyleRequestContext, newURIBuilder, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setIsOpen, setLeft, setOutputFormat, setTop
-
Methods inherited from class com.microstrategy.web.beans.AbstractWebComponent
addChild, addChildStateInfo, addChildStateInfo, addChildStateInfo, addStateInfo, childValues, clearChildren, clearStateCache, getCachedState, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isChangeComparisonFlagSet, isFeatureAvailable, prepareForReuse, removeChild, removeChild, restoreState, restoreStateFromRequest, restoreStateFromRequest, saveXMLState, saveXMLState, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setParent, setPersistMode, setRenderingFilter, setStateCache, setTargetBean, setTargetBeanPath, setWebEventHandler
-
Methods inherited from class com.microstrategy.web.beans.AbstractTransformable
addTransform, addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, createTransformInstance, getBeanContext, getDefaultTransform, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, hasTransform, hasTransform, internalCollectData, internalCollectData, invalidateTransformCache, isTransformSuitable, transform, transform, transform, transform
-
Methods inherited from class com.microstrategy.utils.serialization.AbstractPersistable
doFlatState, isXMLStateZipped, restoreState, restoreXMLState, saveXMLState
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.app.beans.AppComponent
getAppContext, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getLeft, getResultFilterMode, getTop, isDialog, isForcedChildrenStateSaving, isModal, isModalOpen, isOpen, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setIsOpen, setLeft, setTop
-
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState, saveState, saveState, saveState, saveState
-
Methods inherited from interface com.microstrategy.web.beans.RequestPersistable
restoreStateFromRequest, restoreStateFromRequest
-
Methods inherited from interface com.microstrategy.web.beans.Transformable
addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, getBeanContext, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, getType, hasTransform, hasTransform, invalidateTransformCache, setBeanContext, transform, transform
-
Methods inherited from interface com.microstrategy.web.beans.WebComponent
addChild, addChildStateInfo, addChildStateInfo, collectData, collectMinimalData, generateOutput, getBeanContext, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getFeaturesManager, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBean, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, getXMLStatus, handleRequest, hasChanged, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isFeatureAvailable, prepareForReuse, removeChild, removeChild, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setOutputFormat, setParent, setPersistMode, setRenderingFilter, setTargetBean, setTargetBeanPath, setWebEventHandler
-
-
-
-
Method Detail
-
newDefaultEventHandler
protected WebEventHandler newDefaultEventHandler()
- Overrides:
newDefaultEventHandler
in classAbstractWebComponent
-
getUserEntitiesBrowserBean
public UserEntitiesBrowserBean getUserEntitiesBrowserBean()
Description copied from interface:SecurityRoleUserEntitiesSelectorBean
Returns the user entities browser associated with this bean- Specified by:
getUserEntitiesBrowserBean
in interfaceSecurityRoleUserEntitiesSelectorBean
- Returns:
UserEntitiesBrowserBean
-
getSelectedProjectId
public java.lang.String getSelectedProjectId()
Description copied from interface:SecurityRoleUserEntitiesSelectorBean
Returns the id of the selected project.- Specified by:
getSelectedProjectId
in interfaceSecurityRoleUserEntitiesSelectorBean
- Returns:
- the project id of the currently selected project. null if no project is selected.
-
getProjects
public SimpleList getProjects() throws WebAppException
Description copied from interface:SecurityRoleUserEntitiesSelectorBean
Returns the list of available projects based on teh session.- Specified by:
getProjects
in interfaceSecurityRoleUserEntitiesSelectorBean
- Returns:
- the list of projects
- Throws:
WebAppException
-
setSelectedProjectId
public void setSelectedProjectId(java.lang.String projectId)
Description copied from interface:SecurityRoleUserEntitiesSelectorBean
Sets the selected project based on the project Id.- Specified by:
setSelectedProjectId
in interfaceSecurityRoleUserEntitiesSelectorBean
- Parameters:
projectId
- - id of the project to set as selected.
-
doCollectData
public void doCollectData()
Description copied from class:AbstractAppComponent
Call the required methods so the data is collected for this instance- Overrides:
doCollectData
in classAbstractAppComponent
-
getSelectedItems
public UserEntitiesBean getSelectedItems()
Description copied from interface:SecurityRoleUserEntitiesSelectorBean
Returns the selected users or groups from thetarget bean
. The targetBean should be a security role beanSecurityRoleBean
- Specified by:
getSelectedItems
in interfaceSecurityRoleUserEntitiesSelectorBean
- Returns:
- the selected users or groups.
- See Also:
WebComponent.getTargetBean()
-
doCollectSelectedItems
protected UserEntitiesBean doCollectSelectedItems() throws WebBeanException
- Throws:
WebBeanException
-
doFlatState
protected void doFlatState(FlatStateSerializer ser, int howMuchState, FlatStateTokenizer tok)
Description copied from class:AbstractPersistableAppComponent
Proceses the save/restore state opperation of the AppComponent- Overrides:
doFlatState
in classAbstractPersistableAppComponent
- Parameters:
ser
- an instance of theFlatStateSerializer
object to usehowMuchState
- defines how much information needs to be savedtok
- an instance of theFlatStateTokenizer
object to use
-
saveXMLState
protected void saveXMLState(XMLStateSerializer builder, int howMuchState)
Description copied from class:AbstractWebComponent
Saves the component state- Overrides:
saveXMLState
in classAbstractWebComponent
- Parameters:
builder
- aXMLStateSerializer
objecthowMuchState
- how much state to save (EnumWebPersistableState
)
-
getStateHandler
protected AbstractHandler getStateHandler()
- Overrides:
getStateHandler
in classAbstractPersistable
-
-