|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jstore.BasicStorable
com.jalios.jcms.Data
com.jalios.jcms.Publication
com.jalios.jcms.portlet.PortalElement
com.jalios.jcms.portlet.Portlet
com.jalios.jcms.portlet.PortletCollection
public abstract class PortletCollection
An abstract PortletCollection représentation with fields to implements - PortalElement[] -> Children
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jalios.jcms.portlet.PortalElement |
---|
PortalElement.AbilitySelector |
Nested classes/interfaces inherited from class com.jalios.jcms.Data |
---|
Data.AuthorSelector, Data.CdateSelector, Data.DataNameComparator, Data.DeletableSelector, Data.ImportSelector, Data.MdateSelector, Data.OpAuthorComparator |
Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable |
---|
BasicStorable.CdateComparator, BasicStorable.IdComparator, BasicStorable.MdateComparator |
Field Summary | |
---|---|
protected LinkedHashMap |
cachedBindingMap
|
protected String[] |
cachedBindings
|
protected PortalElement[] |
cachedChildren
|
protected LinkedHashMap |
cachedChildrenMap
|
static String |
ICON_COL
|
static String |
ICON_COLLEC
|
static String |
ICON_JSP_COLLECT
|
static String |
ICON_ROW
|
static String |
ICON_STATSREPORT
|
static String |
PORTAL_ACTION_DELETE
|
static String |
PORTAL_ACTION_DOWN
|
static String |
PORTAL_ACTION_LEFT
|
static String |
PORTAL_ACTION_RIGHT
|
static String |
PORTAL_ACTION_UP
|
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.portlet.PortalElement |
---|
abilities, allAbilities, allAbilityMap, cachedAbilities, ICON_PORTLET, ICON_STATS, tteDefault |
Fields inherited from class com.jalios.jcms.Publication |
---|
adate, authorizedGroupSet, authorizedMemberSet, categories, categorySet, CTRL_TOPIC_ADVANCED, CTRL_TOPIC_CATEGORIES, CTRL_TOPIC_WORKFLOW, edate, friendlyURLSet, indexMgr, isTracked, mainInstance, mainLanguage, majorVersion, mergeDate, mergeId, minorVersion, pdate, pstatus, roleMap, sdate, templates, title, titleML, udate, updateGroupSet, updateMemberSet, wfExpressAlarmEntry, wfReminderAlarmEntry, workspace |
Fields inherited from class com.jalios.jcms.Data |
---|
author, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, lockDate, lockMember, opAuthor, opDelegate |
Fields inherited from class com.jalios.jstore.BasicStorable |
---|
cdate, ddate, id, mdate, store |
Fields inherited from interface com.jalios.jcms.mashup.ImportConstants |
---|
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROP |
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants |
---|
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
Constructor Summary | |
---|---|
PortletCollection()
|
|
PortletCollection(PortletCollection other)
|
Method Summary | |
---|---|
Portlet |
cut(int index,
Member loggedMember)
Cut a Portlet at the specified index from the current Collection |
boolean |
delete(int index,
Member loggedMember)
Cut a Portlet at the specified index from the current Collection |
protected void |
duplicateDeep(WizardContext context,
PortalElement parent)
Performs a deep duplicate of the PortalElement in a WizardContext. |
String |
getBinding(PortalElement portlet)
Returns Label associated to given PortalElement or null if it has not been declared |
LinkedHashMap |
getCachedBindingMap()
Returns a Map of Keys: String: Labels or PortalElement's ids Values: PortalElement or List of PortalElement WARNING: return internal Index not a copy ! |
LinkedHashMap |
getCachedChildrenMap()
Returns a Map of Keys: String: PortalElement's ids Values: String: Label bind to given PortalElement WARNING: return internal Index not a copy ! |
PortalElement |
getChild(String bindName)
Returns the first PortalElement matching the given binding |
abstract PortalElement[] |
getChildren()
|
PortalElement[] |
getChildren(String[] bindNames)
Returns a List of PortalElement matching the given binding |
abstract String[] |
getChildrenBindings()
|
List |
getChildrenList(String bindName)
Returns a List of PortalElement matching the given binding |
List |
getChildrenList(String[] bindNames)
Returns a List of PortalElement matching the given binding |
String |
getIcon()
|
Collection |
getTreeChildren()
Returns a Collection of TreeNode children of the current node |
void |
move(int pos,
int direction,
Member loggedMember)
|
boolean |
past(Portlet portlet,
int index,
Member loggedMember)
Past a Portlet at the specified index into the current Collection |
protected void |
performChildrenBindings(PortalElement[] children,
String[] bindings)
Update the Children BindingMap. |
void |
processAction(Member mbr,
javax.servlet.http.HttpServletRequest request)
|
abstract void |
setChildren(PortalElement[] p)
|
abstract void |
setChildrenBindings(String[] v)
|
void |
setChildrenMap(Map deltaMap)
Convenient method to Partially update children/bindings arrays with the given Map of Id/Label: 1. |
Methods inherited from class com.jalios.jcms.portlet.Portlet |
---|
getAlignH, getAlignTable, getAlignV, getAvailableCssDisplay, getBackColor, getBackImage, getBorder, getBorderColor, getCellPadding, getCondition, getDisplayCSS, getInsetBottom, getInsetLeft, getInsetRight, getInsetTop, getWidth, setAlignH, setAlignTable, setAlignV, setBackColor, setBackImage, setBorder, setBorderColor, setCellPadding, setCondition, setDisplayCSS, setInsetBottom, setInsetLeft, setInsetRight, setInsetTop, setWidth |
Methods inherited from class com.jalios.jstore.BasicStorable |
---|
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getDdate, getId, getMdate, getStore, getUrid, hasBeenUpdated, isStored, resolveAtt, resolveVal, setAttributes, setDdate, setId, setStore, toXml |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final String PORTAL_ACTION_UP
public static final String PORTAL_ACTION_DOWN
public static final String PORTAL_ACTION_LEFT
public static final String PORTAL_ACTION_RIGHT
public static final String PORTAL_ACTION_DELETE
protected transient LinkedHashMap cachedChildrenMap
protected transient LinkedHashMap cachedBindingMap
protected transient PortalElement[] cachedChildren
protected transient String[] cachedBindings
public static final String ICON_COLLEC
public static final String ICON_ROW
public static final String ICON_COL
public static final String ICON_STATSREPORT
public static final String ICON_JSP_COLLECT
Constructor Detail |
---|
public PortletCollection()
public PortletCollection(PortletCollection other)
Method Detail |
---|
protected void duplicateDeep(WizardContext context, PortalElement parent)
PortalElement
duplicateDeep
in class PortalElement
context
- WizardContext describe the dupliate contextparent
- PortalElement parent of portlets to deeply duplicatepublic abstract String[] getChildrenBindings()
public abstract void setChildrenBindings(String[] v)
public LinkedHashMap getCachedBindingMap()
public LinkedHashMap getCachedChildrenMap()
public String getBinding(PortalElement portlet)
portlet
- the portlet to work with
public PortalElement getChild(String bindName)
bindName
- the binding name
public List getChildrenList(String bindName)
bindName
- the binding name
public List getChildrenList(String[] bindNames)
bindNames
- the binding name
public PortalElement[] getChildren(String[] bindNames)
bindNames
- the binding name
protected void performChildrenBindings(PortalElement[] children, String[] bindings)
bindings
- String[] of bindings or nullpublic void setChildrenMap(Map deltaMap)
deltaMap
- Map of Id/Labelpublic String getIcon()
getIcon
in class PortalElement
public abstract PortalElement[] getChildren()
public abstract void setChildren(PortalElement[] p)
public Collection getTreeChildren()
TreeNode
getTreeChildren
in interface TreeNode
getTreeChildren
in class PortalElement
TreeNode.getTreeChildren()
public Portlet cut(int index, Member loggedMember)
index
- loggedMember
-
public boolean delete(int index, Member loggedMember)
index
- loggedMember
-
public boolean past(Portlet portlet, int index, Member loggedMember)
portlet
- index
- loggedMember
- public void move(int pos, int direction, Member loggedMember)
public void processAction(Member mbr, javax.servlet.http.HttpServletRequest request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |