public interface IBasicMechanics extends IClipboardMechanics, IAccessMechanics
Modifier and Type | Field and Description |
---|---|
static String |
PROP_CUSTOM_FILE_ENCODING
Property that controls custom user defined file encoding.
|
static String |
PROP_FILE_ENCODING
Property that controls file encoding.
|
static String |
TITLEBAR_ACTION_SHOW_ADD_TO_HOME
Portlet and DBO titlebar action to add object to the home page
|
static String |
TITLEBAR_ACTION_SHOW_DISPLAY_OPTIONS
Portlet and DBO titlebar action to add object to the home page
|
static String |
TITLEBAR_ACTION_SHOW_MAXIMIZED
Portlet and DBO titlebar action to show object maximized
|
static String |
TITLEBAR_ACTION_SHOW_MINIMIZED
Portlet and DBO titlebar action to show object minimized view
|
static String |
TITLEBAR_ACTION_SHOW_NORMAL
Portlet and DBO titlebar action to show object normal view
|
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
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
Modifier and Type | Method and Description |
---|---|
void |
addNote(IThingID itemId,
IThingID userId,
String note)
Adds a comment to an item.
|
void |
addReference(IThingID containerId,
IThingID childId)
Adds a reference to the specified item into the specified container.
|
void |
addRelation(IThingID containerId,
IThingID childId,
String relType)
Add relation between containerID and childID using specified relType
|
boolean |
canAddNote(IThingID itemId,
IThingID userId)
Returns true if the specified user can add a note to the specified item.
|
boolean |
canCloneRemote(IThingID destContainerId,
IThingID srcItemId,
IThingID userId)
Returns true if the specified user can clone the specified item.
|
boolean |
canCreate(IThingID xtypeId,
IThingID userId)
Returns true if the specified user can create the specified type of item.
|
boolean |
canDelete(IThingID itemId,
IThingID userId)
Returns true if the specified user can delete the specified item.
|
boolean |
canDestroy(IThingID thingID,
IThingID userID)
Returns true if user can destroy an item.
|
boolean |
canDoTitlebarAction(IThingID thingID,
String titlebarAction)
Titlebar implementation may an object if it supports certain titlebar defined action
|
boolean |
canListAccess(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Returns true if the specified user can view the access list (of principals) of the specified item.
|
boolean |
canListContainers(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Returns true if the specified user can view the containers of the specified item.
|
boolean |
canListNotes(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Returns true if the specified user can view the notes associated with the specified item.
|
boolean |
canRemoveAccess(IThingID itemId,
IThingID userId,
boolean recursive)
Returns true if the specified user can remove entries from the access list of the specified item.
|
boolean |
canRemoveNote(IThingID itemId,
IThingID userId)
Returns true if the specified user can remove a note from the specified item.
|
boolean |
canSetAccess(IThingID itemId,
IThingID userId,
boolean recursive)
Returns true if the specified user can add or modify entries in the access list of the specified item.
|
boolean |
canSetAuthentication(IThingID itemId,
IThingID userId,
boolean recursive)
Returns true if the specified user can set the authentication type of the specified item.
|
boolean |
canSetOwner(IThingID itemId,
IThingID userId)
Returns true if the specified user can set the owner of the specified item.
|
boolean |
canUninstall(IThingID itemID)
Check to see if item can be uninstalled.
|
boolean |
canUpdateContent(IThingID itemId,
IThingID userId)
Returns true if the specified user can update the content of the specified item.
|
boolean |
canUpdateProperties(IThingID itemId,
IThingID userId)
Returns true if the specified user can update the properties of the specified item.
|
boolean |
canVerb(IURI itemURI,
IURI userURI,
String verb,
Object param)
Checks if given user could perform given operation (verb) on given object
|
boolean |
canViewAuthentication(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Returns true if the specified user can view the authentication method of the specified item.
|
boolean |
canViewContent(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Returns true if the specified user can view the content of the specified item.
|
void |
checkAddNote(IThingID itemId,
IThingID userId)
Throws a
PortalAccessException if the specified user cannot add a note to the specified item. |
void |
checkCloneRemote(IThingID destContainerId,
IThingID srcItemId,
IThingID userId)
Throws a
PortalAccessException if the specified user cannot clone the specified item. |
void |
checkCreate(IThingID xtypeId,
IThingID userId)
Throws a
PortalAccessException if the specified user cannot create the specified type of item. |
void |
checkDelete(IThingID itemId,
IThingID userId)
Throws a
PortalAccessException if the specified user
cannot delete the specified item. |
void |
checkDestroy(IThingID thingID,
IThingID userID)
Throws
PortalAccessException if the user can not destroy an item. |
void |
checkListAccess(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Throws a
PortalAccessException if the specified user
cannot view the access list (of principals) of the specified item. |
void |
checkListContainers(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Throws a
PortalAccessException if the specified user
cannot view the containers of the specified item. |
void |
checkListNotes(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Throws a
PortalAccessException if the specified user
cannot view the notes associated with the specified item. |
void |
checkRemoveAccess(IThingID itemId,
IThingID userId,
boolean recursive)
Throws a
PortalAccessException if the specified user
cannot remove entries from the access list of the specified item. |
void |
checkRemoveNote(IThingID itemId,
IThingID userId)
Throws a
PortalAccessException if the specified user cannot remove a note from the specified item. |
void |
checkSetAccess(IThingID itemId,
IThingID userId,
boolean recursive)
Throws a
PortalAccessException if the specified user
cannot add or modify entries in the access list of the specified item. |
void |
checkSetAuthentication(IThingID itemId,
IThingID userId,
boolean recursive)
Throws a
PortalAccessException if the specified user
cannot set the authentication type of the specified item. |
void |
checkSetOwner(IThingID itemId,
IThingID userId)
Throws a
PortalAccessException if the specified user
cannot set the owner of the specified item. |
void |
checkUninstall(IThingID itemID)
Check to see if an item can be uninstalled.
|
void |
checkUpdateContent(IThingID itemId,
IThingID userId)
Throws a
PortalAccessException if the specified user cannot update the content of the specified item. |
void |
checkUpdateProperties(IThingID itemId,
IThingID userId)
Throws a
PortalAccessException if the specified user cannot update the properties of the specified item. |
void |
checkViewAuthentication(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Throws a
PortalAccessException if the specified user
cannot view the authentication method of the specified item. |
void |
checkViewContent(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Throws a
PortalAccessException if the specified user cannot
view the content of the specified item. |
IThingID |
cloneRemote(IThingID destContainerId,
IThingID srcItemId,
IThingID userId,
Map<String,?> maps)
Clones remote item in the specified destination container.
|
IThingID |
copy(IThingID containerId,
IThingID userId,
IThingID childId)
Creates a new copy of the specified child in the specified container.
|
IThingID |
create(IThingID containerId,
IThingID userId,
int xtype,
Map<String,? extends Object> properties)
Deprecated.
|
IThingID |
create(IThingID containerId,
IThingID userId,
int xtype,
Map<String,? extends Object> properties,
Locale locale)
Creates a new item of the specified xtype in the specified container.
|
void |
delete(IThingID itemId)
Deletes the specified item, and if the item is a container, the container's descendants.
|
void |
destroy(IThingID itemID)
Destroys the specified item and all of its descendants.
|
void |
doAfterInstall(IThingID itemID)
Actions to perform after installation.
|
void |
doAfterUpgrade(IThingID itemID)
Actions to perform after upgrade.
|
void |
doBeforeUninstall(IThingID itemID)
Actions to be performed before an uninstall.
|
void |
doBeforeUpgrade(IThingID itemID)
Actions to perform before upgrade.
|
void |
fireAddNoteEvent(IThingID itemId,
IThingID userId,
int status)
Fires an add notes event.
|
void |
fireCacheInvalidateEvent(IThingID itemId,
IThingID userId)
Fires an invalidate cache event.
|
void |
fireDeleteEvent(IThingID itemId,
IThingID containerId,
IThingID userId,
int status)
Fires a delete event.
|
void |
fireInsoEvent(IThingID itemId,
IThingID userId)
Fires an Inso event.
|
void |
fireListAccessEvent(IThingID itemId,
IThingID userId,
int status)
Fires a list access event.
|
void |
fireListContainersEvent(IThingID itemId,
IThingID userId,
int status)
Fires a list containers event.
|
void |
fireListNotesEvent(IThingID itemId,
IThingID userId,
int status)
Fires a list notes event.
|
void |
firePurgeEvent(IThingID itemID,
IThingID containerID,
IThingID userID)
Fires thing purge event.
|
void |
fireRemoveAcccesEvent(IThingID itemId,
IThingID userId,
int status,
List<? extends IURI> principalIds)
Fires a remove access event.
|
void |
fireRemoveNoteEvent(IThingID itemId,
IThingID userId,
int status)
Fires a remove notes event.
|
void |
fireSetAccessEvent(IThingID itemId,
IThingID userId,
int status,
List<? extends IURI> principalIds)
Fires a set access event.
|
void |
fireSetAuthenticationEvent(IThingID itemId,
IThingID userId,
int status,
String scheme)
Fires a set authentication event.
|
void |
fireSetOwnerEvent(IThingID itemId,
IThingID userId,
int status,
IThingID newOwnerId,
IThingID oldOwnerId)
Fires a set owner event.
|
void |
fireUpdateContentEvent(IThingID itemId,
IThingID userId,
int status,
DifferenceMap differences)
Fires an update content event.
|
void |
fireUpdatePropertiesEvent(IThingID itemId,
IThingID userId,
int status,
DifferenceMap differences)
Fires an update properties event.
|
void |
fireViewAuthenticationEvent(IThingID itemId,
IThingID userId,
int status)
Fires a view authentication event.
|
void |
fireViewContentEvent(IThingID itemId,
IThingID userId,
int status)
Fires a view content event.
|
int |
getAccess(IThingID itemId,
IThingID userId,
Map<?,?> capabilities)
Returns the bit set representing the access rights the specified user has
for the specified item.
|
IThingIDList |
getAncestors(IThingID itemId)
Returns the list of ancestors (ie the parent hierarchy) for the specified item.
|
String |
getAuthentication(IThingID itemId)
Returns the authentication scheme name for the specified item.
|
InputStream |
getContent(IThingID itemId)
Returns the content stream for the specified item.
|
InputStream |
getContent(IThingID itemId,
String type)
Returns the content stream of a particular type for the specified item.
|
IContentStore |
getContentStore(IThingID itemId)
Returns the content store for the specified item.
|
IContentStore |
getContentStore(IThingID itemId,
String type)
Returns the content store of a particular type for the specified item.
|
IThingIDList |
getDependencyList(IThingID thingID,
IThingIDList mergeList)
Get the dependency list for this item.
|
IThingID |
getPrimaryRelatedChild(IThingID containerID,
String relType)
Returns first normal related child of specified relationship type.
|
IThingID |
getPrimaryRelatedContainer(IThingID childID,
String relType)
Returns first normal related container of specified relationship type.
|
long |
getTimeToLive()
Deprecated.
not used in 8.x+
|
boolean |
isAnonymous(IThingID itemId)
Returns true if the specified item allows anonymous access.
|
boolean |
isBaseType(IThingID itemId)
Returns true if the specified item's xtype is the base for its type.
|
boolean |
isContainer(IThingID itemId)
Returns true if the specified item is a container.
|
boolean |
isNormal(IThingID itemId)
Returns true if the specified item is normal (not deleted/archived/etc).
|
boolean |
isReference(IView view)
Returns true if the specified view represents a reference to an item,
rather than the item itself.
|
boolean |
isVersionable(IThingID itemId)
Returns true if the specified item is versionable.
|
boolean |
isWorkflowEnabled(IThingID userID,
IThingID containerId)
Deprecated.
not used anymore
|
IListView<IView> |
listAccess(IThingID itemId)
Returns a list of access control entries for the specified item.
|
IListView<IView> |
listAccess(IThingID itemId,
IThingID userId)
Returns a list of access control entries for the specified item,
filtered for the specified user.
|
IListView<IView> |
listContainers(IThingID itemId)
Returns a list of containers that reference the specified item.
|
IListView<IView> |
listContainers(IThingID itemId,
IThingID userId)
Returns a list of containers that reference the specified item,
filtered for the specified user.
|
IListView<IView> |
listDependants(IThingID itemId)
Lists all items that depend on this item, including this item.
|
IListView<INote> |
listNotes(IThingID itemId,
IThingID userId)
Returns a list of notes for the comments page,
filtered for the specified user.
|
IThingIDList |
listRelatedChildren(IThingID containerID,
String relType,
int start,
int end)
Returns list of thing IDs of all related things to the specified container
|
IThingIDList |
listRelatedContainers(IThingID childID,
String relType,
int start,
int end)
Returns list of thing IDs of containers that contain specified child with relationship type
|
void |
move(IThingID containerId,
IThingID childId)
Moves the specified item into the specified container.
|
void |
move(IThingID containerId,
IThingID childId,
String newName)
Moves and renames the specified item into the specified container.
|
void |
prepareForDeletion(IThingID itemId)
Prepares the specified item to be deleted as part of a recursive deletion operation
initiated on one of the item's ancestors (or the item itself).
|
void |
removeNote(IThingID itemId,
IThingID userId,
int noteID)
Removes a comment from an item.
|
void |
removeReference(IThingID containerId,
IThingID childId)
Removes the reference to the specified item from the specified container.
|
void |
removeRelation(IThingID containerId,
IThingID childId,
String relType)
Counterpart to addRelation method.
|
void |
setAuthentication(IThingID itemId,
String authLevel,
boolean recursive)
Sets the authentication scheme name for the specified item.
|
void |
setOwner(IThingID itemId,
IThingID ownerId)
Sets the owner of the specified item.
|
void |
setTimeToLive(long timeToLive)
Deprecated.
not used in 8.x+
|
IThingIDList |
undeleteAllUndestroyed()
Attempts to undelete all things that are in the "undestroyed" state.
|
void |
updateContent(IThingID itemId,
IThingID userId,
boolean insoConvert,
IPortalFileBean portalFileBean,
String encoding)
Updates the content of the specified item for the specified user.
|
void |
updateContent(IThingID itemId,
IThingID userId,
InputStream content,
String type,
boolean insoConvert,
String originalPath)
Updates the content of the specified item for the specified user.
|
DifferenceMap |
updateProperties(IThingID itemId,
IThingID userId,
Map<String,? extends Object> properties)
Deprecated.
|
DifferenceMap |
updateProperties(IThingID itemId,
IThingID userId,
Map<String,? extends Object> properties,
Locale locale)
Updates properties
|
canCopyToClipboard, canCutToClipboard, checkCopyToClipboard, checkCutToClipboard, copyToClipboard, cutToClipboard, getClipboard, getClipboardInfo, newClipboardItem
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, isEnabled, view, view
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
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
static final String TITLEBAR_ACTION_SHOW_NORMAL
static final String TITLEBAR_ACTION_SHOW_MINIMIZED
static final String TITLEBAR_ACTION_SHOW_MAXIMIZED
static final String TITLEBAR_ACTION_SHOW_ADD_TO_HOME
static final String TITLEBAR_ACTION_SHOW_DISPLAY_OPTIONS
static final String PROP_FILE_ENCODING
static final String PROP_CUSTOM_FILE_ENCODING
boolean canViewContent(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException
itemId
- IURI
of itemuserId
- IThingID
of usercapabilities
- Known set of capabilities for this user.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalException
- if the userId is invalid.void checkViewContent(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException, PortalAccessException
PortalAccessException
if the specified user cannot
view the content of the specified item.itemId
- IURI
of itemuserId
- IThingID
of usercapabilities
- Known set of capabilities for this user.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalAccessException
- if the user cannot view the content of the item.PortalException
- if the userId is invalid.boolean canListContainers(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException
itemId
- IURI
of itemuserId
- IThingID
of usercapabilities
- Known set of capabilities for this user.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalException
- if the userId is invalid.void checkListContainers(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException, PortalAccessException
PortalAccessException
if the specified user
cannot view the containers of the specified item.itemId
- IURI
of itemuserId
- IThingID
of usercapabilities
- Known set of capabilities for this user.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalAccessException
- if the user cannot view the containers of the item.PortalException
- if the userId is invalid.boolean canListNotes(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException
itemId
- IURI
of itemuserId
- IThingID
of usercapabilities
- Known set of capabilities for this user.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalException
- if the userId is invalid.void checkListNotes(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException, PortalAccessException
PortalAccessException
if the specified user
cannot view the notes associated with the specified item.itemId
- IURI
of itemuserId
- IThingID
of usercapabilities
- Known set of capabilities for this user.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalAccessException
- if the user cannot view the notes associated with the item.PortalException
- if the userId is invalid.boolean canListAccess(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException
itemId
- IURI
of itemuserId
- IThingID
of usercapabilities
- Known set of capabilities for this user.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalException
- if the userId is invalid.void checkListAccess(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException, PortalAccessException
PortalAccessException
if the specified user
cannot view the access list (of principals) of the specified item.itemId
- IURI
of itemuserId
- IThingID
of usercapabilities
- Known set of capabilities for this user.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalAccessException
- if the user cannot view the access list of the item.PortalException
- if the userId is invalid.boolean canViewAuthentication(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException
itemId
- IURI
of itemuserId
- IThingID
of usercapabilities
- Known set of capabilities for this user.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalException
- if the userId is invalid.void checkViewAuthentication(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException, PortalAccessException
PortalAccessException
if the specified user
cannot view the authentication method of the specified item.itemId
- IURI
of itemuserId
- IThingID
of usercapabilities
- Known set of capabilities for this user.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalAccessException
- if the user cannot view the authentication method of the item.PortalException
- if the userId is invalid.boolean canCreate(IThingID xtypeId, IThingID userId) throws PortalException
xtypeId
- IThingID
of item typeuserId
- IThingID
of userPortalException
- if the userId is invalid.void checkCreate(IThingID xtypeId, IThingID userId) throws PortalException, PortalAccessException
PortalAccessException
if the specified user cannot create the specified type of item.xtypeId
- IThingID
of item typeuserId
- IThingID
of userPortalAccessException
- if the user cannot create this type of item.PortalException
- if the userId is invalid.boolean canUpdateContent(IThingID itemId, IThingID userId) throws PortalException
itemId
- IURI
of itemuserId
- IThingID
of userPortalException
- if the userId is invalid.void checkUpdateContent(IThingID itemId, IThingID userId) throws PortalException, PortalAccessException
PortalAccessException
if the specified user cannot update the content of the specified item.itemId
- IURI
of itemuserId
- IThingID
of userPortalAccessException
- if the user cannot update the content of the item.PortalException
- if the userId is invalid.boolean canUpdateProperties(IThingID itemId, IThingID userId) throws PortalException
itemId
- IURI
of itemuserId
- IThingID
of userPortalException
- if the userId is invalid.void checkUpdateProperties(IThingID itemId, IThingID userId) throws PortalException, PortalAccessException
PortalAccessException
if the specified user cannot update the properties of the specified item.itemId
- IURI
of itemuserId
- IThingID
of userPortalAccessException
- if the user cannot update the properties of the item.PortalException
- if the userId is invalid.boolean canDelete(IThingID itemId, IThingID userId) throws PortalException
itemId
- IURI
of itemuserId
- IThingID
of userPortalException
- if the userId is invalid.void checkDelete(IThingID itemId, IThingID userId) throws PortalException, PortalAccessException
PortalAccessException
if the specified user
cannot delete the specified item.itemId
- IURI
of itemuserId
- IThingID
of userPortalAccessException
- if the user cannot delete the item.PortalException
- if the userId is invalid.boolean canAddNote(IThingID itemId, IThingID userId) throws PortalException
itemId
- IURI
of itemuserId
- IThingID
of userPortalException
- if the userId is invalid.void checkAddNote(IThingID itemId, IThingID userId) throws PortalException, PortalAccessException
PortalAccessException
if the specified user cannot add a note to the specified item.itemId
- IURI
of itemuserId
- IThingID
of userPortalAccessException
- if the user cannot add a note to the item.PortalException
- if the userId is invalid.boolean canRemoveNote(IThingID itemId, IThingID userId) throws PortalException
itemId
- IURI
of itemuserId
- IThingID
of userPortalException
- if the userId is invalid.void checkRemoveNote(IThingID itemId, IThingID userId) throws PortalException, PortalAccessException
PortalAccessException
if the specified user cannot remove a note from the specified item.itemId
- IURI
of itemuserId
- IThingID
of userPortalAccessException
- if the user cannot remove a note from the item.PortalException
- if the userId is invalid.boolean canSetOwner(IThingID itemId, IThingID userId) throws PortalException
canSetOwner
in interface IAccessMechanics
itemId
- IURI
of itemuserId
- IThingID
of userPortalException
- if the userId is invalid.void checkSetOwner(IThingID itemId, IThingID userId) throws PortalException, PortalAccessException
PortalAccessException
if the specified user
cannot set the owner of the specified item.checkSetOwner
in interface IAccessMechanics
itemId
- IURI
of itemuserId
- IThingID
of userPortalAccessException
- if the user cannot set the owner of the item.PortalException
- if the userId is invalid.boolean canSetAccess(IThingID itemId, IThingID userId, boolean recursive) throws PortalException
canSetAccess
in interface IAccessMechanics
itemId
- IURI
of itemuserId
- IThingID
of userrecursive
- True if we want to recursively check the item's descendants.rights
- The rights set to check (see IAccessRight
).PortalException
- if the userId is invalid.void checkSetAccess(IThingID itemId, IThingID userId, boolean recursive) throws PortalException, PortalAccessException
PortalAccessException
if the specified user
cannot add or modify entries in the access list of the specified item.checkSetAccess
in interface IAccessMechanics
itemId
- IURI
of itemuserId
- IThingID
of userrecursive
- True if we want to recursively check the item's descendants.rights
- The rights set to check (see IAccessRight
).PortalAccessException
- if the user cannot add or modify entries in the access list of the item.PortalException
- if the userId is invalid.boolean canRemoveAccess(IThingID itemId, IThingID userId, boolean recursive) throws PortalException
canRemoveAccess
in interface IAccessMechanics
itemId
- IURI
of itemuserId
- IThingID
of userrecursive
- True if we want to recursively check the item's descendants.PortalException
- if the userId is invalid.void checkRemoveAccess(IThingID itemId, IThingID userId, boolean recursive) throws PortalException, PortalAccessException
PortalAccessException
if the specified user
cannot remove entries from the access list of the specified item.checkRemoveAccess
in interface IAccessMechanics
itemId
- IURI
of itemuserId
- IThingID
of userrecursive
- True if we want to recursively check the item's descendants.PortalAccessException
- if the user cannot remove entries from the access list of the item.PortalException
- if the userId is invalid.boolean canSetAuthentication(IThingID itemId, IThingID userId, boolean recursive) throws PortalException
canSetAuthentication
in interface IAccessMechanics
itemId
- IURI
of itemuserId
- IThingID
of userrecursive
- True if we want to recursively check the item's descendants.PortalException
- if the userId is invalid.void checkSetAuthentication(IThingID itemId, IThingID userId, boolean recursive) throws PortalException, PortalAccessException
PortalAccessException
if the specified user
cannot set the authentication type of the specified item.checkSetAuthentication
in interface IAccessMechanics
itemId
- IURI
of itemuserId
- IThingID
of userrecursive
- True if we want to recursively check the item's descendants.PortalAccessException
- if the user cannot set the authentication type of the item.PortalException
- if the userId is invalid.boolean canCloneRemote(IThingID destContainerId, IThingID srcItemId, IThingID userId) throws PortalException
destContainerId
- The IThingID
of the destination container.srcItemId
- The IThingID
of the item to clone.userId
- The IThingID
of the user who wants to clone the item.PortalException
- if the userId is invalid.void checkCloneRemote(IThingID destContainerId, IThingID srcItemId, IThingID userId) throws PortalException, PortalAccessException
PortalAccessException
if the specified user cannot clone the specified item.destContainerId
- The IThingID
of the destination container.srcItemId
- The IThingID
of the item to clone.userId
- The IThingID
of the user who wants to clone the item.PortalAccessException
- if the user cannot clone the item.PortalException
- if the userId is invalid.boolean canDestroy(IThingID thingID, IThingID userID) throws PortalException
thingID
- The IThingID
of the item to be destroyed.userID
- The IThingID
of the user that will destroy the item.PortalException
- if the userId is invalid.void checkDestroy(IThingID thingID, IThingID userID) throws PortalException, PortalAccessException
PortalAccessException
if the user can not destroy an item.thingID
- The IThingID
of the item to be destroyed.userID
- The IThingID
of the user that will destroy the item.PortalAccessException
- if the user can't destroy the item.PortalException
- if the userId is invalid.void fireViewContentEvent(IThingID itemId, IThingID userId, int status) throws PortalException
itemId
- Item whose content was viewed.userId
- User who viewed the content.status
- Status of the event (successful, denied, error).PortalException
- if the userId is invalid.void fireListContainersEvent(IThingID itemId, IThingID userId, int status) throws PortalException
itemId
- Item whose containers were listed.userId
- User for whom the containers were listed.status
- Status of the event (successful, denied, error).PortalException
- if the userId is invalid.void fireListNotesEvent(IThingID itemId, IThingID userId, int status) throws PortalException
itemId
- Item whose notes were listed.userId
- User for whom the notes were listed.status
- Status of the event (successful, denied, error).PortalException
- if the userId is invalid.void fireListAccessEvent(IThingID itemId, IThingID userId, int status) throws PortalException
itemId
- Item whose access was listed.userId
- User for whom the access was listed.status
- Status of the event (successful, denied, error).PortalException
- if the userId is invalid.void fireViewAuthenticationEvent(IThingID itemId, IThingID userId, int status) throws PortalException
itemId
- Item whose authentication scheme was viewed.userId
- User who viewed the authentication scheme.status
- Status of the event (successful, denied, error).PortalException
- if the userId is invalid.void fireUpdateContentEvent(IThingID itemId, IThingID userId, int status, DifferenceMap differences) throws PortalException
itemId
- Item whose content was updated.userId
- User who updated the content.status
- Status of the event (successful, denied, error).differences
- Differences between old and new content.PortalException
- if the userId is invalid.void fireCacheInvalidateEvent(IThingID itemId, IThingID userId) throws PortalException
itemId
- Item whose cache you want to invalidateuserId
- User doing the invalidation.PortalException
- if the userId is invalid.void fireInsoEvent(IThingID itemId, IThingID userId) throws PortalException
itemId
- Item whose content should be converted.userId
- User who triggered the conversion request (typically by updating the content).PortalException
- if the userId is invalid.void fireUpdatePropertiesEvent(IThingID itemId, IThingID userId, int status, DifferenceMap differences) throws PortalException
itemId
- Item whose properties were updated.userId
- User who updated the properties.status
- Status of the event (successful, denied, error).differences
- Map of properties changed.PortalException
- if the userId is invalid.void fireDeleteEvent(IThingID itemId, IThingID containerId, IThingID userId, int status) throws PortalException
itemId
- Item deleted.containerId
- Container from which item was deleted.userId
- User who deleted the item.status
- Status of the event (successful, denied, error).PortalException
- if the userId is invalid.void firePurgeEvent(IThingID itemID, IThingID containerID, IThingID userID) throws PortalException
itemID
- Item purged.containerID
- Container that item lived in.userID
- User who purged item.PortalException
- if the userId is invalid.void fireAddNoteEvent(IThingID itemId, IThingID userId, int status) throws PortalException
itemId
- Item to which notes were added.userId
- User who added the notes.status
- Status of the event (successful, denied, error).PortalException
- if the userId is invalid.void fireRemoveNoteEvent(IThingID itemId, IThingID userId, int status) throws PortalException
itemId
- Item whose notes were removed.userId
- User who removed the notes.status
- Status of the event (successful, denied, error).PortalException
- if the userId is invalid.void fireSetOwnerEvent(IThingID itemId, IThingID userId, int status, IThingID newOwnerId, IThingID oldOwnerId) throws PortalException
fireSetOwnerEvent
in interface IAccessMechanics
itemId
- Item whose owner was set.userId
- User who set the owner.status
- Status of the event (successful, denied, error).newOwnerId
- New owner.oldOwnerId
- Old owner.PortalException
- if the userId is invalid.void fireSetAccessEvent(IThingID itemId, IThingID userId, int status, List<? extends IURI> principalIds) throws PortalException
fireSetAccessEvent
in interface IAccessMechanics
itemId
- Item to whose access list entries were added or modified.userId
- User who set the access.status
- Status of the event (successful, denied, error).principalIds
- List of IURI
s whose access was modified.PortalException
- if the userId is invalid.void fireRemoveAcccesEvent(IThingID itemId, IThingID userId, int status, List<? extends IURI> principalIds) throws PortalException
fireRemoveAcccesEvent
in interface IAccessMechanics
itemId
- Item to which access list entries were removed.userId
- User who removed the access.status
- Status of the event (successful, denied, error).principalIds
- List of IURI
s whose access was removed.PortalException
- if the userId is invalid.void fireSetAuthenticationEvent(IThingID itemId, IThingID userId, int status, String scheme) throws PortalException
fireSetAuthenticationEvent
in interface IAccessMechanics
itemId
- Item whose authentication scheme was set.userId
- User who set the authentication scheme.status
- Status of the event (successful, denied, error).scheme
- Name of the authentication scheme.PortalException
- if the userId is invalid.boolean isNormal(IThingID itemId)
itemId
- Item to check.boolean isBaseType(IThingID itemId)
itemId
- Item to check.boolean isContainer(IThingID itemId)
itemId
- Item to check.boolean isVersionable(IThingID itemId)
itemId
- Item to check.boolean isReference(IView view)
view
- View to check.InputStream getContent(IThingID itemId) throws PortalException
itemId
- Item for which to get content.PortalException
InputStream getContent(IThingID itemId, String type) throws PortalException
itemId
- Item for which to get content.type
- Content type (ie 'text/html' or 'reference icon').PortalException
IContentStore getContentStore(IThingID itemId) throws PortalException
itemId
- Item for which to get content.PortalException
IContentStore getContentStore(IThingID itemId, String type) throws PortalException
itemId
- Item for which to get content.type
- Content type (ie 'text/html' or 'reference icon').PortalException
IListView<IView> listContainers(IThingID itemId) throws PortalException
itemId
- Item referenced.IView
items, or an empty list.PortalException
IListView<IView> listContainers(IThingID itemId, IThingID userId) throws PortalException
itemId
- Item referenced.userId
- User for whom to filter.IView
items, or an empty list.PortalException
IListView<INote> listNotes(IThingID itemId, IThingID userId) throws PortalException
itemId
- Item referenced.userId
- User to filter list for.IView
items, or an empty list.PortalException
void addNote(IThingID itemId, IThingID userId, String note) throws PortalException
itemId
- Item to add note to.userId
- User adding the note.note
- The note to attach to the item.PortalException
void removeNote(IThingID itemId, IThingID userId, int noteID) throws PortalException
itemId
- Item to remove note from.userId
- User removing the note.noteID
- The ID of the note to remove.PortalException
IThingIDList getAncestors(IThingID itemId) throws PortalException
itemId
- Item.PortalException
IListView<IView> listAccess(IThingID itemId) throws PortalException
itemId
- Item whose access entries to list.IView
items, or an empty list.PortalException
IListView<IView> listAccess(IThingID itemId, IThingID userId) throws PortalException
itemId
- Item whose access entries should be listed.userId
- User for whom to filter.IView
items, or an empty list.PortalException
boolean isAnonymous(IThingID itemId) throws PortalException
itemId
- Item to check for anonymous access.PortalException
String getAuthentication(IThingID itemId) throws PortalException
itemId
- Item to retrieve authentication scheme for.PortalException
for an example
void setAuthentication(IThingID itemId, String authLevel, boolean recursive) throws PortalException
itemId
- Item to set authentication scheme for.recursive
- whether to set this recursivelyPortalException
IAccessMechanics.AUTH_LEVEL_ANONYMOUS
,
IAccessMechanics.AUTH_LEVEL_DEFAULT
,
IAccessMechanics.AUTH_LEVEL_FULL_ACCESS
,
IAccessMechanics.AUTH_LEVEL_BASIC
,
IAccessMechanics.AUTH_LEVEL_NTLM
int getAccess(IThingID itemId, IThingID userId, Map<?,?> capabilities) throws PortalException
getAccess
in interface IAccessMechanics
itemId
- Item whose access is requested.userId
- User whose access to the item is requested.capabilities
- User's known capabilities for this item.
May be null, in which case they'll be looked up from the
IContext.SCOPE_REQUEST
attributes on the user's IContext
.PortalException
IListView<IView> listDependants(IThingID itemId) throws PortalException
itemId
- Item to check for dependencies.IView
items, or an empty list.PortalException
void updateContent(IThingID itemId, IThingID userId, InputStream content, String type, boolean insoConvert, String originalPath) throws PortalException
itemId
- Item to update.userId
- User updating the content.content
- Updated content.type
- Content type (ie 'text/html' or 'reference icon').insoConvert
- True if the content should be converted to html via inso.originalPath
- Content's original local file path.PortalException
void updateContent(IThingID itemId, IThingID userId, boolean insoConvert, IPortalFileBean portalFileBean, String encoding) throws PortalException
PortalFileBean
as the
updated content.itemId
- Item to update.userId
- User updating the content.insoConvert
- True if the content should be converted to HTML via Inso.portalFileBean
- Updated content.PortalException
DifferenceMap updateProperties(IThingID itemId, IThingID userId, Map<String,? extends Object> properties) throws PortalException
DifferenceMap updateProperties(IThingID itemId, IThingID userId, Map<String,? extends Object> properties, Locale locale) throws PortalException
itemId
- Item to update.userId
- User updating the properties.properties
- Map of properties to update.locale
- for name and descriptionPortalException
void delete(IThingID itemId) throws PortalException
itemId
- Item to delete.PortalException
void destroy(IThingID itemID) throws PortalException
itemID
- Item to destroy.PortalException
void prepareForDeletion(IThingID itemId) throws PortalException
itemId
- The item to be deleted.PortalException
IThingID create(IThingID containerId, IThingID userId, int xtype, Map<String,? extends Object> properties) throws PortalException
IThingID create(IThingID containerId, IThingID userId, int xtype, Map<String,? extends Object> properties, Locale locale) throws PortalException
IContainerMechanics.createChild(com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID, int, java.util.Map<java.lang.String, ? extends java.lang.Object>)
.containerId
- Container in which to create the new item.userId
- User for whom the item will be created.xtype
- Item type to create.properties
- New item's properties. May not be null.locale
- for name and description propertiesIThingID
of new itemPortalException
IThingID copy(IThingID containerId, IThingID userId, IThingID childId) throws PortalException
IContainerMechanics.copyChild(com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
.containerId
- Container in which to create copy.userId
- User for whom copy will be made.childId
- Item to copy.IThingID
of new itemPortalException
void move(IThingID containerId, IThingID childId) throws PortalException
IContainerMechanics.moveChild(com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
.containerId
- Container into which to move the item.childId
- Item to move.PortalException
void move(IThingID containerId, IThingID childId, String newName) throws PortalException
IContainerMechanics.moveChild(com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
.containerId
- Container into which to move the item.childId
- Item to move.newName
- the new name to assign the moved itemPortalException
void addReference(IThingID containerId, IThingID childId) throws PortalException
IContainerMechanics.addReferenceToChild(com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
.containerId
- Container in which to add a reference to the item.childId
- Item to add a reference to.PortalException
void removeReference(IThingID containerId, IThingID childId) throws PortalException
IContainerMechanics.removeReferenceToChild(com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
.containerId
- Container from which to remove the reference.childId
- Item whose reference is to be removed.PortalException
void addRelation(IThingID containerId, IThingID childId, String relType) throws PortalException
containerId
- Container from which to add relationshipchildId
- Child to be related to containerrelType
- relationship type between Container and childPortalException
void removeRelation(IThingID containerId, IThingID childId, String relType) throws PortalException
containerId
- Container from which to remove relationshipchildId
- Child which to be removedrelType
- relationship type between Container and childPortalException
IThingIDList listRelatedChildren(IThingID containerID, String relType, int start, int end) throws PortalException
containerID
- Container which we want to retrieve list of related thingsrelType
- relationship type.start
- start index for the list. Start from 0.end
- End index for the list. Starts from 0. -1 will return all itemsPortalException
IThingIDList listRelatedContainers(IThingID childID, String relType, int start, int end) throws PortalException
childID
- child from which we want to return all containersrelType
- relationship typestart
- start index for the list. Starts from 0.end
- End index for the list. Starts from 0. -1 will return all itemsPortalException
IThingID getPrimaryRelatedChild(IThingID containerID, String relType) throws PortalException
containerID
- Source of relationship.relType
- Relationship type.PortalException
IThingID getPrimaryRelatedContainer(IThingID childID, String relType) throws PortalException
childID
- Target of relationship.relType
- Relationship type.PortalException
void setOwner(IThingID itemId, IThingID ownerId) throws PortalException
itemId
- Item whose ownership will be changed.ownerId
- New owner.PortalException
void doAfterInstall(IThingID itemID) throws PortalException
itemID
- PortalException
void doBeforeUpgrade(IThingID itemID) throws PortalException
itemID
- PortalException
void doAfterUpgrade(IThingID itemID) throws PortalException
itemID
- PortalException
boolean canUninstall(IThingID itemID) throws PortalException
itemID
- PortalException
void checkUninstall(IThingID itemID) throws PortalException
itemID
- Item to check.PortalException
- if the item can't be uninstalled.void doBeforeUninstall(IThingID itemID) throws PortalException
itemID
- PortalException
@Deprecated boolean isWorkflowEnabled(IThingID userID, IThingID containerId) throws PortalException
userID
- user ID that performs operationcontainerId
- container to check for workflowPortalException
@Deprecated long getTimeToLive() throws PortalException
PortalException
IThing.delete(long, com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
@Deprecated void setTimeToLive(long timeToLive) throws PortalException
timeToLive
- Time to Live (in milliseconds)PortalException
IThing.delete(long, com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID)
IThingIDList undeleteAllUndestroyed() throws PortalException
MetaException
PortalException
IThingIDList getDependencyList(IThingID thingID, IThingIDList mergeList) throws PortalException
thingID
- Item for which to find dependencies.mergeList
- A continuing list of id's to merge with. May be null.IThingIDList
of IThingID
s that this item depends on.PortalException
IThingID cloneRemote(IThingID destContainerId, IThingID srcItemId, IThingID userId, Map<String,?> maps) throws PortalException
IContainerMechanics.createChild(com.webmethods.portal.service.meta2.thing.IThingID, com.webmethods.portal.service.meta2.thing.IThingID, int, java.util.Map<java.lang.String, ? extends java.lang.Object>)
.destContainerId
- Container in which to create item.srcItemId
- Remote item to be cloned.userId
- Local User, which creates an instance.maps
- Various parameters which give the mechanics more details on how the item should be cloned. Can be null.PortalException
boolean canDoTitlebarAction(IThingID thingID, String titlebarAction) throws PortalException
thingID
- thing ID of an objecttitlebarAction
- defined action. See TITLEBAR_ACTION_XXX constants defined in this classPortalException
boolean canVerb(IURI itemURI, IURI userURI, String verb, Object param) throws PortalException
PortalException