|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A resource represents an object in a repository and is uniquely identified by
a resource identifier (RID). Clients use this interface and the
derived ICollection interface to manipulate the resources in a
repository. Every repository is controlled by a repository manager (getRepositoryManager()), which is resposible for createing resource instances
and carrying out all basic operations (create, update content or properties,
deleting, etc.).
The Repository Framework knows these kinds of resources:
Normal resources: A resource has an identifier (RID) which is unique
within a CM system (getRID()) and usually has content (getContent()) and properties (getProperties()).
Collections: isCollection() returns true . The
items in a collection are called "children" and are accessed with ICollection#getChildren.
Links: getLinkType() returns INTERNAL or EXTERNAL. Internal
links point to other resources (in the same or a different repository),
external links point to resources outside the CM system (URL). The link
target for internal links is access with getTargetResource(). The
target can again be a link. Links to collections are themselfs collections. A
link resource usually has no content but might have properties.
Version Controlled Resources: isVersioned() returns true
. A version controlled resource must be checked out to be modified.
All revisions of the content and/or properties will be recorded in a version
history (getVersionHistory()). The resources in the version history
are called "revisions".
Revisions: isRevision() returns true . A revision
provides read-only access to the properties and the content of a version of
the version controlled resource.
Deleted resources: As soon as the delete() method has been
called the resource instance is in a special state. All methods except
getRID() and getName() are prohibited and will throw an exception.
Copyright (c) SAP AG 2001-2002
| Method Summary | |
java.lang.Object |
as(java.lang.Class classref)
Get a representation of this resource as the specified class. |
com.sapportals.wcm.repository.ICheckInInfo |
checkIn(com.sapportals.wcm.repository.IContent newContent,
com.sapportals.wcm.repository.IPropertyMap properties)
Check in a new version of the resource with new content and/or properties. |
com.sapportals.wcm.repository.ICheckInInfo |
checkIn(com.sapportals.wcm.repository.IContent newContent,
com.sapportals.wcm.repository.IPropertyMap properties,
boolean ignorePropertyFailures)
Check in a new version of the resource with new content and/or properties. |
com.sapportals.wcm.repository.ICheckInInfo |
checkIn(com.sapportals.wcm.repository.IContent newContent,
com.sapportals.wcm.repository.IPropertyMap properties,
boolean ignorePropertyFailures,
com.sapportals.wcm.util.uri.RID expectedCheckInRID)
Check in a new version of the resource with new content and/or properties. |
com.sapportals.wcm.repository.ICheckOutInfo |
checkOut()
Check out the resource for editing. |
IResource |
copy(com.sapportals.wcm.util.uri.RID destinationRID,
com.sapportals.wcm.repository.ICopyParameter param)
Copy the resource. |
IResource |
copy(com.sapportals.wcm.util.uri.RID destinationRID,
com.sapportals.wcm.repository.IPosition position,
com.sapportals.wcm.repository.ICopyParameter param)
Copy the resource to a destination collection that supports ordered children. |
void |
delete()
Deletes this resource from the repository. |
void |
deleteProperty(com.sapportals.wcm.repository.IPropertyName propName)
Removes the property. |
void |
enableVersioning(boolean enable)
Enables or disables versioning. |
com.sapportals.wcm.util.uri.RID |
getAccessRID()
Returns the RID that was used to create this resource object in
IResourceFactory.getResource |
IResourceList |
getCheckedOutResources()
Returns a list of currently checked out resources. |
com.sapportals.wcm.repository.IContent |
getContent()
Returns the content of this resource. |
IResourceContext |
getContext()
Returns the resource context |
java.lang.String |
getCreatedBy()
Get value of the system property CreatedBy. |
java.util.Date |
getCreationDate()
Get value of the system property CreationDate |
java.lang.String |
getDescription()
Get value of the system property Description |
java.lang.String |
getDisplayName()
Returns the value of the Displayname system property or null
if the property is not set. |
java.lang.String |
getDisplayName(boolean orNameIfNull)
Returns the value of the Displayname system property or null
if the property is not set. |
java.lang.String |
getETag()
Get value of the system property ETag, reflecting the HTTP entity tag for the unfiltered content of this resource. |
com.sapportals.wcm.repository.IProperty |
getInheritedProperty(com.sapportals.wcm.repository.IPropertyName propName)
Get a property of the resource or inherit it. |
java.lang.String |
getLanguage()
Returns the language |
java.util.Date |
getLastModified()
Get value of the system property LastModified |
java.lang.String |
getLastModifiedBy()
Get value of the system property LastModifiedBy. |
com.sapportals.wcm.repository.LinkType |
getLinkType()
Returns the link type (NONE if the resource is not a link). |
com.sapportals.wcm.repository.ILockInfo |
getLockByToken(java.lang.String lockToken)
Get a LockInfo for the token. |
com.sapportals.wcm.repository.ILockInfoCollection |
getLocks()
Returns a collection of all existing locks. |
java.lang.String |
getName()
Get name of the resource. |
com.sapportals.wcm.repository.ICollection |
getParentCollection()
Returns the parent collection of this resource. |
com.sapportals.wcm.repository.IPropertyMap |
getProperties()
Returns a map with IProperty references for the resource. |
com.sapportals.wcm.repository.IPropertyMap |
getProperties(com.sapportals.wcm.repository.IPropertyNameList propNameList)
Returns a map with IProperty references for the resource. |
com.sapportals.wcm.repository.IProperty |
getProperty(com.sapportals.wcm.repository.IPropertyName propName)
Get a property. |
IRepositoryManager |
getRepositoryManager()
Get the repository manager for this resource |
java.lang.String |
getResourceType()
Returns the value of the ResourceType system property or an empty string if the property is not set. |
java.lang.String |
getRevisionID()
Returns the identifier for this revision. |
com.sapportals.wcm.util.uri.RID |
getRID()
Get the ID (path) of this resource. |
com.sapportals.wcm.util.events.IEventList |
getSupportedEvents()
Returns a collection of supported resource events and semantic events for this resource. |
com.sapportals.wcm.repository.ISupportedOptionSet |
getSupportedOptions()
Returns a collection of supported options for the resource. |
IResource |
getTargetResource()
Returns the target resource of an internal link. |
com.sapportals.wcm.util.uri.URL |
getTargetURL()
Returns the target URL of a link or null if the resource is
not a link. |
com.sapportals.wcm.repository.IContent |
getUnfilteredContent()
Returns the content of this resource without applying content filters. |
com.sapportals.wcm.repository.IContent |
getUnfilteredContent(boolean handleExternalLink)
Returns the content of this resource without applying content filters. |
com.sapportals.wcm.repository.IVersionHistory |
getVersionHistory()
Returns the version history of this resource. |
boolean |
isA(java.lang.Class classtest)
Returns whether this resource has a representation as the class. |
boolean |
isCheckedOut()
Returns true if this resource is currently checked out. |
boolean |
isCollection()
Returns true if this resource is a collection |
boolean |
isHidden()
Get value of the system property Hidden |
boolean |
isLocked()
Returns true if this resource is locked. |
boolean |
isLockedByMe()
Returns true if this resource is locked by the current user in
the context. |
boolean |
isReadOnly()
Get value of the system property Readonly |
boolean |
isRevision()
Returns true if this resource is a revision. |
boolean |
isVersioned()
Returns true if versioning is enabled for this resource. |
com.sapportals.wcm.repository.ILockInfo |
lock()
Lock the resource using the current user in the context. |
com.sapportals.wcm.repository.ILockInfo |
lock(com.sapportals.wcm.repository.ILockProperties lockProperties)
Lock the resource using the current user in the context. |
IResource |
move(com.sapportals.wcm.util.uri.RID destinationRID,
com.sapportals.wcm.repository.ICopyParameter param)
Move the resource's content and properties |
IResource |
move(com.sapportals.wcm.util.uri.RID destinationRID,
com.sapportals.wcm.repository.IPosition position,
com.sapportals.wcm.repository.ICopyParameter param)
Move the resource to a destination collection that supports ordered children. |
void |
refreshLock(com.sapportals.wcm.repository.ILockInfo lockInfo)
Refresh the lock. |
void |
rename(java.lang.String newName)
Changes the name of this resource. |
IResourceList |
search(com.sapportals.wcm.repository.IQueryExpression query,
int depth,
int maxResults,
boolean includeRevisions)
Queries the resource and optionally the collection hierarchy for resources. |
void |
setLinkType(com.sapportals.wcm.repository.LinkType linkType)
Changes the link type. |
void |
setProperties(com.sapportals.wcm.repository.IPropertyMap props)
Set all properties of the resource. |
void |
setProperties(java.util.List propChangeList)
Change the properties of the resource. |
void |
setProperty(com.sapportals.wcm.repository.IProperty prop)
Sets a property. |
void |
setTargetURL(com.sapportals.wcm.util.uri.URL url)
Changes the target URL of a link. |
void |
undoCheckOut()
Undo a previous check out operation. |
void |
unlock(com.sapportals.wcm.repository.ILockInfo lockInfo)
Unlock the resource using the current user in the context. |
void |
update(com.sapportals.wcm.repository.IContent newContent,
com.sapportals.wcm.repository.IPropertyMap properties)
Updates the content and properties of this resource in an atomic operation. |
void |
updateContent(com.sapportals.wcm.repository.IContent newContent)
Updates the content of this resource. |
| Method Detail |
public java.lang.Object as(java.lang.Class classref)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
ResourceImpl
class. This base class will always return null .classref - TBD: Description of the incoming method parameternull .com.sapportals.wcm.repository.ResourceException - Exception raised in failure situationcom.sapportals.wcm.repository.NotSupportedException - Exception raised in failure situationcom.sapportals.wcm.repository.AccessDeniedException - Exception raised in failure situation
public com.sapportals.wcm.repository.ICheckInInfo checkIn(com.sapportals.wcm.repository.IContent newContent,
com.sapportals.wcm.repository.IPropertyMap properties)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
newContent - The new content. Can be null : the existing
content will be used for the new version.properties - The new properties, can be nullcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public com.sapportals.wcm.repository.ICheckInInfo checkIn(com.sapportals.wcm.repository.IContent newContent,
com.sapportals.wcm.repository.IPropertyMap properties,
boolean ignorePropertyFailures)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
newContent - The new content. Can be null : the existing
content will be used for the new version.properties - The new properties, can be nullignorePropertyFailures - Ignore exceptions if some or all properties
could not be set/removedcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public com.sapportals.wcm.repository.ICheckInInfo checkIn(com.sapportals.wcm.repository.IContent newContent,
com.sapportals.wcm.repository.IPropertyMap properties,
boolean ignorePropertyFailures,
com.sapportals.wcm.util.uri.RID expectedCheckInRID)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException,
com.sapportals.wcm.repository.ExpectedCheckInRIDException
newContent - The new content, can be nullproperties - The new properties, can be nullignorePropertyFailures - Ignore exceptions if some or all properties
could not be set/removedexpectedCheckInRID - Create the new revision with this revision RID.
The check-in may fail if the new revision RID would be
different. In this case an ExpectedCheckInRID exception will be thrown
which will contain a new "expected check-in RID". To make sure that
the expectedCheckInRID actually was used, it needs to be
compared to the RID returned by ICheckInInfo#getRevisionRID
(this is because a repository may check-in the resource although it
couldn't use the expectedCheckInRID).com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failedcom.sapportals.wcm.repository.ExpectedCheckInRIDException - Exception raised in failure
situationcheckOut()
public com.sapportals.wcm.repository.ICheckOutInfo checkOut()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
null if the repository
does not support the "expected check-in RID" option.com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public IResource copy(com.sapportals.wcm.util.uri.RID destinationRID,
com.sapportals.wcm.repository.ICopyParameter param)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
destinationRID - the RID of the destination (includes the name). All
collections in the destination RID must already exists.param - The copy parameter object, can be nullcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public IResource copy(com.sapportals.wcm.util.uri.RID destinationRID,
com.sapportals.wcm.repository.IPosition position,
com.sapportals.wcm.repository.ICopyParameter param)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
destinationRID - the RID of the destination (includes the name). All
collections in the destination RID must already exists.position - The positioning informationparam - The copy parameter object, can be nullcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public void delete()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public void deleteProperty(com.sapportals.wcm.repository.IPropertyName propName)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
propName - The property name of the property to deletecom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public void enableVersioning(boolean enable)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
true /false but versioning is
already enabled/disabled.enable - TBD: Description of the incoming method parametercom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public com.sapportals.wcm.util.uri.RID getAccessRID()
throws com.sapportals.wcm.repository.ResourceException
IResourceFactory.getResourcecom.sapportals.wcm.repository.ResourceException - getRID()
public IResourceList getCheckedOutResources()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
null if no resources are checked outcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException -
public com.sapportals.wcm.repository.IContent getContent()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.AccessDeniedException
com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failedpublic IResourceContext getContext()
public java.lang.String getCreatedBy()
public java.util.Date getCreationDate()
public java.lang.String getDescription()
public java.lang.String getDisplayName()
null
if the property is not set.null
if the property is not set.public java.lang.String getDisplayName(boolean orNameIfNull)
null
if the property is not set. If the boolean parameter is true
the name (last part of the resource identifier) is used as a fallback if
the property is not set.orNameIfNull - If true, the name (last part of the resource
identifier) is used as a fallback if the DisplayName property is not
set.public java.lang.String getETag()
Note: The ETag of a resource is not a unique identifier.
public com.sapportals.wcm.repository.IProperty getInheritedProperty(com.sapportals.wcm.repository.IPropertyName propName)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
propName - The property name of the property to findcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failedpublic java.lang.String getLanguage()
public java.util.Date getLastModified()
public java.lang.String getLastModifiedBy()
public com.sapportals.wcm.repository.LinkType getLinkType()
throws com.sapportals.wcm.repository.ResourceException
com.sapportals.wcm.repository.ResourceException -
public com.sapportals.wcm.repository.ILockInfo getLockByToken(java.lang.String lockToken)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException
lockToken - TBD: Description of the incoming method parametercom.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
public com.sapportals.wcm.repository.ILockInfoCollection getLocks()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public java.lang.String getName()
throws com.sapportals.wcm.repository.ResourceException
com.sapportals.wcm.repository.ResourceException -
public com.sapportals.wcm.repository.ICollection getParentCollection()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.AccessDeniedException
null if this resource is the root collection. If this resource
is a revision (@link #isRevision) the returned resource is the parent
collection of the versioned controlled resource of the revision. The return
value might be null because repository manager implementation
might not support this call for revision at all or it is not possible for
some revisions, for example if the version controlled resource does not
exist anymore.com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public com.sapportals.wcm.repository.IPropertyMap getProperties()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
IProperty references for the resource.com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public com.sapportals.wcm.repository.IPropertyMap getProperties(com.sapportals.wcm.repository.IPropertyNameList propNameList)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
IProperty references for the resource.propNameList - The list with the requested property names.com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public com.sapportals.wcm.repository.IProperty getProperty(com.sapportals.wcm.repository.IPropertyName propName)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
propName - The property name of the property to readcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failedpublic IRepositoryManager getRepositoryManager()
public java.lang.String getResourceType()
public java.lang.String getRevisionID()
isVersioned()) the
return value will be null .
public com.sapportals.wcm.util.uri.RID getRID()
throws com.sapportals.wcm.repository.ResourceException
getResource("/prefix-repository-a/xxx/link-to-collection-in-repository-b/xxx/test.html",
...) getRID() returns:
/prefix-repository-b/dir1/dir2/link-target/xxx/test.html A repository might provide special RIDs for revision resources to provide access to all the resources in the version history via some kind of "virtual" collection. The syntax of the revision RID is specific to each repository.
com.sapportals.wcm.repository.ResourceException - isRevision(),
getAccessRID()
public com.sapportals.wcm.util.events.IEventList getSupportedEvents()
throws com.sapportals.wcm.repository.ResourceException
com.sapportals.wcm.repository.ResourceException - Exception raised in failure situationpublic com.sapportals.wcm.repository.ISupportedOptionSet getSupportedOptions()
public IResource getTargetResource()
throws com.sapportals.wcm.repository.ResourceException
null . The method
will resolve relativ internal links and links to target resources which are
links.com.sapportals.wcm.repository.ResourceException -
public com.sapportals.wcm.util.uri.URL getTargetURL()
throws com.sapportals.wcm.repository.ResourceException
null if the resource is
not a link.null if the resource is
not a link.com.sapportals.wcm.repository.ResourceException -
public com.sapportals.wcm.repository.IContent getUnfilteredContent()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.AccessDeniedException
com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public com.sapportals.wcm.repository.IContent getUnfilteredContent(boolean handleExternalLink)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.AccessDeniedException
handleExternalLink - If true , try to read the content
from an external source, if the resource is a external link.com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public com.sapportals.wcm.repository.IVersionHistory getVersionHistory()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException
IVersionHistory is restricted to linear (non-branching) version histories,
therefore this method will fail if the version history is not linear.com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - public boolean isA(java.lang.Class classtest)
ResourceImpl class. This base class will always return false
.classtest - class to test for.
public boolean isCheckedOut()
throws com.sapportals.wcm.repository.ResourceException
true if this resource is currently checked out.true if this resource is currently checked out.com.sapportals.wcm.repository.ResourceException - public boolean isCollection()
true if this resource is a collectiontrue if this resource is a collectionpublic boolean isHidden()
public boolean isLocked()
throws com.sapportals.wcm.repository.ResourceException
true if this resource is locked.true if this resource is locked.com.sapportals.wcm.repository.ResourceException -
public boolean isLockedByMe()
throws com.sapportals.wcm.repository.ResourceException
true if this resource is locked by the current user in
the context.true if this resource is locked by the current user in
the context.com.sapportals.wcm.repository.ResourceException - public boolean isReadOnly()
public boolean isRevision()
true if this resource is a revision.true if this resource is a revision.
public boolean isVersioned()
throws com.sapportals.wcm.repository.ResourceException
true if versioning is enabled for this resource.true if versioning is enabled for this resource.com.sapportals.wcm.repository.ResourceException -
public com.sapportals.wcm.repository.ILockInfo lock()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public com.sapportals.wcm.repository.ILockInfo lock(com.sapportals.wcm.repository.ILockProperties lockProperties)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
lockProperties - The lock properties defining the scope, type and
time-out of the lock.com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public IResource move(com.sapportals.wcm.util.uri.RID destinationRID,
com.sapportals.wcm.repository.ICopyParameter param)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
destinationRID - The RID of the destination (includes the name). All
collections in the destination RID must already exists.param - The copy parameter object, can be nullcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public IResource move(com.sapportals.wcm.util.uri.RID destinationRID,
com.sapportals.wcm.repository.IPosition position,
com.sapportals.wcm.repository.ICopyParameter param)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
null .destinationRID - The RID of the destinationposition - The positioning informationparam - The copy parameter object, can be nullcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public void refreshLock(com.sapportals.wcm.repository.ILockInfo lockInfo)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
lockInfo - The LockInfocom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public void rename(java.lang.String newName)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
newName - The new namecom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public IResourceList search(com.sapportals.wcm.repository.IQueryExpression query,
int depth,
int maxResults,
boolean includeRevisions)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
query - The query specificationdepth - The search depth (0, 1, or Integer.MAX_VALUE)maxResults - The maximum number of resources that will be returnedincludeRevisions - when set to true , also descend into
version history (independantly of depth)com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - Exception raised in failure situationcom.sapportals.wcm.repository.AccessDeniedException - Exception raised in failure situation
public void setLinkType(com.sapportals.wcm.repository.LinkType linkType)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.AccessDeniedException
linkType - linkType to be setcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public void setProperties(com.sapportals.wcm.repository.IPropertyMap props)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException,
com.sapportals.wcm.repository.SetPropertiesException
props - The map with the properties.com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failedcom.sapportals.wcm.repository.SetPropertiesException - If the call was succesfull but some of
the properties could not be set or removed
public void setProperties(java.util.List propChangeList)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException,
com.sapportals.wcm.repository.SetPropertiesException
propChangeList - properties to be setcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failedcom.sapportals.wcm.repository.SetPropertiesException - If the call was succesfull but some of
the properties could not be set or removed
public void setProperty(com.sapportals.wcm.repository.IProperty prop)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
prop - The property to setcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public void setTargetURL(com.sapportals.wcm.util.uri.URL url)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.AccessDeniedException
url - targetURL to be setcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public void undoCheckOut()
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
com.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public void unlock(com.sapportals.wcm.repository.ILockInfo lockInfo)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
lockInfo - The LockInfocom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failed
public void update(com.sapportals.wcm.repository.IContent newContent,
com.sapportals.wcm.repository.IPropertyMap properties)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException,
com.sapportals.wcm.repository.SetPropertiesException
newContent - The new contentproperties - A map with propertiescom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failedcom.sapportals.wcm.repository.SetPropertiesException - If some properties could not be set or
removedContent
public void updateContent(com.sapportals.wcm.repository.IContent newContent)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.NotSupportedException,
com.sapportals.wcm.repository.AccessDeniedException
newContent - The new contentcom.sapportals.wcm.repository.ResourceException - com.sapportals.wcm.repository.NotSupportedException - com.sapportals.wcm.repository.AccessDeniedException - If authorization failedContent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||