站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

PortletPermission - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.security
Class PortletPermission

java.lang.Object
  extended byjava.security.Permission
      extended byorg.jboss.portal.security.PortalPermission
          extended byorg.jboss.portal.portlet.security.PortletPermission
All Implemented Interfaces:
java.security.Guard, java.io.Serializable

public final class PortletPermission
extends PortalPermission

The permission for instance.

Version:
$Revision: 5448 $
Author:
Anil Saldhana
See Also:
Serialized Form

Field Summary
private static java.lang.String[] ACTION_NAMES
          The action names.
private  java.lang.String actions
          The actions string.
private  int mask
          The imply mask.
static java.lang.String PERMISSION_TYPE
          .
private static long serialVersionUID
          The serialVersionUID
static java.lang.String VIEW_ACTION
          The view action name.
static int VIEW_MASK
          .
 
Fields inherited from class org.jboss.portal.security.PortalPermission
collection, uri
 
Fields inherited from class java.security.Permission
 
Constructor Summary
PortletPermission(PortalPermissionCollection collection)
           
PortletPermission(java.lang.String uri, java.util.Collection actions)
           
PortletPermission(java.lang.String uri, int mask)
           
PortletPermission(java.lang.String uri, java.lang.String actions)
           
 
Method Summary
private  void addAction(java.lang.String action)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getActions()
           
 java.lang.String getType()
          Return the portal permission type.
 int hashCode()
           
 boolean implies(java.security.Permission permission)
           
 boolean implies(PermissionRepository repository, javax.security.auth.Subject caller, java.lang.String roleName, PortalPermission permission)
          Implement the imply logic when we check the permission against a domain.
 
Methods inherited from class org.jboss.portal.security.PortalPermission
getURI, isContainer, newPermissionCollection
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serialVersionUID

See Also:
Constant Field Values

VIEW_ACTION

public static final java.lang.String VIEW_ACTION
The view action name.

See Also:
Constant Field Values

VIEW_MASK

public static final int VIEW_MASK
.

See Also:
Constant Field Values

mask

private int mask
The imply mask.


actions

private java.lang.String actions
The actions string.


PERMISSION_TYPE

public static final java.lang.String PERMISSION_TYPE
.

See Also:
Constant Field Values

ACTION_NAMES

private static final java.lang.String[] ACTION_NAMES
The action names.

Constructor Detail

PortletPermission

public PortletPermission(PortalPermissionCollection collection)

PortletPermission

public PortletPermission(java.lang.String uri,
                         int mask)

PortletPermission

public PortletPermission(java.lang.String uri,
                         java.util.Collection actions)

PortletPermission

public PortletPermission(java.lang.String uri,
                         java.lang.String actions)
Method Detail

addAction

private void addAction(java.lang.String action)
                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

implies

public boolean implies(PermissionRepository repository,
                       javax.security.auth.Subject caller,
                       java.lang.String roleName,
                       PortalPermission permission)
                throws PortalSecurityException
Description copied from class: PortalPermission
Implement the imply logic when we check the permission against a domain.

Specified by:
implies in class PortalPermission
Parameters:
repository -
caller -
permission -
Returns:
true if the permission is implied
Throws:
PortalSecurityException

implies

public boolean implies(java.security.Permission permission)

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

getActions

public java.lang.String getActions()

getType

public java.lang.String getType()
Description copied from class: PortalPermission
Return the portal permission type.

Specified by:
getType in class PortalPermission
Returns:
the portal permission type