Interface IFolderMechanics
- All Superinterfaces:
IAccessMechanics
,IBasicMechanics
,IClipboardMechanics
,IComponent
,IContainerMechanics
,IInitializable
,IMechanics
,ISubscribableMechanics
,ISystemHandler
,IVersionableMechanics
,IViewableContainerMechanics
,IViewableMechanics
Mechanics specific to resources of type IFolder
.
No new methods are defined, but custom behaviour is overriden from the IContainerMechanics
and the IBasicMechanics
.
-
Field Summary
Fields inherited from interface com.webmethods.portal.mech.access.IAccessMechanics
ACCESS_DENIED, ACCESS_GRANTED, ACCESS_RIGHT_ID, ACCESS_RIGHT_LONG_NAME, ACCESS_RIGHT_SHORT_NAME, ACCESS_RIGHTS_CONTAINER, ACCESS_UNSPECIFIED, AUTH_LEVEL_ANONYMOUS, AUTH_LEVEL_BASIC, AUTH_LEVEL_DEFAULT, AUTH_LEVEL_FULL_ACCESS, AUTH_LEVEL_KERBEROS, AUTH_LEVEL_NTLM, AUTH_LEVEL_PROPERTY
Fields inherited from interface com.webmethods.portal.mech.storage.IBasicMechanics
PROP_CUSTOM_FILE_ENCODING, PROP_FILE_ENCODING, TITLEBAR_ACTION_SHOW_ADD_TO_HOME, TITLEBAR_ACTION_SHOW_DISPLAY_OPTIONS, TITLEBAR_ACTION_SHOW_MAXIMIZED, TITLEBAR_ACTION_SHOW_MINIMIZED, TITLEBAR_ACTION_SHOW_NORMAL
Fields inherited from interface com.webmethods.portal.mech.storage.IContainerMechanics
CREATE_DEFAULT_CONTAINER, SORT_ITEMNAME, SORT_MODIFIED, SORT_NONE_SPECIFIED, SORT_SORTID, SORT_TYPE
Fields inherited from interface com.webmethods.portal.mech.subscription.ISubscribableMechanics
CONTENT_FORMAT_EMAIL, CONTENT_FORMAT_EMAIL_DIGEST, CONTENT_FORMAT_PORTAL_INBOX, CONTENT_FORMAT_PORTAL_INBOX_DIGEST, HEADER_FROM, HEADER_SUBJECT, HEADER_TO
Fields inherited from interface com.webmethods.portal.mech.view.IViewableMechanics
COMMENTS_LINK_TYPE, CONTENT_LINK_TYPE, DEFAULT_ORDER, DEFAULT_PAGE_SIZE, DEFAULT_SORT, DETAILS_LINK_TYPE, LARGE_ICON_TYPE, LINK_TYPE, LINK_TYPE_COMMENTS, LINK_TYPE_CONTENT, LINK_TYPE_DETAILS, LINK_TYPE_EDIT, LINK_TYPE_HELP, LINK_TYPE_HELP_MAXIMIZED, LINK_TYPE_MAXIMIZED, LINK_TYPE_MINIMIZED, LINK_TYPE_PERMISSIONS, LINK_TYPE_PORTAL_CONTENT, LINK_TYPE_PORTLET_STANDALONE, LINK_TYPE_PROPERTIES, LINK_TYPE_RESTORED, LINK_TYPE_SUBSCRIPTIONS, LINK_TYPE_THUMBNAILS, LINK_TYPE_VERSIONS, PERMISSIONS_LINK_TYPE, PORTAL_CONTENT_LINK_TYPE, PROPERTIES_LINK_TYPE, PROPERTY_LINK_TARGET, PROPERTY_OWNER_NAME, PROPERTY_PARENT_NAME, PROPERTY_TOOLTIP, REFERENCE_ICON_TYPE, SUBSCRIPTIONS_LINK_TYPE, THUMBNAIL_ICON_TYPE, THUMBNAILS_LINK_TYPE, VERSIONS_LINK_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canChangeColumns
(IThingID folderId, IThingID userId, Map<?, ?> capabilities) Returns true if the specified user can change the column layout of the specified page.boolean
canMinimizePortlet
(IThingID folderId, IThingID userId, IThingID portletId, Map<?, ?> capabilities) Returns true if the specified user can minimize the specified portlet.boolean
canMovePortlet
(IThingID folderId, IThingID userId, IThingID portletId, Map<?, ?> capabilities) Returns true if the specified user can move the specified portlet in the specified page.void
changeColumns
(IThingID folderId, IThingID userId, ColumnLocation[][] columns) Deprecated.void
checkChangeColumns
(IThingID folderId, IThingID userId, Map<?, ?> capabilities) Throws aPortalAccessException
if the specified user cannot change the column layout of the specified page.void
checkMinimizePortlet
(IThingID folderId, IThingID userId, IThingID portletId, Map<?, ?> capabilities) Throws aPortalAccessException
if the specified user cannot minimize the specified portlet.void
checkMovePortlet
(IThingID folderId, IThingID userId, IThingID portletId, Map<?, ?> capabilities) Throws aPortalAccessException
if the specified user cannot move the specified portlet in the specified page.void
fireChangeColumnsEvent
(IThingID itemId, IThingID userId, int status, ColumnLocation[][] columns) Fires a page column layout changed event.void
fireMinimizePortletEvent
(IThingID itemId, IThingID userId, int status, IThingID portletId) Fires a portlet minimized event.void
fireModifyLayoutEvent
(IThingID itemId, IThingID userId, int status) Fires a page layout modified event.void
fireMovePortletsEvent
(IThingID itemId, IThingID userId, int status, PortletLocation[] deltaLocations) Fires a page portlets moved changed event.getPageData
(IThingID folderId, IThingID userId) BuildsPageData
structure for specified folder.void
handlePortletBeansExpiration
(IThingID folderID) Handles portlet bean expiration for a given folderIDlistHoboPortlets
(IThingID folderId, IThingID userId) Lists the all the portlets on the specified page viewable by the specified user -- but not yet specified in the page layout.listPortlets
(IThingID folderId, IThingID userId) Lists the all the portlets on the specified page viewable by the specified user.void
minimizePortlet
(IThingID folderId, IThingID userId, IThingID portletId, boolean minimize) Deprecated.Minimizes or un-minimizes the specified portlet.void
movePortlets
(IThingID folderId, IThingID userId, PortletLocation[] deltaLocations) Deprecated.usesetPageData(IThingID, IThingID, PageData)
insteadvoid
personalizePageData
(IThingID folderId, IThingID userId, PageData page) Filter page data through acls, etc.void
setPageData
(IThingID folderId, IThingID userId, PageData page) PersistsPageData
structure for specified folder.Methods inherited from interface com.webmethods.portal.mech.access.IAccessMechanics
canRemoveSecurityRealm, canSetSecurityRealm, checkAccess, checkAccessEx, checkRemoveSecurityRealm, checkSetSecurityRealm, cloneAces, fireRemoveAcccesEvent, fireRemoveSecurityRealmEvent, fireSetAccessEvent, fireSetAuthenticationEvent, fireSetOwnerEvent, fireSetSecurityRealmEvent, getAccessEx, getAccessList, getAccessListEx, getAclView, getAuthLevelForAuthScheme, getAuthScheme, getAuthSchemeForAuthLevel, getAuthSchemeForResource, getAvailableAuthSchemes, getDefaultAuthScheme, getRightNameForValue, getRightsForType, getRightValueForName, getSecurityRealm, invalidateAcesForThing, invalidateAcesForUser, listSecurityRealmObjects, removeAces, removeSecurityRealm, setAces, setAcesEx, setSecurityRealm, setSecurityRealm
Methods inherited from interface com.webmethods.portal.mech.storage.IBasicMechanics
addNote, addReference, addRelation, canAddNote, canCloneRemote, canCreate, canDelete, canDestroy, canDoTitlebarAction, canListAccess, canListContainers, canListNotes, canRemoveAccess, canRemoveNote, canSetAccess, canSetAuthentication, canSetOwner, canUninstall, canUpdateContent, canUpdateProperties, canVerb, canViewAuthentication, canViewContent, checkAddNote, checkCloneRemote, checkCreate, checkDelete, checkDestroy, checkListAccess, checkListContainers, checkListNotes, checkRemoveAccess, checkRemoveNote, checkSetAccess, checkSetAuthentication, checkSetOwner, checkUninstall, checkUpdateContent, checkUpdateProperties, checkViewAuthentication, checkViewContent, cloneRemote, copy, create, create, delete, destroy, doAfterInstall, doAfterUpgrade, doBeforeUninstall, doBeforeUpgrade, fireAddNoteEvent, fireCacheInvalidateEvent, fireDeleteEvent, fireInsoEvent, fireListAccessEvent, fireListContainersEvent, fireListNotesEvent, firePurgeEvent, fireRemoveAcccesEvent, fireRemoveNoteEvent, fireSetAccessEvent, fireSetAuthenticationEvent, fireSetOwnerEvent, fireUpdateContentEvent, fireUpdatePropertiesEvent, fireViewAuthenticationEvent, fireViewContentEvent, getAccess, getAncestors, getAuthentication, getContent, getContent, getContentStore, getContentStore, getDependencyList, getPrimaryRelatedChild, getPrimaryRelatedContainer, getTimeToLive, isAnonymous, isBaseType, isContainer, isNormal, isReference, isVersionable, isWorkflowEnabled, listAccess, listAccess, listContainers, listContainers, listDependants, listNotes, listRelatedChildren, listRelatedContainers, move, move, prepareForDeletion, removeNote, removeReference, removeRelation, restoreXTypeConfProps, saveXTypeConfProps, setAuthentication, setOwner, setTimeToLive, undeleteAllUndestroyed, updateContent, updateContent, updateProperties, updateProperties
Methods inherited from interface com.webmethods.portal.mech.clipboard.IClipboardMechanics
canCopyToClipboard, canCutToClipboard, checkCopyToClipboard, checkCutToClipboard, copyToClipboard, cutToClipboard, getClipboard, getClipboardInfo, newClipboardItem
Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.mech.storage.IContainerMechanics
addReferenceToChild, canAddChild, canAddReference, canListChildren, canRemoveChild, canRemoveReference, checkAddChild, checkAddReference, checkHasPrimaryChild, checkIsDescendantOrSelf, checkListChildren, checkRemoveChild, checkRemoveReference, copyChild, copyChild, createChild, createChild, fireAddChildEvent, fireAddReferenceEvent, fireCopyChildEvent, fireCopyReferenceEvent, fireListChildrenEvent, fireMoveChildEvent, fireMoveChildEvent, fireMoveReferenceEvent, fireRemoveReferenceEvent, getPrimaryChild, getPrimaryChildNoCache, getReference, getSelectedListView, getSelectedListView, hasPrimaryChild, hasReference, isDescendantOrSelf, listChildren, listChildren, listChildren, listChildren, listChildren, listChildren, listChildren, listChildren, listChildren, listDescendants, listDescendants, listDescendants, listDescendants, makeUniqueName, matchChildren, matchChildren, matchChildren, matchChildren, matchChildren, matchChildren, moveChild, moveChild, removeReferenceToChild, viewPrimaryChild
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.mech.subscription.ISubscribableMechanics
canDeliverToPrincipal, canEditSubscription, canListSubscriptions, canViewSubscription, checkEditSubscription, checkListSubscriptions, checkViewSubscription, checkViewSubscription, createAppCriteria, createAppCriteriaFolder, createPortletSubscription, createPortletSubscription, disable, disable, disableBySystem, disableBySystem, enable, enable, fireGetAppCriteriaEvent, fireGetSubscriptionEvent, fireSetSubscriptionEvent, fireUnsubscribeEvent, fireViewSubscriptionEvent, generateNotificationContent, generateNotificationHeaders, getAppCriteria, getGroupSubscription, getSubscription, listSubscriptions, listSubscriptions, setGroupSubscription, setGroupSubscription, setSubscription, setSubscription, unsubscribe, unsubscribe, viewSubscription
Methods inherited from interface com.webmethods.portal.mech.storage.IVersionableMechanics
addToVersioning, canAddToVersioning, canCheckIn, canCheckOut, canListVersions, canPublishVersion, canRemoveFromVersioning, canSetCurrentVersion, canUndoCheckOut, canViewVersion, checkAddToVersioning, checkCheckIn, checkCheckOut, checkIn, checkListVersions, checkOut, checkPublishVersion, checkRemoveFromVersioning, checkSetCurrentVersion, checkUndoCheckOut, checkViewVersion, fireAddToVersioningEvent, fireCheckInEvent, fireCheckOutEvent, fireListVersionsEvent, firePublishVersionEvent, fireRemoveFromVersioningEvent, fireSetCurrentVersionEvent, fireUndoCheckOutEvent, fireViewVersionEvent, getCheckedOutBy, getVersion, isCheckedOut, isVersioned, listVersions, publishVersion, removeFromVersioning, setCurrentVersion, undoCheckOut, viewVersion
Methods inherited from interface com.webmethods.portal.mech.view.IViewableContainerMechanics
createPagingCookie
Methods inherited from interface com.webmethods.portal.mech.view.IViewableMechanics
canView, checkView, fireViewEvent, getCss, getCss, getDefaultLinkType, getFormattedProperty, getHierachicalUri, getIcon, getIcon, getLink, getLink, getListProperty, getListPropertyHTML, getListPropertyJS, isEnabled, view, view
-
Method Details
-
canChangeColumns
boolean canChangeColumns(IThingID folderId, IThingID userId, Map<?, ?> capabilities) throws PortalExceptionReturns true if the specified user can change the column layout of the specified page.- Throws:
PortalException
-
checkChangeColumns
void checkChangeColumns(IThingID folderId, IThingID userId, Map<?, ?> capabilities) throws PortalException, PortalAccessExceptionThrows aPortalAccessException
if the specified user cannot change the column layout of the specified page.- Throws:
PortalException
PortalAccessException
-
canMovePortlet
boolean canMovePortlet(IThingID folderId, IThingID userId, IThingID portletId, Map<?, ?> capabilities) throws PortalExceptionReturns true if the specified user can move the specified portlet in the specified page.- Throws:
PortalException
-
checkMovePortlet
void checkMovePortlet(IThingID folderId, IThingID userId, IThingID portletId, Map<?, ?> capabilities) throws PortalException, PortalAccessExceptionThrows aPortalAccessException
if the specified user cannot move the specified portlet in the specified page.- Throws:
PortalException
PortalAccessException
-
canMinimizePortlet
boolean canMinimizePortlet(IThingID folderId, IThingID userId, IThingID portletId, Map<?, ?> capabilities) throws PortalExceptionReturns true if the specified user can minimize the specified portlet.- Throws:
PortalException
-
checkMinimizePortlet
void checkMinimizePortlet(IThingID folderId, IThingID userId, IThingID portletId, Map<?, ?> capabilities) throws PortalException, PortalAccessExceptionThrows aPortalAccessException
if the specified user cannot minimize the specified portlet.- Throws:
PortalException
PortalAccessException
-
handlePortletBeansExpiration
Handles portlet bean expiration for a given folderID- Parameters:
folderID
-- Throws:
PortalException
-
fireModifyLayoutEvent
Fires a page layout modified event.- Parameters:
itemId
- Page which changed.userId
- User who made the change.status
- Status of the event (successful, denied, error).- Throws:
PortalException
- if the userId is invalid.
-
fireChangeColumnsEvent
void fireChangeColumnsEvent(IThingID itemId, IThingID userId, int status, ColumnLocation[][] columns) throws PortalException Fires a page column layout changed event.- Parameters:
itemId
- Page which changed.userId
- User who made the change.status
- Status of the event (successful, denied, error).columns
- New column layout.- Throws:
PortalException
- if the userId is invalid.
-
fireMovePortletsEvent
void fireMovePortletsEvent(IThingID itemId, IThingID userId, int status, PortletLocation[] deltaLocations) throws PortalException Fires a page portlets moved changed event.- Parameters:
itemId
- Page which changed.userId
- User who made the change.status
- Status of the event (successful, denied, error).deltaLocations
- Changed portlet locations.- Throws:
PortalException
- if the userId is invalid.
-
fireMinimizePortletEvent
void fireMinimizePortletEvent(IThingID itemId, IThingID userId, int status, IThingID portletId) throws PortalException Fires a portlet minimized event.- Parameters:
itemId
- Page which changed.userId
- User who made the change.status
- Status of the event (successful, denied, error).portletId
- Portlet changed.- Throws:
PortalException
- if the userId is invalid.
-
changeColumns
@Deprecated void changeColumns(IThingID folderId, IThingID userId, ColumnLocation[][] columns) throws PortalException Deprecated.usesetPageData(IThingID, IThingID, PageData)
insteadChanges the column structure. Moves portlets from old columns (one-by-one, first-to-last) to new columns, based on the first attribute of the old column to match any attribute in a new column (first-to-last). For example, if the current column attributes are the following:
col 1: thin, left, one
col 2: thick, center, two
col 3: thin, right, three
and the new column attributes are the following:
col 1: thick, left, one
col 2: thin, right, two
portlets from the old col 1 would be placed into the new col 2 (since old col 1 attr 'thin' matches new col 2), portlets from the old col 2 would be placed in the new col 1 (since old col 2 attr 'thick' matches new col 1), and then portlets from the old col 3 would be placed into new col 2 below the portlets from the old col 1 (since old col 3 attr 'thin' matches the new col 2).- Parameters:
folderId
- Page to modify.userId
- User for which to modify.columns
- New column layout. Do not includePortletData
!- Throws:
PortalException
-
movePortlets
@Deprecated void movePortlets(IThingID folderId, IThingID userId, PortletLocation[] deltaLocations) throws PortalException Deprecated.usesetPageData(IThingID, IThingID, PageData)
insteadMoves the specified portlets to the specified new locations, in sequence. When one portlet is moved, all portlets in the column below its old location move up one cell; all portlets at or below its new location move down one cell. If the portlet's specified column does not exist, the portlet is removed from the layout (it will still appear on the page when rendered, but its location is dependant on the particular rendering implementation). If the portlet's specified row does not exist, it is appended to the bottom of its specified column.
For example, if the current layout is the following:
col 1 col 2
----- -----
plt 1 plt 4
plt 2 plt 5
plt 3 plt 6
and the deltaLocations are the following:
[plt 4, 1, 1, 1], [plt 1, 6, 2, 1], [plt 1, 3, 2, 2]
the resulting layout would be the following:
col 1 col 2
----- -----
plt 4 plt 5
plt 6 plt 3
plt 1
plt 2
The same layout would result if the deltaLocations had been (carlessly) specified as the following:
[plt 6, 1, 1, 1], [plt 4, 1, 1, 1], [plt 1, 3, 2, 3]- Parameters:
folderId
- Page to modify.userId
- User for which to modify.deltaLocations
- Sequence of portlet movement.- Throws:
PortalException
-
minimizePortlet
@Deprecated void minimizePortlet(IThingID folderId, IThingID userId, IThingID portletId, boolean minimize) throws PortalException Deprecated.Minimizes or un-minimizes the specified portlet.- Parameters:
minimize
- True to minimize, false to un-minimize.- Throws:
PortalException
-
listPortlets
Lists the all the portlets on the specified page viewable by the specified user.- Throws:
PortalException
-
listHoboPortlets
Lists the all the portlets on the specified page viewable by the specified user -- but not yet specified in the page layout.- Throws:
PortalException
-
getPageData
BuildsPageData
structure for specified folder. If folder has no page info, returns null.- Throws:
PortalException
-
setPageData
PersistsPageData
structure for specified folder.- Throws:
PortalException
-
personalizePageData
Filter page data through acls, etc.- Throws:
PortalException
-
setPageData(IThingID, IThingID, PageData)
instead