public class ControllerCommandImpl extends AbstractECTargetableCommand implements ControllerCommand, Protectable
Modifier and Type | Field and Description |
---|---|
protected TypedProperty | requestProperties
This is an object that represents the request properties associated with a command.
|
protected TypedProperty | responseProperties
This is an object that represents the response properties associated with a command.
|
protected boolean | retriable
This is an object that represents the retriable flag, which determines if this command is retriable on transaction rollback exception.
|
protected TypedProperty | viewReqProperties
This is an object that represents the input properties to be passed to the view command.
|
Constructor and Description |
---|
ControllerCommandImpl()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
boolean | checkPermission()
Deprecated.
This method has been replaced by ECCommand.getResources()
|
boolean | fulfills(java.lang.Long member, java.lang.String relationship)
This method determines if a given member fulfills a given relationship with the resource.
|
java.lang.Long | getForUserId()
This method gets the user id for a customer agent command.
|
boolean | getGeneric()
This method gets the generic property for this command.
|
java.lang.Long | getOwner()
This method gets the owner of this command.
|
TypedProperty | getRequestProperties()
This method gets the request properties associated with this command.
|
TypedProperty | getResolvedRequestProperties()
This method gets the resolved request properties associated with this command.
|
java.lang.Long[] | getResourceOwners()
Deprecated.
This method has been replaced by AbstractECTargetableCommand.getResources()
|
TypedProperty | getResponseProperties()
This method gets the response properties associated with this command.
|
boolean | getRetriable()
This method gets the retriable property for this command.
|
TypedProperty | getViewInputProperties()
This method gets the input properties that will be passed on to the view command.
|
boolean | isGeneric()
This method determines whether this is a generic command.
|
boolean | isRetriable()
This method determines whether this command is retriable on transaction rollback exceptions.
|
TypedProperty | mergeProperties(TypedProperty reqProp)
This method merges the properties passed to the request with the default properties.
|
void | setForUserId(java.lang.Long value)
This method sets the forUserId for a customer agent command.
|
void | setGeneric(boolean value)
This method sets the generic property of this command.
|
void | setOwner(java.lang.Long value)
This method sets the owner for this command for the purpose of command level access control.
|
void | setRequestProperties(TypedProperty reqProperties)
This method sets the requestProperties for the command.
|
void | setResponseProperties(TypedProperty respProperties)
This method sets the response properties.
|
void | setRetriable(boolean value)
This method sets the retriable property for this command.
|
void | setViewInputProperties(TypedProperty reqProperties)
This method sets the input properties to be passed to the view command.
|
protected TypedProperty requestProperties
protected TypedProperty responseProperties
protected TypedProperty viewReqProperties
protected boolean retriable
public ControllerCommandImpl()
public boolean checkPermission() throws ECException
public java.lang.Long getForUserId()
public boolean getGeneric()
public java.lang.Long getOwner() throws java.rmi.RemoteException, java.lang.Exception
public TypedProperty getRequestProperties()
public TypedProperty getResolvedRequestProperties()
public java.lang.Long[] getResourceOwners() throws ECException
public TypedProperty getResponseProperties()
For example, it could contain the following properties:
The response properties are combined with any default parameters defined in the properties column of the URL configuration before passing on to the view command.
public boolean getRetriable()
public TypedProperty getViewInputProperties()
public boolean isGeneric()
public boolean isRetriable()
public TypedProperty mergeProperties(TypedProperty reqProp)
public void setForUserId(java.lang.Long value)
public final void setGeneric(boolean value)
public void setOwner(java.lang.Long value)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
public void setResponseProperties(TypedProperty respProperties)
public final void setRetriable(boolean value)
public void setViewInputProperties(TypedProperty reqProperties) throws ECException
public boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.rmi.RemoteException, java.lang.Exception