当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
CommandInfo - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.core.command
Class CommandInfo
java.lang.Object
org.jboss.portal.core.command.CommandInfo
- public class CommandInfo
- extends java.lang.Object
Runtime meta data for a command, this object is immutable.
Constructor Summary |
CommandInfo(boolean secured,
java.lang.String action,
boolean idempotent)
|
Method Summary |
java.lang.String |
getAction()
|
boolean |
isIdempotent()
Return true if the command is idempotent, i.e it can be reinvoked again safely. |
boolean |
isSecured()
Is this command a secured command? If so, access rights to this command will be enforced via a security policy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandInfo
public CommandInfo(boolean secured,
java.lang.String action,
boolean idempotent)
isSecured
public boolean isSecured()
- Is this command a secured command? If so, access rights to this command will be enforced via a security policy.
The default returns false. Extending command classes need to set the isSecured
member variable to true
in the command's constructor if they want to enforce access right checks for the command.
- Returns:
- true if this command requires security checks
getAction
public java.lang.String getAction()
- Returns:
- the associated action of this command for security checks (is the user allowed to call this action...)
isIdempotent
public boolean isIdempotent()
- Return true if the command is idempotent, i.e it can be reinvoked again safely.