org.jboss.portal.core.model.portal.command
Class PortalObjectCommand
java.lang.Object
org.jboss.portal.common.invocation.Invocation
org.jboss.portal.core.controller.ControllerCommand
org.jboss.portal.core.model.portal.command.PortalObjectCommand
- Direct Known Subclasses:
- ContextCommand, PortalCommand
public abstract class PortalObjectCommand
- extends ControllerCommand
- Version:
- $Revision: 8786 $
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetId
protected final PortalObjectId targetId
- .
target
protected PortalObject target
- .
dashboard
protected boolean dashboard
- .
PortalObjectCommand
protected PortalObjectCommand(PortalObjectId targetId)
getTargetId
public final PortalObjectId getTargetId()
acquireResources
public void acquireResources()
throws NoSuchResourceException
- Overrides:
acquireResources
in class ControllerCommand
- Throws:
NoSuchResourceException
enforceSecurity
public void enforceSecurity(PortalAuthorizationManager pam)
throws SecurityException
- Enforce the security on this command using the provided portal authorization manager.
- Overrides:
enforceSecurity
in class ControllerCommand
- Parameters:
pam
- the portal authorization manager
- Throws:
SecurityException
- if the access is not granted
getTarget
public final PortalObject getTarget()
- Return the target portal object of this command.
- Returns:
- the target portal object
isDashboard
public boolean isDashboard()
- Return true if the command is in a dashboard context.
- Returns: