public interface IClipboardMechanics extends ISubscribableMechanics
CONTENT_FORMAT_EMAIL, CONTENT_FORMAT_EMAIL_DIGEST, CONTENT_FORMAT_PORTAL_INBOX, CONTENT_FORMAT_PORTAL_INBOX_DIGEST, HEADER_FROM, HEADER_SUBJECT, HEADER_TO
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
Modifier and Type | Method and Description |
---|---|
boolean |
canCopyToClipboard(IURI itemId,
IThingID userId,
IURI containerId,
boolean isReference)
Returns true if the specified user can copy the specified item.
|
boolean |
canCutToClipboard(IURI itemId,
IThingID userId,
IURI containerId,
boolean isReference)
Returns true if the specified user can cut the specified item.
|
void |
checkCopyToClipboard(IURI itemId,
IThingID userId,
IURI containerId,
boolean isReference)
Throws a
PortalAccessException if the specified user cannot copy the specified item. |
void |
checkCutToClipboard(IURI itemId,
IThingID userId,
IURI containerId,
boolean isReference)
Throws a
PortalAccessException if the specified user cannot cut the specified item. |
void |
copyToClipboard(IClipboard clipboard,
IURI itemId,
IURI containerID,
boolean isReference)
Clears the clipboard and adds the item to the clipboard as a copied item.
|
void |
cutToClipboard(IClipboard clipboard,
IURI itemId,
IURI containerID,
boolean isReference)
Clears the clipboard and adds the item to the clipboard as a cut item.
|
IClipboard |
getClipboard(IContext context)
Retrieves a user's clipboard
|
String |
getClipboardInfo(IContext context)
Gets a brief description of the current size
|
IClipboardItem |
newClipboardItem(boolean isReference)
Creates a new clipboard item
|
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
canView, checkView, createPagingCookie, fireViewEvent, getCss, getCss, getDefaultLinkType, getFormattedProperty, getHierachicalUri, getIcon, getIcon, getLink, getLink, getListProperty, getListPropertyHTML, getListPropertyJS, isEnabled, view, view
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
boolean canCutToClipboard(IURI itemId, IThingID userId, IURI containerId, boolean isReference) throws PortalException
itemId
- IURI
of item to cut.userId
- IThingID
of user who wants to cut the item.containerId
- IURI
of container in which the item resides. May be null.isReference
- True if item is a shortcut rather than an object.PortalException
- if the userId is invalid.void checkCutToClipboard(IURI itemId, IThingID userId, IURI containerId, boolean isReference) throws PortalException, PortalAccessException
PortalAccessException
if the specified user cannot cut the specified item.itemId
- Item to cut.userId
- User whose access to test.containerId
- Container from which to cut. May be null.isReference
- False if the container is the primary container of the item.PortalAccessException
- if the specified user cannot cut the specified item.PortalException
- if an error occurred checking access.boolean canCopyToClipboard(IURI itemId, IThingID userId, IURI containerId, boolean isReference) throws PortalException
itemId
- IURI
of item to copy.userId
- IThingID
of user who wants to copy the item.containerId
- IURI
of container in which the item resides. May be null.isReference
- True if item is a shortcut rather than an object.PortalException
- if the userId is invalid.void checkCopyToClipboard(IURI itemId, IThingID userId, IURI containerId, boolean isReference) throws PortalException, PortalAccessException
PortalAccessException
if the specified user cannot copy the specified item.itemId
- Item to copy.userId
- User whose access to test.containerId
- Container from which to copy. May be null.isReference
- False if the container is the primary container of the item.PortalAccessException
- if the specified user cannot copy the specified item.PortalException
- if an error occurred checking access.void cutToClipboard(IClipboard clipboard, IURI itemId, IURI containerID, boolean isReference) throws PortalException
clipboard
- User's clipboard object.itemId
- Item to cut.containerID
- Container from which to cut. May be null.isReference
- False if the container is the primary container of the item.PortalException
- if an error occurred.void copyToClipboard(IClipboard clipboard, IURI itemId, IURI containerID, boolean isReference) throws PortalException
clipboard
- User's clipboard object.itemId
- Item to copy.containerID
- Container from which to copy. May be null.isReference
- False if the container is the primary container of the item.PortalException
- if an error occurred.IClipboard getClipboard(IContext context) throws PortalException
context
- PortalException
String getClipboardInfo(IContext context)
context
- IClipboardItem newClipboardItem(boolean isReference) throws PortalException
isReference
- PortalException