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

ModelPlugin - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.plugins.security
Class ModelPlugin

java.lang.Object
  extended byorg.jboss.portal.core.plugins.security.ModelPlugin
All Implemented Interfaces:
Model

public class ModelPlugin
extends java.lang.Object
implements Model


Constructor Summary
ModelPlugin()
           
 
Method Summary
 void create()
           
static Scheme createScheme(SchemeMetaData schemeMD)
           
 void destroy()
           
 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.
 ModelMetaData getMetaData()
           
 java.util.Map getPermissionDescriptions()
          Returns a map of permission descriptions.
 SchemeStore getSchemeStore()
           
 boolean implies(java.lang.String sourcePermission, java.lang.String targetPermission)
          Return true if the source permission implies the target permission.
 void setMetaData(ModelMetaData metaData)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelPlugin

public ModelPlugin()
Method Detail

create

public void create()
            throws java.lang.Exception
Throws:
java.lang.Exception

createScheme

public static Scheme createScheme(SchemeMetaData schemeMD)
                           throws java.lang.Exception
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()

destroy

public void destroy()

getItem

public Item getItem(java.lang.String[] path)
Description copied from interface: Model
Return the specified item or null if it does not exist.

Specified by:
getItem in interface Model
Parameters:
path - the item path
Returns:
the item

getChildren

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

Specified by:
getChildren in interface Model
Parameters:
path - the item path
Returns:
an iterator over the getWindows

getPermissionDescriptions

public java.util.Map getPermissionDescriptions()
Description copied from interface: Model
Returns a map of permission descriptions.

Specified by:
getPermissionDescriptions in interface Model
Returns:
the permission descriptions map

implies

public boolean implies(java.lang.String sourcePermission,
                       java.lang.String targetPermission)
Description copied from interface: Model
Return true if the source permission implies the target permission.

Specified by:
implies in interface Model
Parameters:
sourcePermission -
targetPermission -
Returns:
true is source implies target

getDefaultScheme

public Scheme getDefaultScheme()
Description copied from interface: Model
Return the default scheme.

Specified by:
getDefaultScheme in interface Model
Returns:
the default scheme

setMetaData

public void setMetaData(ModelMetaData metaData)

getMetaData

public ModelMetaData getMetaData()

getSchemeStore

public SchemeStore getSchemeStore()