|
|||||||||
| 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 org.apache.log4j.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()
|
|
int |
compareTo(java.lang.Object o)
|
|
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. |
|
|
getChild(java.lang.String name,
java.lang.Class<T> expectedType)
Returns the child of the specified type and with the given name or null if it cannot be found. |
|
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<java.lang.String,java.lang.String> |
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<java.lang.String,java.lang.String> |
getDeclaredPropertyMap()
|
|
protected PortalObject |
getDefaultChild()
Return the default child of this object based on the declared property that specifies the default object name. |
|
org.jboss.portal.common.i18n.LocalizedString |
getDisplayName()
Return the localized string used to represent that object. |
|
java.util.Map |
getDisplayNames()
|
|
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<java.lang.String,java.lang.String> properties)
|
|
void |
setDisplayName(org.jboss.portal.common.i18n.LocalizedString displayName)
Set the localized string used to represent that object. |
|
void |
setDisplayNames(java.util.Map displayNames)
|
|
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 org.apache.log4j.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 PortalObjectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
public void destroyChild(java.lang.String name)
throws NoSuchPortalObjectException
PortalObject
destroyChild in interface PortalObjectname - the child name
NoSuchPortalObjectException - if the child does not existpublic java.lang.String getName()
PortalObject
getName in interface PortalObjectpublic void setDisplayNames(java.util.Map displayNames)
public java.util.Map getDisplayNames()
public void setDisplayName(org.jboss.portal.common.i18n.LocalizedString displayName)
PortalObject
setDisplayName in interface PortalObjectdisplayName - the localized display namepublic org.jboss.portal.common.i18n.LocalizedString getDisplayName()
PortalObject
getDisplayName in interface PortalObject
public PortalObject copy(PortalObject parent,
java.lang.String name,
boolean deep)
throws DuplicatePortalObjectException,
java.lang.IllegalArgumentException
PortalObject
copy in interface PortalObjectparent - 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 PortalObjectpublic java.util.Collection getChildren(int wantedMask)
PortalObject
getChildren in interface PortalObjectpublic java.lang.String getListener()
PortalObject
getListener in interface PortalObjectpublic void setListener(java.lang.String listener)
PortalObject
setListener in interface PortalObjectlistener - the listener idpublic PortalObject getParent()
PortalObject
getParent in interface PortalObjectpublic PortalObject getChild(java.lang.String name)
PortalObject
getChild in interface PortalObject
public <T extends PortalObject> T getChild(java.lang.String name,
java.lang.Class<T> expectedType)
PortalObjectnull if it cannot be found.
getChild in interface PortalObjectT - a class extending PortalObjectname - the child's nameexpectedType - the expected type of the child to be retrieved
null if it cannot be foundpublic java.util.Map getProperties()
getProperties in interface PortalObjectpublic java.util.Map<java.lang.String,java.lang.String> getDeclaredPropertyMap()
public void setDeclaredPropertyMap(java.util.Map<java.lang.String,java.lang.String> properties)
public java.util.Map<java.lang.String,java.lang.String> getDeclaredProperties()
PortalObject
getDeclaredProperties in interface PortalObjectpublic 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 PortalObjectname - the property namevalue - the property valuepublic java.lang.String getProperty(java.lang.String name)
PortalObject
getProperty in interface PortalObjectpublic abstract int getType()
PortalObject
getType in interface PortalObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected 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 | ||||||||