public class FetchPersonCmdImpl extends com.ibm.websphere.command.CacheableCommandImpl implements FetchPersonCmd
GetType
. The following
search criteria are supported:
{self=true;_wcf.ap=$accessProfile$}/Person
- finds the person currently executing the request
{_wcf.ap=$accessProfile$}/Person[PersonIdentifier[(UniqueID='$personId$')]]
- finds a person based on the UniqueID
{_wcf.ap=$accessProfile$}/Person[PersonIdentifier[(DistinguishedName='$distinguishedName$')]]
- finds a person based on the distinguished name {_wcf.ap=$accessProfile$}/Person[Credential[LogonID='$logonID$']]
- finds a person based on the logon ID UserDataBean
representing the Persons found.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
FetchPersonCmdImpl()
Creates an instance of the fetch Person command.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getPersons()
Returns a list of
UserDataBean representing the
Persons found based on the GetType search criteria. |
ShowType |
getShow()
Returns the show verb response that represents the results of the fetch operation.
|
boolean |
isReadyToCallExecute()
Checks if the command is ready to execute.
|
void |
performExecute()
Fetches persons based on the search criteria specified in the
GetType . |
void |
reset()
Resets the instance variables so the command can be reused.
|
void |
setGet(GetType getVerb)
Sets the get expression for the fetch operation.
|
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
public static final java.lang.String COPYRIGHT
public FetchPersonCmdImpl()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class com.ibm.websphere.command.TargetableCommandImpl
Command.isReadyToCallExecute()
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class com.ibm.websphere.command.CacheableCommandImpl
Command.reset()
public void performExecute() throws java.lang.Exception
GetType
. The following
search criteria are supported:
{self=true;_wcf.ap=$accessProfile$}/Person
- finds the person currently executing the request
{_wcf.ap=$accessProfile$}/Person[PersonIdentifier[(UniqueID='$personId$')]]
- finds a person based on the UniqueID
{_wcf.ap=$accessProfile$}/Person[PersonIdentifier[(DistinguishedName='$distinguishedName$')]]
- finds a person based on the distinguished name {_wcf.ap=$accessProfile$}/Person[Credential[LogonID='$logonID$']]
- finds a person based on the logon ID performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.websphere.command.TargetableCommandImpl
java.lang.Exception
TargetableCommand.performExecute()
public ShowType getShow()
getShow
in interface FetchPersonCmd
FetchPersonCmd.getShow()
public java.util.List getPersons()
UserDataBean
representing the
Persons found based on the GetType
search criteria.getPersons
in interface FetchPersonCmd
UserDataBean
FetchPersonCmd.getPersons()
public void setGet(GetType getVerb)
setGet
in interface FetchPersonCmd
getVerb
- The get expression.FetchPersonCmd.setGet(GetType)