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

ObjectModelAdapter - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.security.impl.store
Interface ObjectModelAdapter

All Known Implementing Classes:
ModelAdapterImpl

public interface ObjectModelAdapter

Adapt the model so the container can manipulate it.


Method Summary
 void attachChild(java.lang.Object parent, java.lang.Object child)
          Attach a child to the parent.
 java.lang.Object createObject(Fqn fqn, java.lang.String key, java.lang.String type, java.util.Map state)
          Create an object of the model.
 void destroyObject(java.lang.Object object)
          Destroy an object of the model.
 void detachChild(java.lang.Object child)
          Detach a child from its parent.
 void updateObject(java.lang.Object object, java.lang.String name, java.lang.Object value)
          Update part of the object.
 

Method Detail

createObject

public java.lang.Object createObject(Fqn fqn,
                                     java.lang.String key,
                                     java.lang.String type,
                                     java.util.Map state)
Create an object of the model.

Parameters:
fqn - the identity for the cache
key - the identity valid for the parent
type - the object type
state - the initial state
Returns:
an instance of the object

destroyObject

public void destroyObject(java.lang.Object object)
Destroy an object of the model.


attachChild

public void attachChild(java.lang.Object parent,
                        java.lang.Object child)
Attach a child to the parent.


detachChild

public void detachChild(java.lang.Object child)
Detach a child from its parent.


updateObject

public void updateObject(java.lang.Object object,
                         java.lang.String name,
                         java.lang.Object value)
Update part of the object.