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

Scheme - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.security
Class Scheme

java.lang.Object
  extended byorg.jboss.portal.core.security.Scheme
All Implemented Interfaces:
java.io.Serializable

public class Scheme
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Scheme()
          Creates a new empty scheme.
Scheme(Scheme other)
          Copy constructor.
 
Method Summary
 void add(java.lang.String[] path, java.lang.String role, java.lang.String permission)
          Add a permission.
 void clear()
          Clear the scheme.
 java.util.Set get(java.lang.String[] path, java.util.Set roles)
          Get the set of permissions for the given roles and path.
 java.util.Set get(java.lang.String[] path, java.lang.String role)
          Get the set of permissions for the given domain, role and path.
 java.util.Set getChildrenNames(java.lang.String[] path)
          Return a set of the children names.
 java.util.Set getRoles(java.lang.String[] path)
           
 void remove(java.lang.String[] path)
          Remove an item.
 void remove(java.lang.String[] path, java.lang.String role, java.lang.String permission)
          Remove a permission.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scheme

public Scheme()
Creates a new empty scheme.


Scheme

public Scheme(Scheme other)
       throws java.lang.IllegalArgumentException
Copy constructor.

Throws:
java.lang.IllegalArgumentException - if the copied scheme argument is null
Method Detail

getChildrenNames

public java.util.Set getChildrenNames(java.lang.String[] path)
Return a set of the children names.


getRoles

public java.util.Set getRoles(java.lang.String[] path)

get

public java.util.Set get(java.lang.String[] path,
                         java.lang.String role)
Get the set of permissions for the given domain, role and path.


get

public java.util.Set get(java.lang.String[] path,
                         java.util.Set roles)
Get the set of permissions for the given roles and path.


add

public void add(java.lang.String[] path,
                java.lang.String role,
                java.lang.String permission)
Add a permission.

Throws:
java.lang.UnsupportedOperationException - if the scheme is not mutable

remove

public void remove(java.lang.String[] path,
                   java.lang.String role,
                   java.lang.String permission)
Remove a permission.

Throws:
java.lang.UnsupportedOperationException - if the scheme is not mutable

remove

public void remove(java.lang.String[] path)
Remove an item.

Throws:
java.lang.UnsupportedOperationException - if the scheme is not mutable

clear

public void clear()
Clear the scheme.

Throws:
java.lang.UnsupportedOperationException - if the scheme is not mutable