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

Model - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.security
Interface Model

All Known Implementing Classes:
ModelPlugin

public interface Model

A query interface on a hierarchical set of getWindows. This interface is provided by the portlet.


Method Summary
 java.util.Iterator getChildren(java.lang.String[] path)
          Return the children getWindows for the given path or null if the item does not exist.
 Scheme getDefaultScheme()
          Return the default scheme.
 Item getItem(java.lang.String[] path)
          Return the specified item or null if it does not exist.
 java.util.Map getPermissionDescriptions()
          Returns a map of permission descriptions.
 boolean implies(java.lang.String sourcePermission, java.lang.String targetPermission)
          Return true if the source permission implies the target permission.
 

Method Detail

getItem

public Item getItem(java.lang.String[] path)
Return the specified item or null if it does not exist.

Parameters:
path - the item path
Returns:
the item

getChildren

public java.util.Iterator getChildren(java.lang.String[] path)
Return the children getWindows for the given path or null if the item does not exist.

Parameters:
path - the item path
Returns:
an iterator over the getWindows

getPermissionDescriptions

public java.util.Map getPermissionDescriptions()
Returns a map of permission descriptions.

Returns:
the permission descriptions map

implies

public boolean implies(java.lang.String sourcePermission,
                       java.lang.String targetPermission)
                throws java.lang.IllegalArgumentException
Return true if the source permission implies the target permission.

Parameters:
sourcePermission -
targetPermission -
Returns:
true is source implies target
Throws:
java.lang.IllegalArgumentException - if sourcePermission or targetPermission is null

getDefaultScheme

public Scheme getDefaultScheme()
Return the default scheme.

Returns:
the default scheme