public class OrganizationSetInSessionCmdImpl extends ControllerCommandImpl implements OrganizationSetInSessionCmd
This command is used to switch the current active organization. The active organization enables a user to be entitled to contracts that belong to their parent organization as well as where they play an Organization participant role. The organization that the switch is being made to must not be locked.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright field.
|
ACTIVE_ORG_ID, defaultCommandClassName, ERRTASK_NAME, NAME, ROLE_ORGANIZATION_PARTICIPANT, VIEW_NAME
Constructor and Description |
---|
OrganizationSetInSessionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getURL()
Gets the URL specified.
|
boolean |
isGeneric()
Whether or not this command can be invoked by a generic user.
|
boolean |
isParentOrganization()
Checks if the user's parent organization is the same as the active organization.
|
boolean |
isRequiredRolePlayed()
Checks if the required role is played in the ancestral organizations of the active Organization.
|
void |
performExecute()
Executes the command.
|
void |
setActiveOrganizationId(java.lang.Long nOrganizationId)
Sets the active organization to switch to.
|
void |
setRequestProperties(TypedProperty hshReqParameters)
Sets the request properties.
|
void |
setURL(java.lang.String strURL)
Sets the URL to redirect to after logging off the user.
|
void |
validateParameters()
Validates the parameters.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
hshReqParameters
- The request parameters.ECApplicationException
public void setURL(java.lang.String strURL)
strURL
- The URL to redirect to after logging off the user.public java.lang.String getURL()
public void setActiveOrganizationId(java.lang.Long nOrganizationId)
setActiveOrganizationId
in interface OrganizationSetInSessionCmd
nOrganizationId
- Active Organization Identity.public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- Problem executing the command.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- Invalid parameters were specified.public boolean isParentOrganization()
public boolean isRequiredRolePlayed() throws ECException
ECException
- If there are failures with the EJBs.