Package com.jalios.jcms.portlet
Class PortletCollection
- java.lang.Object
-
- com.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
-
- All Implemented Interfaces:
EditableData
,JcmsConstants
,ImportConstants
,MashupConstants
,Searchable
,Storable
,JaliosConstants
,LangPropertyArgument
,TreeNode
,java.lang.Cloneable
,java.lang.Comparable<BasicStorable>
public abstract class PortletCollection extends Portlet
An abstract PortletCollection representation 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.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.PopularityComparator<T extends Publication>, Publication.PstatusComparator<T extends Publication>, Publication.PstatusSelector, Publication.ReaderComparator<T extends Publication>, Publication.ReadRightSelector, Publication.RelatedCategoryComparator<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.VoteScoreComparator<T extends Publication>, 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
Fields Modifier and Type Field Description protected java.util.LinkedHashMap<java.lang.String,java.lang.String>
cachedBindingMap
protected java.lang.String[]
cachedBindings
protected PortalElement[]
cachedChildren
protected java.util.LinkedHashMap<java.lang.String,java.lang.String>
cachedChildrenMap
static java.lang.String
ICON_COL
static java.lang.String
ICON_COLLEC
static java.lang.String
ICON_JSP_COLLECT
static java.lang.String
ICON_ROW
static java.lang.String
ICON_STATSREPORT
static java.lang.String
PORTAL_ACTION_DELETE
static java.lang.String
PORTAL_ACTION_DOWN
static java.lang.String
PORTAL_ACTION_LEFT
static java.lang.String
PORTAL_ACTION_RIGHT
static java.lang.String
PORTAL_ACTION_UP
-
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
ACL_CAN_ATTACH_WS, adate, attachWorkspaceSet, ATTACHWS_CHECK_PUB_RIGHTS_PROP, authorizedGroupSet, authorizedMemberSet, authorizedMemberSetDBID, categories, categorySet, classificationLevel, CTRL_TOPIC_ADVANCED, CTRL_TOPIC_CATEGORIES, CTRL_TOPIC_WORKFLOW, CTX_PSTATUS_UPDATE, dbFriendlyURLSet, dbFriendlyURLSetInit, edate, extendedReadRightsDBData, friendlyURLSet, hasAttachWS, hasNoReadRightsDBData, hasNoReadRightsDBDataInitialized, indexMgr, isTracked, mainInstance, mainInstanceId, mainLanguage, majorVersion, mergeDate, mergeId, minorVersion, pdate, pstatus, PUBLICATION_WFNOTE, readAck, readerCount, restrictUpdateRights, roleMap, sdate, SYNC_ATTACH_WORKSPACE_MEDIA_ENABLED_PROP, templates, title, titleML, udate, updateGroupSet, updateMemberSet, voteCount, voteScore, weakDataImage, wfExpressAlarmEntry, wfReminderAlarmEntry, workflowId, workspace, workspaceId
-
Fields inherited from class com.jalios.jcms.Data
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, opAuthor, opDelegate, WRITE_IN_PROGRESS_EXTRA_INFO, WYSIWYG_INLINE_EDIT_REQUEST_PARAMETER
-
Fields inherited from class com.jalios.jstore.BasicStorable
cdate, ddate, id, isStoreCache, 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.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
-
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, AJAX_MODE_ATTR, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, CLASS_PROPERTY, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, COUNTRY_SPRITE, CS_TYPOLOGY_ROOT_CAT_VID, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DATA_DIRECTORY, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, GLYPH_ICON_PREFIX, ICON_ARCHIVE, ICON_ICON_PREFIX, ICON_LOCK, ICON_LOCK_STRONG, ICON_PREFIX_PROP, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, IS_IN_FRONT_OFFICE, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JCMS_TOASTR_COLLECTION, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LANG_SPRITE, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, ORGANIZATION_ROOT_GROUP_PROP, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_PROP_PREFIX, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_PROP_PREFIX, PHOTO_LARGE_WIDTH, PHOTO_MINI, PHOTO_MINI_HEIGHT, PHOTO_MINI_PROP_PREFIX, PHOTO_MINI_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_PROP_PREFIX, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_PROP_PREFIX, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_PROP_PREFIX, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, RAW_CONTENT_ICON_PREFIX, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SECURITY_LOG_FILE, SESSION_AUTHORIZED_FILENAMES_SET, SPRITE_ICON_PREFIX, STATS_REPORT_DIR, STATUS_PROP, STORE_DIR, STORE_XML, SUCCESS_MSG, SVG_ICON_PREFIX, SVGINLINE_ICON_PREFIX, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TTCARD_MEDIA_HEIGHT, TTCARD_MEDIA_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, UPLOAD_PERMISSION_COUNT_PROP_PREFIX, UPLOAD_PERMISSION_SIZE_PROP_PREFIX, URL_REGEXP, VID_LOGGED_MEMBER, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
-
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
-
-
Constructor Summary
Constructors Constructor Description PortletCollection()
PortletCollection(PortalElement other)
PortletCollection(Portlet other)
PortletCollection(PortletCollection other)
PortletCollection(Publication other)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ControllerStatus
checkWrite(int op, Member mbr, boolean checkIntegrity, java.util.Map context)
Checks if the given write operation can be performedPortlet
cut(int index, Member loggedMember)
Cut a Portlet at the specified index from the current Collectionboolean
delete(int index, Member loggedMember)
Cut a Portlet at the specified index from the current Collectionprotected void
duplicateDeep(WizardContext context, PortalElement parent)
Performs a deep duplicate of the PortalElement in a WizardContext.<T> T
findFirstPortlet(java.lang.Class<? extends T> clazz)
Returns the first child portlet of the given class.<T> java.util.Set<T>
findPortletSet(java.lang.Class<? extends T> clazz)
Returns all the children portlet of the given class.java.lang.String
getBinding(PortalElement portlet)
Returns Label associated to given PortalElement or null if it has not been declaredjava.util.LinkedHashMap<java.lang.String,java.lang.String>
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 !java.util.LinkedHashMap<java.lang.String,java.lang.String>
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(java.lang.String bindName)
Returns the first PortalElement matching the given bindingabstract PortalElement[]
getChildren()
PortalElement[]
getChildren(java.lang.String[] bindNames)
Returns a List of PortalElement matching the given bindingabstract java.lang.String[]
getChildrenBindings()
java.util.List<PortalElement>
getChildrenList(java.lang.String bindName)
Returns a List of PortalElement matching the given bindingjava.util.List
getChildrenList(java.lang.String[] bindNames)
Returns a List of PortalElement matching the given bindingjava.util.Collection
getTreeChildren()
Returns a Collection of TreeNode children of the current nodeControllerStatus
handleSortable(JcmsJspContext jcmsContext)
Handle a sortable request (ie a DnD) received for this portletvoid
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 Collectionprotected void
performChildrenBindings(PortalElement[] children, java.lang.String[] bindings)
Update the Children BindingMap.void
processAction(Member mbr, javax.servlet.http.HttpServletRequest request)
abstract void
setChildren(PortalElement[] p)
abstract void
setChildrenBindings(java.lang.String[] v)
void
setChildrenMap(java.util.Map<java.lang.String,java.lang.String> deltaMap)
Convenient method to Partially update children/bindings arrays with the given Map of Id/Label.-
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, getDataIcon, getDefaultTemplateUsage, getDescription, getDescription, getDescriptionML, getIcon, 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, isVotable, isWorkspaceReference, setAbilities, setBehaviorCopy, setCacheSensibility, setCacheType, setCssClasses, setCssId, setDescription, setDescriptionML, setInvalidClass, setInvalidTime, setPortletImage, setPortletImageML
-
Methods inherited from class com.jalios.jcms.Publication
ackRead, addAuthorizedGroup, addAuthorizedMember, addCategory, addFollower, addWeakReferrer, addWFExpressAlarm, addWFReminderAlarm, assignCommonPublicationFields, assignRole, assignRole, attachPublication, attachTo, canBeArchived, canBeArchived, canBeAttachedBy, canBeAttachedTo, canBeDetachedFrom, canBeEditedFieldByField, canBeFollowedBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeVotedBy, canCreateCopy, canCreateCopy, canCreateCopy, canCreateWorkCopy, canMergeWorkCopy, canRequestUnlock, checkAndPerformTrash, checkAndPerformUntrash, checkCreate, checkDelete, checkIntegrity, checkLang, checkMember, checkMerge, checkStateChange, checkStateChange, checkTemplateEntry, checkTrash, checkUntrash, checkUpdate, cleanHybridCollections, clearTransientIndex, cloneDBDataCollections, computeSignature, computeSignature, containsCategory, createCopy, createCopy, createWFNote, createWFNote, createWorkCopy, createWorkCopy, detachFrom, discardCopy, exportXmlField, exportXmlRelated, getAbstract, getAbstractAsText, getAbstractML, getAccessCount, getAdate, getAdateComparator, getAdateSelector, getAllCatIdSet, getAllFilePath, getAllWikiText, getAllWysiwygText, getAttachWorkspaceSet, getAttachWSIdSet, getAudiencedRightsString, getAudienceRightComparator, getAudienceRightSelector, getAuthGrpIdSet, getAuthMbrIdSet, getAuthorizedGroupSet, getAuthorizedMemberSet, getAuthorizedMemberSet, getAuthorizedMemberSetDBID, getAuthorizedSelector, getCanWorkOnSelector, getCategories, getCategories, getCategorySet, getCatIdSet, getClassificationLevel, getComparator, getComparator, getComparator, getCSVHeader, getCurrentWorkerSet, getDataIconTitle, getDataImage, getDataName, getDate, getDate, getDateSelector, getDBDataRevision, getDbFriendlyURLSet, getDdateComparator, getDescendantCategorySet, getDescendantCategorySet, getDescendantCategorySet, getDisplayTemplateFile, getDocumentLinkSet, getEdate, getEdateComparator, getEdateSelector, getEffectiveClassificationLevel, getEstimatedReminderCount, getExtendedReadRights, getExternalLinkSet, getFieldInMainLanguage, getFieldValue, getFirstDescendantCategory, getFirstDescendantCategory, getFirstDescendantCategory, getFollowerList, getFriendlyURLSet, getGenericThumbnail, getHasAttachWS, getHasNoReadRights, getImportConflictCopy, getImportVersion, getIndexingDate, getInternalWorkflow, getLinkDataSet, getMainInstance, getMainInstanceId, getMainLanguage, getMajorVersion, getMemberSetAssignedToRole, getMergeDate, getMergeId, getMinorVersion, getNextWFStateSet, getPdate, getPdateComparator, getPdateSelector, getPopularity, getPopularityComparator, getPstatus, getPstatusAlarmEntry, getPstatusComparator, getPstatusSelector, getPstatusSelector, getQueryTemplateFile, getReadAck, getReadAckCount, getReaderComparator, getReaderCount, getReaderTracker, getReaderTrackerList, getReadRightSelector, getReadRightsString, getReferrerSet, getRestrictUpdateRights, getRightComparator, getRoleMap, getRoleMapStr, getSdate, getSdateComparator, getSdateSelector, getSearchStrings, getTemplate, getTemplateEntry, getTemplateEntry, getTemplateEntrySet, getTemplatePath, getTemplatePath, getTemplates, getTitle, getTitle, getTitle, getTitleComparator, getTitleComparator, getTitleML, getTitleMLE, getTrackedSelector, getTreeRoot, getTypeComparator, getTypeFieldLabel, getTypeLabel, getUdate, getUdateComparator, getUdateSelector, getUpdateGroupSet, getUpdateGrpIdSet, getUpdateMbrIdSet, getUpdateMemberSet, getVersionString, getVisibleStateSelector, getVoteCount, getVoteScore, getVoteScoreComparator, getVoteValue, getWeakReferrerSet, getWFNoteList, getWFState, getWFStateLabel, getWFStateLabelHtml, getWorkCopySet, getWorkflow, getWorkflowId, getWorkspace, getWorkspaceAuthorSelector, getWorkspaceComparator, getWorkspaceId, getWorkspaceSelector, getWSTypeEntry, getWSTypeEntry, hasAlreadyVoted, hasAnyReadRights, hasBeenReadAckBy, hasBeenReadBy, hasCategory, hasImportConflict, hasNoReadRights, hasWeakReferrers, importConvertToLocal, importMarkAsMerged, importOverrideAndUpdate, importXml, init, initCopy, initializeDBDataCollections, internalCanBeReadBy, invalidateWeakDataImage, isAudienced, isClassified, isDefaultTemplate, isFollowedBy, isImportConflictCopy, isInRole, isInVisibleState, isPublic, isRoleAssigned, isTracked, isTrashed, isUserContent, isUserContentType, isVersioned, isWorkCopy, majorUpdate, notifyFollowers, performAfterWrite, performBeforeWrite, performCreate, performDelete, performMerge, performMerge, performTrash, performUntrash, performUpdate, prepareMergeCopy, putPstatusAlarmEntry, recomputeScore, removeAllDescendants, removeAllFollowers, removeAllReaderTracker, removeAuthorizedGroup, removeAuthorizedMember, removeCategory, removeDataSet, removeFollower, removeImportMetadata, removePstatusAlarmEntry, removeWeakReferrer, removeWFExpressAlarm, removeWFReminderAlarm, resolveTypeTemplateEntry, setAbstract, setAbstract, setAdate, setAllCatIdSet, setAttachWorkspaceSet, setAttachWSIdSet, setAuthGrpIdSet, setAuthMbrIdSet, setAuthorizedGroupSet, setAuthorizedMemberSet, setAuthorizedMemberSetDBID, setCategories, setCategorySet, setCatIdSet, setCdate, setClassificationLevel, setDbFriendlyURLSet, setEdate, setExtendedReadRights, setFieldValue, setFriendlyURLSet, setHasAttachWS, setHasNoReadRights, setImportConflictCopy, setImportVersion, setMainInstance, setMainInstanceId, setMainLanguage, setMajorVersion, setMergeDate, setMergeId, setMinorVersion, setPdate, setPstatus, setReadAck, setReaderCount, setRestrictUpdateRights, setRoleMap, setRoleMapStr, setRoleMemberSetMap, setSdate, setTemplate, setTemplates, setTitle, setTitle, setTitleML, setTitleMLE, setTracked, setUdate, setUpdateGroupSet, setUpdateGrpIdSet, setUpdateMbrIdSet, setUpdateMemberSet, setVoteCount, setVoteScore, setWorkflow, setWorkflowId, setWorkspace, setWorkspaceId, splitHybridCollections, supportsClassification, toCSV, toFullString, toString, trackReader, trackReader, unassignMember, unassignRole, updateDisplayLinkCss, updateDisplayLinkDataAttribute, updatePstatus, updateTemplate
-
Methods inherited from class com.jalios.jcms.Data
canBeReadBy, canBeUnlockedBy, checkAndPerformCreate, checkAndPerformCreate, checkAndPerformDelete, checkAndPerformDelete, checkAndPerformUpdate, checkAndPerformUpdate, checkCreate, checkDelete, checkIntegrity, checkLockMember, checkStrongLockMember, checkStrongLockMember, checkUpdate, cleanHybridCollection, cleanHybridCollection, cleanHybridCollection, clone, computeDBIDArray, computeDBIDList, computeDBIDSet, exportXml, exportXml, exportXml, exportXml, exportXmlRelated, fillExportXmlFieldAttributes, getAllReferrerSet, getAllReferrerSet, getAllTypeFieldEntry, getAuthor, getAuthor, getAuthorComparator, getAuthorDBID, getAuthorId, getAuthorSelector, getBooleanFieldValue, getBooleanFieldValue, getCaddyComparator, getCategoryFieldValue, getCategoryFieldValue, getCdateSelector, getDataIconAlt, getDataIconCSS, getDataIconHtml, getDataIconHtml, getDataImage, getDataImage, getDataNameComparator, getDeletableSelector, getDisplayLink, getDisplayLink, getDisplayLink, getDisplayLinkCss, getDisplayLinkDataAttribute, getDisplayLinkHtmlAttributes, 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, getOpAuthorId, getOpDelegate, getReadAuthorizedSelector, getReferrerSet, getRowId, getRowIdComparator, getStrongLock, getStrongLockContext, getStrongLockContextData, getStrongLockDate, getStrongLockInfo, getStrongLockMember, getStrongLockSelector, getTypeEntry, getTypeFieldsEntries, getUpdateInstance, getVirtualIDSet, importXmlFieldsWithReferences, importXmlFiles, importXmlReferences, isDBData, isImported, isImportUpdated, isInDatabase, isLocked, isPersisted, isStrongLocked, lock, markNewImport, mergeHybridLink, mergeHybridLink, performCreate, performDelete, performUpdate, prepareUpdateContext, printDataName, printDisplayLinkEnd, printDisplayLinkStart, printDisplayLinkStart, printDisplayUrl, printDisplayUrl, putStrongLock, 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, setOpAuthorId, setOpDelegate, setRowId, unlock, unlock, unmarkNewImport, updateDisplayLinkHtmlAttributes, 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, hashCode, isStored, resetInternalCaches, resolveAtt, resolveVal, setAttributes, 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
getId, getTreeRoot
-
-
-
-
Field Detail
-
PORTAL_ACTION_UP
public static final java.lang.String PORTAL_ACTION_UP
- See Also:
- Constant Field Values
-
PORTAL_ACTION_DOWN
public static final java.lang.String PORTAL_ACTION_DOWN
- See Also:
- Constant Field Values
-
PORTAL_ACTION_LEFT
public static final java.lang.String PORTAL_ACTION_LEFT
- See Also:
- Constant Field Values
-
PORTAL_ACTION_RIGHT
public static final java.lang.String PORTAL_ACTION_RIGHT
- See Also:
- Constant Field Values
-
PORTAL_ACTION_DELETE
public static final java.lang.String PORTAL_ACTION_DELETE
- See Also:
- Constant Field Values
-
cachedChildrenMap
protected transient java.util.LinkedHashMap<java.lang.String,java.lang.String> cachedChildrenMap
-
cachedBindingMap
protected transient java.util.LinkedHashMap<java.lang.String,java.lang.String> cachedBindingMap
-
cachedChildren
protected transient PortalElement[] cachedChildren
-
cachedBindings
protected transient java.lang.String[] cachedBindings
-
ICON_COLLEC
public static final java.lang.String ICON_COLLEC
- See Also:
- Constant Field Values
-
ICON_ROW
public static final java.lang.String ICON_ROW
- See Also:
- Constant Field Values
-
ICON_COL
public static final java.lang.String ICON_COL
- See Also:
- Constant Field Values
-
ICON_STATSREPORT
public static final java.lang.String ICON_STATSREPORT
- See Also:
- Constant Field Values
-
ICON_JSP_COLLECT
public static final java.lang.String ICON_JSP_COLLECT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PortletCollection
public PortletCollection()
-
PortletCollection
public PortletCollection(Publication other)
-
PortletCollection
public PortletCollection(PortalElement other)
-
PortletCollection
public PortletCollection(Portlet other)
-
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 classPortalElement
- Parameters:
context
- WizardContext describe the dupliate contextparent
- PortalElement parent of portlets to deeply duplicate
-
checkWrite
public ControllerStatus checkWrite(int op, Member mbr, boolean checkIntegrity, java.util.Map context)
Description copied from class:Publication
Checks if the given write operation can be performed- Overrides:
checkWrite
in classPublication
- Parameters:
op
- the operation (OP_CREATE, OP_UPDATE, ...)mbr
- the member which requests the write operationcheckIntegrity
- if true, requires the constraints integrity to be checkedcontext
- a map which contains context parameters (may be null)- Returns:
- a ControllerStatus
-
getChildrenBindings
public abstract java.lang.String[] getChildrenBindings()
-
setChildrenBindings
public abstract void setChildrenBindings(java.lang.String[] v)
-
getCachedBindingMap
public java.util.LinkedHashMap<java.lang.String,java.lang.String> 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 java.util.LinkedHashMap<java.lang.String,java.lang.String> 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 java.lang.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(java.lang.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 java.util.List<PortalElement> getChildrenList(java.lang.String bindName)
Returns a List of PortalElement matching the given binding- Parameters:
bindName
- the binding name- Returns:
- List of PortalElement
-
getChildrenList
public java.util.List getChildrenList(java.lang.String[] bindNames)
Returns a List of PortalElement matching the given binding- Parameters:
bindNames
- the binding name- Returns:
- List of PortalElement
-
getChildren
public PortalElement[] getChildren(java.lang.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, java.lang.String[] bindings)
Update the Children BindingMap.- Parameters:
children
- the childrenbindings
- String[] of bindings or null
-
setChildrenMap
public void setChildrenMap(java.util.Map<java.lang.String,java.lang.String> deltaMap)
Convenient method to Partially update children/bindings arrays with the given Map of Id/Label.- Override label declared
- Preserve labels not declared in the Map
- Preserve binging not declared in the Map
- Parameters:
deltaMap
- Map of Id/Label
-
getChildren
public abstract PortalElement[] getChildren()
-
setChildren
public abstract void setChildren(PortalElement[] p)
-
getTreeChildren
public java.util.Collection getTreeChildren()
Description copied from interface:TreeNode
Returns a Collection of TreeNode children of the current node- Specified by:
getTreeChildren
in interfaceTreeNode
- Overrides:
getTreeChildren
in classPortalElement
- 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
- the indexloggedMember
- the logged member- 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
- the indexloggedMember
- the 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
- the portletindex
- the indexloggedMember
- the logged member- Returns:
- true if operation was performed and portlet was modified, false otherwise
- 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)
-
handleSortable
public ControllerStatus handleSortable(JcmsJspContext jcmsContext)
Handle a sortable request (ie a DnD) received for this portlet- Parameters:
jcmsContext
- the jcmsContext.- Returns:
- the status of the update.
- Since:
- jcms-10.0.4
-
findPortletSet
public <T> java.util.Set<T> findPortletSet(java.lang.Class<? extends T> clazz)
Returns all the children portlet of the given class.- Type Parameters:
T
- a type of- Parameters:
clazz
- the class- Returns:
- all the children portlet of the given class.
- Since:
- jcms-10.0.5
-
findFirstPortlet
public <T> T findFirstPortlet(java.lang.Class<? extends T> clazz)
Returns the first child portlet of the given class.- Type Parameters:
T
- a type of- Parameters:
clazz
- the class- Returns:
- the first child portlet of the given class.
- Since:
- jcms-10.0.5
-
-