|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortalObject
The base interface for all portal objects.
Field Summary | |
---|---|
static int |
CONTEXT_MASK
. |
static java.lang.String |
DEFAULT_OBJECT_NAME
The default portal name. |
static int |
PAGE_MASK
. |
static int |
PORTAL_MASK
. |
static java.lang.String |
PORTAL_PROP_DEFAULT_OBJECT_NAME
Portal property name that indicates the name of the default portal to lookup. |
static int |
TYPE_CONTEXT
. |
static int |
TYPE_PAGE
. |
static int |
TYPE_PORTAL
. |
static int |
TYPE_WINDOW
. |
static int |
WINDOW_MASK
. |
Method Summary | ||
---|---|---|
PortalObject |
copy(PortalObject parent,
java.lang.String name,
boolean deep)
Copy the portal object as a child of the specified object. |
|
void |
destroyChild(java.lang.String name)
Destroy an existing child. |
|
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<PortalObject> |
getChildren()
Return all the children of this object. |
|
java.util.Collection<PortalObject> |
getChildren(int mask)
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. |
|
org.jboss.portal.common.i18n.LocalizedString |
getDisplayName()
Return the localized string used to represent that object. |
|
PortalObjectId |
getId()
Return the object id unique in the scope of its container. |
|
java.lang.String |
getListener()
Returns the listener id or null if there is none. |
|
java.lang.String |
getName()
Return the object name unique in the scope of its parent. |
|
PortalObject |
getParent()
Return the parent object. |
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns a read only map that contains the object properties. |
|
java.lang.String |
getProperty(java.lang.String name)
Return a property of that object. |
|
int |
getType()
Returns the type of the object which is a value that discriminates the object type. |
|
void |
setDeclaredProperty(java.lang.String name,
java.lang.String value)
Update a property declared on that object. |
|
void |
setDisplayName(org.jboss.portal.common.i18n.LocalizedString localizedString)
Set the localized string used to represent that object. |
|
void |
setListener(java.lang.String listener)
Set a listener id. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final java.lang.String PORTAL_PROP_DEFAULT_OBJECT_NAME
static final java.lang.String DEFAULT_OBJECT_NAME
static final int TYPE_CONTEXT
static final int TYPE_PORTAL
static final int TYPE_PAGE
static final int TYPE_WINDOW
static final int CONTEXT_MASK
static final int PORTAL_MASK
static final int PAGE_MASK
static final int WINDOW_MASK
Method Detail |
---|
PortalObjectId getId()
int getType()
java.lang.String getName()
org.jboss.portal.common.i18n.LocalizedString getDisplayName()
void setDisplayName(org.jboss.portal.common.i18n.LocalizedString localizedString)
localizedString
- the localized display namejava.lang.String getListener()
void setListener(java.lang.String listener)
listener
- the listener idjava.util.Collection<PortalObject> getChildren()
java.util.Collection<PortalObject> getChildren(int mask)
PortalObject getParent()
PortalObject getChild(java.lang.String name)
<T extends PortalObject> T getChild(java.lang.String name, java.lang.Class<T> expectedType)
null
if it cannot be found.
T
- a class extending PortalObjectname
- the child's nameexpectedType
- the expected type of the child to be retrieved
null
if it cannot be found
java.lang.IllegalArgumentException
- if the specified name or the specified class is null
void destroyChild(java.lang.String name) throws NoSuchPortalObjectException, java.lang.IllegalArgumentException
name
- the child name
NoSuchPortalObjectException
- if the child does not exist
java.lang.IllegalArgumentException
- if the name argument is nullPortalObject copy(PortalObject parent, java.lang.String name, boolean deep) throws DuplicatePortalObjectException, java.lang.IllegalArgumentException
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 nulljava.lang.String getProperty(java.lang.String name) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the name is nulljava.util.Map<java.lang.String,java.lang.String> getProperties()
java.lang.String getDeclaredProperty(java.lang.String name) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the name is nullvoid setDeclaredProperty(java.lang.String name, java.lang.String value) throws java.lang.IllegalArgumentException
name
- the property namevalue
- the property value
java.lang.IllegalArgumentException
- if the name argument is nulljava.util.Map<java.lang.String,java.lang.String> getDeclaredProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |