|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.core.impl.model.portal.PortalObjectImpl
public abstract class PortalObjectImpl
Field Summary | |
---|---|
protected static int |
ALL_TYPES_MASK
. |
protected static Logger |
log
The logger. |
Fields inherited from interface org.jboss.portal.core.model.portal.PortalObject |
---|
CONTEXT_MASK, DEFAULT_OBJECT_NAME, PAGE_MASK, PORTAL_MASK, PORTAL_PROP_DEFAULT_OBJECT_NAME, TYPE_CONTEXT, TYPE_PAGE, TYPE_PORTAL, TYPE_WINDOW, WINDOW_MASK |
Constructor Summary | |
---|---|
PortalObjectImpl()
|
|
PortalObjectImpl(boolean initState)
|
Method Summary | |
---|---|
protected void |
addChild(java.lang.String name,
PortalObjectImpl childObject)
|
protected abstract PortalObjectImpl |
cloneObject()
|
PortalObject |
copy(PortalObject parent,
java.lang.String name,
boolean deep)
Copy the portal object as a child of the specified object. |
protected void |
destroy()
Overridable callback. |
void |
destroyChild(java.lang.String name)
Destroy an existing child. |
boolean |
equals(java.lang.Object obj)
|
PortalObject |
getChild(java.lang.String name)
Return a specific child object or null if it does not exist. |
java.util.Collection |
getChildren()
Return all the children of this object. |
java.util.Collection |
getChildren(int wantedMask)
Return all the children of this object filtered with a particular mask. |
java.util.Map |
getDeclaredProperties()
Return a map that contains the object declared properties. |
java.lang.String |
getDeclaredProperty(java.lang.String name)
Return a property declared on that object. |
java.util.Map |
getDeclaredPropertyMap()
|
protected PortalObject |
getDefaultChild()
Return the default child of this object based on the declared property that specifies the default object name. |
PortalObjectId |
getId()
Return the object id unique in the scope of its container. |
java.lang.Long |
getKey()
|
java.lang.String |
getListener()
Returns the listener id or null if there is none. |
protected int |
getMask()
|
protected int |
getMask(int portalObjectType)
Returns the mask for this kind of object. |
java.lang.String |
getName()
Return the object name unique in the scope of its parent. |
ObjectNode |
getObjectNode()
|
PortalObject |
getParent()
Return the parent object. |
java.util.Map |
getProperties()
Get the aggregated properties in a lazy manner. |
java.lang.String |
getProperty(java.lang.String name)
Return a property of that object. |
abstract int |
getType()
Returns the type of the object which is a value that discriminates the object type. |
int |
hashCode()
|
void |
setDeclaredProperty(java.lang.String name,
java.lang.String value)
Update a property declared on that object. |
void |
setDeclaredPropertyMap(java.util.Map properties)
|
void |
setKey(java.lang.Long key)
|
void |
setListener(java.lang.String listener)
Set a listener id. |
void |
setObjectNode(ObjectNode objectNode)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Logger log
protected static final int ALL_TYPES_MASK
Constructor Detail |
---|
public PortalObjectImpl()
public PortalObjectImpl(boolean initState)
Method Detail |
---|
public java.lang.Long getKey()
public void setKey(java.lang.Long key)
public ObjectNode getObjectNode()
public void setObjectNode(ObjectNode objectNode)
public PortalObjectId getId()
PortalObject
getId
in interface PortalObject
public void destroyChild(java.lang.String name) throws NoSuchPortalObjectException
PortalObject
destroyChild
in interface PortalObject
name
- the child name
NoSuchPortalObjectException
- if the child does not existpublic java.lang.String getName()
PortalObject
getName
in interface PortalObject
public PortalObject copy(PortalObject parent, java.lang.String name, boolean deep) throws DuplicatePortalObjectException, java.lang.IllegalArgumentException
PortalObject
copy
in interface PortalObject
parent
- the parent of the copyname
- the name of the childdeep
- true copies recursively children
DuplicatePortalObjectException
- if the specified parent has already a node with such a name
java.lang.IllegalArgumentException
- if the specified parent is nullpublic java.util.Collection getChildren()
PortalObject
getChildren
in interface PortalObject
public java.util.Collection getChildren(int wantedMask)
PortalObject
getChildren
in interface PortalObject
public java.lang.String getListener()
PortalObject
getListener
in interface PortalObject
public void setListener(java.lang.String listener)
PortalObject
setListener
in interface PortalObject
listener
- the listener idpublic PortalObject getParent()
PortalObject
getParent
in interface PortalObject
public PortalObject getChild(java.lang.String name)
PortalObject
getChild
in interface PortalObject
public java.util.Map getProperties()
getProperties
in interface PortalObject
public java.util.Map getDeclaredPropertyMap()
public void setDeclaredPropertyMap(java.util.Map properties)
public java.util.Map getDeclaredProperties()
PortalObject
getDeclaredProperties
in interface PortalObject
public java.lang.String getDeclaredProperty(java.lang.String name)
PortalObject
getDeclaredProperty
in interface PortalObject
public void setDeclaredProperty(java.lang.String name, java.lang.String value)
PortalObject
setDeclaredProperty
in interface PortalObject
name
- the property namevalue
- the property valuepublic java.lang.String getProperty(java.lang.String name)
PortalObject
getProperty
in interface PortalObject
public abstract int getType()
PortalObject
getType
in interface PortalObject
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected PortalObject getDefaultChild()
protected abstract PortalObjectImpl cloneObject()
protected void destroy()
protected final int getMask()
protected final int getMask(int portalObjectType)
protected final void addChild(java.lang.String name, PortalObjectImpl childObject) throws DuplicatePortalObjectException, java.lang.IllegalArgumentException
DuplicatePortalObjectException
java.lang.IllegalArgumentException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |