|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.om.profile.BasePSMLDocument
This class represents a loaded PSML document in memory, providing all facilities for finding and updating specific parts of the document.
Constructor Summary | |
BasePSMLDocument()
Construct a new empty PSMLDocument |
|
BasePSMLDocument(java.lang.String name,
Portlets portlets)
Construct a new named PSMLDocument associated with the specified PSML portlet set description |
Method Summary | |
java.lang.Object |
clone()
Create a clone of this object |
static Entry |
getEntry(Portlets portlets,
java.lang.String name)
Returns the first entry in the specified PSML resource corresponding to the given portlet name |
Entry |
getEntry(java.lang.String name)
Returns the first entry in the current PSML resource corresponding to the given portlet name |
static Entry |
getEntryById(Portlets portlets,
java.lang.String entryId)
Returns the first entry in the specified PSML resource corresponding to the given portlet Id |
Entry |
getEntryById(java.lang.String entryId)
Returns the first entry in the current PSML resource corresponding to the given entry id |
java.lang.String |
getName()
Return the name of this document |
Portlets |
getPortlets()
Return ths portlet set PSML description of this document |
Portlets |
getPortlets(int position)
Returns the first portlets element in the current PSML resource found at the specified position. |
static Portlets |
getPortlets(Portlets portlets,
int position,
int count)
Returns the first portlets element in the specified PSML resource in the given position |
static Portlets |
getPortlets(Portlets portlets,
java.lang.String name)
Returns the first portlets element in the specified PSML resource corresponding to the given name |
Portlets |
getPortlets(java.lang.String name)
Returns the first portlets element in the current PSML resource corresponding to the given name |
static Portlets |
getPortletsById(Portlets portlets,
java.lang.String portletId)
Returns the first portlets element in the specified PSML resource corresponding to the given Id |
Portlets |
getPortletsById(java.lang.String portletId)
Returns the first portlets element in the current PSML resource corresponding to the given id |
static boolean |
removeEntryById(Portlets portlets,
java.lang.String entryId)
Remove the Entry in the specified PSML resource corresponding to the given portlet Id |
boolean |
removeEntryById(java.lang.String entryId)
Remove the Entry in the specified PSML resource corresponding to the given portlet Id |
void |
setName(java.lang.String name)
Sets a new name for this document |
void |
setPortlets(Portlets portlets)
Sets a new PSML object model for this document |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasePSMLDocument()
public BasePSMLDocument(java.lang.String name, Portlets portlets)
name
- the name of this documentportlets
- the PSML memory structureMethod Detail |
public final java.lang.String getName()
getName
in interface PSMLDocument
public final void setName(java.lang.String name)
setName
in interface PSMLDocument
name
- the new document namepublic final Portlets getPortlets()
getPortlets
in interface PSMLDocument
public final void setPortlets(Portlets portlets)
setPortlets
in interface PSMLDocument
portlets
- the PSML object modelpublic Entry getEntry(java.lang.String name)
getEntry
in interface PSMLDocument
name
- the portlet name to seek
public Entry getEntryById(java.lang.String entryId)
getEntryById
in interface PSMLDocument
entryId
- the portlet's entry id to seek
public Portlets getPortlets(java.lang.String name)
getPortlets
in interface PSMLDocument
name
- the portlets name to seek
public Portlets getPortletsById(java.lang.String portletId)
getPortletsById
in interface PSMLDocument
portletId
- the portlet's entry id to seek
public Portlets getPortlets(int position)
getPortlets
in interface PSMLDocument
position
- the sought position
public static Entry getEntry(Portlets portlets, java.lang.String name)
portlets
- the PSML description to look intoname
- the portlet name to seek
public static Entry getEntryById(Portlets portlets, java.lang.String entryId)
portlets
- the PSML description to look intoentryId
- the portlet's entry id to seek
public static Portlets getPortletsById(Portlets portlets, java.lang.String portletId)
portlets
- the PSML description to look intoportletId
- the portlet's id to seek
public static Portlets getPortlets(Portlets portlets, java.lang.String name)
portlets
- the PSML description to look intoname
- the portlets name to seek
public static Portlets getPortlets(Portlets portlets, int position, int count)
portlets
- the PSML description to look intoposition
- the position to look forcount
- the numbering for the portlets passed as parameter
public boolean removeEntryById(java.lang.String entryId)
removeEntryById
in interface PSMLDocument
entryId
- the portlet's entry id to seek
public static boolean removeEntryById(Portlets portlets, java.lang.String entryId)
portlets
- the PSML description to look intoentryId
- the portlet's entry id to seekpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface PSMLDocument
java.lang.CloneNotSupportedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |