com.jalios.jcms.portlet
Class PortletCollection

java.lang.Object
  extended by com.jalios.jstore.BasicStorable
      extended by com.jalios.jcms.Data
          extended by com.jalios.jcms.Publication
              extended by com.jalios.jcms.portlet.PortalElement
                  extended by com.jalios.jcms.portlet.Portlet
                      extended by com.jalios.jcms.portlet.PortletCollection
All Implemented Interfaces:
EditableData, JcmsConstants, ImportConstants, MashupConstants, Searchable, Storable, JaliosConstants, LangPropertyArgument, TreeNode, Cloneable, Comparable<BasicStorable>

public abstract class PortletCollection
extends Portlet

An abstract PortletCollection représentation with fields to implements - PortalElement[] -> Children

Version:
$Revision: 40152 $

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.Publication
Publication.AdateComparator<T extends Publication>, Publication.AdateSelector, Publication.AudienceRightComparator<T extends Publication>, Publication.AudienceRightSelector, Publication.AuthorComparator<T extends Publication>, Publication.AuthorizedSelector, Publication.CanWorkOnSelector, Publication.DdateComparator<T extends Publication>, Publication.EdateComparator<T extends Publication>, Publication.EdateSelector, Publication.PdateComparator<T extends Publication>, Publication.PdateSelector, Publication.PstatusComparator<T extends Publication>, Publication.PstatusSelector, Publication.RatingComparator<T extends Publication>, Publication.ReaderComparator<T extends Publication>, Publication.ReadRightSelector, Publication.ReviewCountComparator<T extends Publication>, Publication.RightComparator<T extends Publication>, Publication.SdateComparator<T extends Publication>, Publication.SdateSelector, Publication.TitleComparator<T extends Publication>, Publication.TrackedSelector, Publication.TypeComparator<T extends Publication>, Publication.UdateComparator<T extends Publication>, Publication.UdateSelector, Publication.UserContentSelector, Publication.VisibleStateSelector, Publication.WorkspaceAuthorSelector, Publication.WorkspaceComparator<T extends Publication>, Publication.WorkspaceSelector
 
Nested classes/interfaces inherited from class com.jalios.jcms.Data
Data.AuthorSelector, Data.CdateSelector, Data.DataNameComparator<T extends Data>, Data.DeletableSelector, Data.ImportSelector, Data.MdateSelector, Data.OpAuthorComparator<T extends Data>, Data.RowIdComparator<T extends Data>, Data.StrongLockSelector
 
Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable
BasicStorable.CdateComparator<T extends Storable>, BasicStorable.IdComparator<T extends Storable>, BasicStorable.MdateComparator<T extends Storable>
 
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.Portlet
cacheSensibilityLabelMap, cacheSensibilityValues, cacheTypeLabelMap, cacheTypeValues
 
Fields inherited from class com.jalios.jcms.portlet.PortalElement
abilities, allAbilities, allAbilityMap, allAbilityMapUI, cachedAbilities, ICON_PORTLET, ICON_STATS, tteDefault
 
Fields inherited from class com.jalios.jcms.Publication
adate, allCatIdSet, authGrpIdSet, authGrpIdSetDirty, authGrpIdSetInit, authMbrIdSet, authMbrIdSetDirty, authMbrIdSetInit, authorizedGroupSet, authorizedMemberSet, categories, categorySet, catIdSet, catIdSetDirty, catIdSetInit, CTRL_TOPIC_ADVANCED, CTRL_TOPIC_CATEGORIES, CTRL_TOPIC_WORKFLOW, edate, friendlyURLSet, hasNoReadRightsDBData, indexMgr, isTracked, mainInstance, mainLanguage, majorVersion, mergeDate, mergeId, minorVersion, pdate, pstatus, readerCount, roleMap, sdate, templates, title, titleML, udate, updateGroupSet, updateMemberSet, wfExpressAlarmEntry, wfReminderAlarmEntry, workflowId, workspace
 
Fields inherited from class com.jalios.jcms.Data
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, 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, RELATED_TAG
 
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_DEEP_COPY, OP_DEEP_DELETE, OP_DELETE, OP_MERGE, OP_UPDATE, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SESSION_AUTHORIZED_FILENAMES_SET, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
 
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
 ControllerStatus checkWrite(int op, Member mbr, boolean checkIntegrity, Map context)
          Checks if the given write operation can be performed
 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.jcms.portlet.PortalElement
addAbility, containsTreeDescendant, duplicate, duplicate, duplicate, duplicate, duplicate, duplicateDeep, getAbilities, getAbilities, getAbilities, getAbilityLabel, getAbilitySelector, getAbstract, getAbstract, getAllAbilities, getAllAbilities, getAllAbilityMap, getAllAbilityMapUI, getAllTreeChildren, getBehaviorCopy, getCacheSensibility, getCacheType, getCacheTypeInt, getContentTitle, getCssClasses, getCssId, getDefaultTemplateUsage, getDescription, getDescription, getDescriptionML, getInvalidClass, getInvalidTime, getPortletImage, getPortletImage, getPortletImageML, getPreview, getResolvedInvalidClass, getSkinPath, getSkinPath, getSkinTemplateEntry, getTreeParent, getTreeParent, hasAbility, hasAbility, hasCacheGroups, hasCacheMembers, hasCacheServer, hasCacheSession, hasCacheSessionAndVisitors, hasCacheVisitorsOnly, hasCurrentCategoryCacheSensibility, hasNoCache, hasNoCacheSensibility, hasPortalCategoryCacheSensibility, isChildTreeNode, isCopy, isReference, isTreeLeaf, isTreeNode, isWorkspaceReference, performUpdate, setAbilities, setBehaviorCopy, setCacheSensibility, setCacheType, setCssClasses, setCssId, setDescription, setDescriptionML, setInvalidClass, setInvalidTime, setPortletImage, setPortletImageML
 
Methods inherited from class com.jalios.jcms.Publication
addAuthorizedGroup, addAuthorizedMember, addCategory, addFollower, addWeakReferrer, addWFExpressAlarm, addWFReminderAlarm, assignCommonPublicationFields, assignRole, assignRole, canBeArchived, canBeArchived, canBeEditedFieldByField, canBeFollowedBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canCreateCopy, canCreateCopy, canCreateWorkCopy, canMergeWorkCopy, checkCreate, checkDelete, checkIntegrity, checkLang, checkMember, checkMerge, checkStateChange, checkStateChange, checkTemplateEntry, checkUpdate, clearTransientIndex, cloneDBDataCollections, computeSignature, computeSignature, containsCategory, createCopy, createWFNote, createWFNote, createWorkCopy, exportXmlField, getAbstract, getAbstractML, getAccessCount, getAdate, getAdateComparator, getAdateSelector, getAllCatIdSet, getAllFilePath, getAllWikiText, getAllWysiwygText, getAudiencedRightsString, getAudienceRightComparator, getAudienceRightSelector, getAuthGrpIdSet, getAuthMbrIdSet, getAuthorizedGroupSet, getAuthorizedMemberSet, getAuthorizedSelector, getCanWorkOnSelector, getCategories, getCategories, getCategorySet, getCatIdSet, getComparator, getComparator, getComparator, getCSVHeader, getDataName, getDate, getDate, getDateSelector, getDBDataRevision, getDdateComparator, getDescendantCategorySet, getDescendantCategorySet, getDescendantCategorySet, getDisplayTemplateFile, getDocumentLinkSet, getEdate, getEdateComparator, getEdateSelector, getEstimatedReminderCount, getExternalLinkSet, getFieldInMainLanguage, getFieldValue, getFirstDescendantCategory, getFirstDescendantCategory, getFirstDescendantCategory, getFollowerList, getFriendlyURLSet, getGlobalRating, getHasNoReadRights, getImportConflictCopy, getImportVersion, getIndexingDate, getInternalWorkflow, getLinkDataSet, getMainInstance, getMainLanguage, getMajorVersion, getMemberSetAssignedToRole, getMergeDate, getMergeId, getMinorVersion, getNextWFStateSet, getPdate, getPdateComparator, getPdateSelector, getPstatus, getPstatusAlarmEntry, getPstatusComparator, getPstatusSelector, getPstatusSelector, getQueryTemplateFile, getRatingComparator, getReaderComparator, getReaderCount, getReaderTrackerList, getReadRightSelector, getReadRightsString, getReview, getReviewCount, getReviewCountComparator, getReviewList, getReviewList, getRightComparator, getRoleMap, getRoleMapStr, getSdate, getSdateComparator, getSdateSelector, getSearchStrings, getTemplate, getTemplateEntry, getTemplateEntry, getTemplateEntrySet, getTemplatePath, getTemplatePath, getTemplates, getTitle, getTitle, getTitle, getTitleComparator, getTitleComparator, getTitleML, getTrackedSelector, getTreeRoot, getTypeComparator, getTypeLabel, getUdate, getUdateComparator, getUdateSelector, getUpdateGroupSet, getUpdateMemberSet, getVersionString, getVisibleStateSelector, getWeakReferrerSet, getWFNoteList, getWFState, getWFStateLabel, getWFStateLabelHtml, getWorkCopySet, getWorkflow, getWorkflowId, getWorkspace, getWorkspaceAuthorSelector, getWorkspaceComparator, getWorkspaceId, getWorkspaceSelector, getWSTypeEntry, getWSTypeEntry, hasAlreadyVoted, hasAnyReadRights, hasBeenReadBy, hasCategory, hasImportConflict, hasNoReadRights, hasReview, hasWeakReferrers, importConvertToLocal, importMarkAsMerged, importOverrideAndUpdate, importXml, init, initCopy, initializeDBDataCollections, internalCanBeReadBy, isAudienced, isDefaultTemplate, isFollowedBy, isImportConflictCopy, isInRole, isInVisibleState, isPublic, isRoleAssigned, isTracked, isUserContent, isUserContentType, isVersioned, isWorkCopy, majorUpdate, notifyFollowers, performAfterWrite, performBeforeWrite, performCreate, performDelete, performMerge, performMerge, prepareMergeCopy, putPstatusAlarmEntry, removeAllDescendants, removeAllFollowers, removeAllReaderTracker, removeAuthorizedGroup, removeAuthorizedMember, removeCategory, removeDataSet, removeFollower, removeImportMetadata, removePstatusAlarmEntry, removeWeakReferrer, removeWFExpressAlarm, removeWFReminderAlarm, resolveTypeTemplateEntry, setAbstract, setAbstract, setAdate, setAllCatIdSet, setAuthGrpIdSet, setAuthMbrIdSet, setAuthorizedGroupSet, setAuthorizedMemberSet, setCategories, setCategorySet, setCatIdSet, setCdate, setEdate, setFieldValue, setFriendlyURLSet, setHasNoReadRights, setImportConflictCopy, setImportVersion, setMainInstance, setMainLanguage, setMajorVersion, setMergeDate, setMergeId, setMinorVersion, setPdate, setPstatus, setReaderCount, setRoleMap, setRoleMapStr, setRoleMemberSetMap, setSdate, setTemplate, setTemplates, setTitle, setTitle, setTitleML, setTracked, setUdate, setUpdateGroupSet, setUpdateMemberSet, setWorkflow, setWorkflowId, setWorkspace, setWorkspaceId, toCSV, toFullString, toString, trackReader, unassignMember, unassignRole, updatePstatus, updateTemplate
 
Methods inherited from class com.jalios.jcms.Data
canRequestLock, checkCreate, checkDelete, checkIntegrity, checkLockMember, checkStrongLockMember, checkUpdate, clone, computeDBIDArray, exportXml, exportXml, exportXml, exportXml, exportXmlRelated, exportXmlRelated, fillExportXmlFieldAttributes, getAllReferrerSet, getAllReferrerSet, getAllTypeFieldEntry, getAuthor, getAuthor, getAuthorComparator, getAuthorDBID, getAuthorId, getAuthorSelector, getBooleanFieldValue, getBooleanFieldValue, getCaddyComparator, getCategoryFieldValue, getCategoryFieldValue, getCdateSelector, getDataImage, getDataImage, getDataImage, getDataNameComparator, getDeletableSelector, getDisplayLink, getDisplayLink, getDisplayUrl, getDoubleFieldValue, getDoubleFieldValue, getExportXmlDataValue, getExtension, getExtraData, getExtraDataMap, getExtraDBData, getExtraDBDataMap, getExtraInfo, getExtraInfoMap, getFieldStatusMap, getFieldValue, getFieldValue, getFieldValue, getGenericThumbnail, getImportAuthor, getImportBatch, getImportDate, getImportDisplayUrl, getImportId, getImportMap, getImportMdate, getImportSelector, getImportSignature, getImportSource, getImportSourceUrl, getImportUrl, getIntFieldValue, getIntFieldValue, getLangPropertyValue, getLinkCount, getLinkIndexedDataSet, getLinkIndexedDataSet, getLockDate, getLockInfo, getLockMember, getLongFieldValue, getLongFieldValue, getMdateSelector, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getOpAuthor, getOpAuthorComparator, getOpDelegate, getRowId, getRowIdComparator, getStrongLock, getStrongLockDate, getStrongLockInfo, getStrongLockMember, getStrongLockSelector, getTypeEntry, getTypeFieldsEntries, getUpdateInstance, hashCode, importXmlFieldsWithReferences, importXmlFiles, importXmlReferences, isDBData, isImported, isImportUpdated, isInDatabase, isLocked, isPersisted, isStrongLocked, lock, markNewImport, mergeHybridLink, performCreate, performDelete, performUpdate, prepareUpdateContext, printDataName, printDisplayLinkEnd, printDisplayLinkStart, printDisplayUrl, printDisplayUrl, putStrongLock, releaseStrongLock, releaseStrongLock, removeExtraData, removeExtraDBData, removeExtraInfo, setAuthor, setAuthorDBID, setAuthorId, setBooleanFieldValue, setCategoryFieldValue, setDoubleFieldValue, setExtension, setExtraData, setExtraDataMap, setExtraDBData, setExtraDBDataMap, setExtraDBDataMap, setExtraInfo, setFieldValue, setImportAuthor, setImportBatch, setImportDate, setImportDisplayUrl, setImportId, setImportMap, setImportMdate, setImportSignature, setImportSource, setImportSourceUrl, setImportUpdated, setIntFieldValue, setLongFieldValue, setMdate, setOpAuthor, setOpDelegate, setRowId, unlock, unlock, unmarkNewImport, updateExtraDataMap, updateExtraDBDataMap, updateIndexTreeSet
 
Methods inherited from class com.jalios.jstore.BasicStorable
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, 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
 
Methods inherited from interface com.jalios.util.TreeNode
getTreeRoot
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

PORTAL_ACTION_UP

public static final String PORTAL_ACTION_UP
See Also:
Constant Field Values

PORTAL_ACTION_DOWN

public static final String PORTAL_ACTION_DOWN
See Also:
Constant Field Values

PORTAL_ACTION_LEFT

public static final String PORTAL_ACTION_LEFT
See Also:
Constant Field Values

PORTAL_ACTION_RIGHT

public static final String PORTAL_ACTION_RIGHT
See Also:
Constant Field Values

PORTAL_ACTION_DELETE

public static final String PORTAL_ACTION_DELETE
See Also:
Constant Field Values

cachedChildrenMap

protected transient LinkedHashMap cachedChildrenMap

cachedBindingMap

protected transient LinkedHashMap cachedBindingMap

cachedChildren

protected transient PortalElement[] cachedChildren

cachedBindings

protected transient String[] cachedBindings

ICON_COLLEC

public static final String ICON_COLLEC
See Also:
Constant Field Values

ICON_ROW

public static final String ICON_ROW
See Also:
Constant Field Values

ICON_COL

public static final String ICON_COL
See Also:
Constant Field Values

ICON_STATSREPORT

public static final String ICON_STATSREPORT
See Also:
Constant Field Values

ICON_JSP_COLLECT

public static final String ICON_JSP_COLLECT
See Also:
Constant Field Values
Constructor Detail

PortletCollection

public PortletCollection()

