org.apache.jetspeed.security
Class PortletPermission

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

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
 
Constructor Summary
PortletPermission(String name, int mask)
          Constructor for PortletPermission.
PortletPermission(String name, String actions)
          Constructor for PortletPermission.
 
Method Summary
 boolean equals(Object object)
           
 boolean implies(Permission permission)
           
 
Methods inherited from class org.apache.jetspeed.security.PortalResourcePermission
getActions, hashCode, newPermissionCollection, parseActions
 
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,
                         int mask)

Constructor for PortletPermission.

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

implies

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

equals

public boolean equals(Object object)
Specified by:
equals in class Permission
See Also:
Permission.equals(Object)


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