org.apache.jetspeed.security
Class PortletPermission

java.lang.Object
  extended byjava.security.Permission
      extended byorg.apache.jetspeed.security.PortalResourcePermission
          extended byorg.apache.jetspeed.security.PortletPermission
All Implemented Interfaces:
Guard, Serializable

public class PortletPermission
extends PortalResourcePermission

Portlet permission.

This code was partially inspired from articles from:

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jetspeed.security.PortalResourcePermission
mask, subject
 
Fields inherited from class java.security.Permission
 
Constructor Summary
PortletPermission(String name, String actions)
          Constructor for PortletPermission.
PortletPermission(String name, String actions, Subject subject)
          Constructor for PortletPermission.
 
Method Summary
 boolean implies(Permission permission)
           
 PermissionCollection newPermissionCollection()
          Overrides Permission.newPermissionCollection().
 
Methods inherited from class org.apache.jetspeed.security.PortalResourcePermission
equals, getActions, getSubject, hashCode
 
Methods inherited from class java.security.Permission
checkGuard, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortletPermission

public PortletPermission(String name,
                         String actions)

Constructor for PortletPermission.

Parameters:
name - The portlet name.
actions - The actions on the portlet.

PortletPermission

public PortletPermission(String name,
                         String actions,
                         Subject subject)

Constructor for PortletPermission.

Parameters:
name - The portlet name.
actions - The actions on the portlet.
Method Detail

implies

public boolean implies(Permission permission)
Overrides:
implies in class PortalResourcePermission

newPermissionCollection

public PermissionCollection newPermissionCollection()

Overrides Permission.newPermissionCollection().

See Also:
Permission.newPermissionCollection()


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.