PortletCollection

public PortletCollection(PortletCollection other)
Method Detail

duplicateDeep

protected void duplicateDeep(WizardContext context,
                             PortalElement parent)
Description copied from class: PortalElement
Performs a deep duplicate of the PortalElement in a WizardContext. Update prefix, workspace, category, groups, ...

Overrides:
duplicateDeep in class PortalElement
Parameters:
context - WizardContext describe the dupliate context
parent - PortalElement parent of portlets to deeply duplicate

checkWrite

public ControllerStatus checkWrite(int op,
                                   Member mbr,
                                   boolean checkIntegrity,
                                   Map context)
Description copied from class: Publication
Checks if the given write operation can be performed

Overrides:
checkWrite in class Publication
Parameters:
op - the operation (OP_CREATE, OP_UPDATE, ...)
mbr - the member which requests the write operation
checkIntegrity - if true, requires the constraints integrity to be checked
context - a map which contains context parameters (may be null)
Returns:
a ControllerStatus

getChildrenBindings

public abstract String[] getChildrenBindings()

setChildrenBindings

public abstract void setChildrenBindings(String[] v)

getCachedBindingMap

public 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 !

Returns:
LinkedHashMap (String/PortalElement)

getCachedChildrenMap

public 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 !

Returns:
LinkedHashMap (String/String)

getBinding

public String getBinding(PortalElement portlet)
Returns Label associated to given PortalElement or null if it has not been declared

Parameters:
portlet - the portlet to work with
Returns:
String label bind to given portlet

getChild

public PortalElement getChild(String bindName)
Returns the first PortalElement matching the given binding

Parameters:
bindName - the binding name
Returns:
PortalElement or Null if the binding do not match

getChildrenList

public List getChildrenList(String bindName)
Returns a List of PortalElement matching the given binding

Parameters:
bindName - the binding name
Returns:
List of PortalElement

getChildrenList

public List getChildrenList(String[] bindNames)
Returns a List of PortalElement matching the given binding

Parameters:
bindNames - the binding name
Returns:
List of PortalElement

getChildren

public PortalElement[] getChildren(String[] bindNames)
Returns a List of PortalElement matching the given binding

Parameters:
bindNames - the binding name
Returns:
List of PortalElement

performChildrenBindings

protected void performChildrenBindings(PortalElement[] children,
                                       String[] bindings)
Update the Children BindingMap.

Parameters:
bindings - String[] of bindings or null

setChildrenMap

public void setChildrenMap(Map deltaMap)
Convenient method to Partially update children/bindings arrays with the given Map of Id/Label: 1. Override label declared 2. Preserve labels not declared in the Map No store modification is performed

Parameters:
deltaMap - Map of Id/Label

getIcon

public String getIcon()
Overrides:
getIcon in class PortalElement

getChildren

public abstract PortalElement[] getChildren()

setChildren

public abstract void setChildren(PortalElement[] p)

getTreeChildren

public Collection getTreeChildren()
Description copied from interface: TreeNode
Returns a Collection of TreeNode children of the current node

Specified by:
getTreeChildren in interface TreeNode
Overrides:
getTreeChildren in class PortalElement
Returns:
Collection of TreeNode
See Also:
TreeNode.getTreeChildren()

cut

public Portlet cut(int index,
                   Member loggedMember)
Cut a Portlet at the specified index from the current Collection

Parameters:
index -
loggedMember -
Returns:
Portlet
Since:
jcms-4.0

delete

public boolean delete(int index,
                      Member loggedMember)
Cut a Portlet at the specified index from the current Collection

Parameters:
index -
loggedMember -
Returns:
Portlet
Since:
jcms-4.0

past

public boolean past(Portlet portlet,
                    int index,
                    Member loggedMember)
Past a Portlet at the specified index into the current Collection

Parameters:
portlet -
index -
loggedMember -
Since:
jcms-4.0

move

public void move(int pos,
                 int direction,
                 Member loggedMember)

processAction

public void processAction(Member mbr,
                          javax.servlet.http.HttpServletRequest request)


Copyright © 2001-2010 Jalios SA. All Rights Reserved.