|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModifiableContentMappingInfo
This interface allows to modify the content mapping information associated to
a given portal resource. The ModifiableContentMappingInfo
instance can be obtained for a specific portal resource using the
ContentMappingInfoController
interface. Any updates to the
ModifiableContentMappingInfo
instance are not persisted until
the ContentMappingInfoController
instance used to create a given
ModifiableContentMappingInfo
is committed by calling its
commit()
method.
ModifiableContentMappingInfo instances are not thread safe and cannot be
committed twice.
ContentMappingInfoController
Method Summary | |
---|---|
void |
addContentID(java.lang.String contentId,
boolean isDefault,
java.lang.String scope)
Adds a (non-delegating) mapping to a content object which is identified via its content ID. |
void |
addContentID(java.lang.String contentId,
boolean isDefault,
java.lang.String scope,
boolean isDelegating)
Adds a mapping to a content object which is identified via its content ID. |
void |
addContentID(java.lang.String contentId,
boolean isDefault,
java.lang.String scope,
boolean isDelegating,
Identifiable contentProxyResource)
Adds a mapping to a content object which is identified via its content ID. |
void |
addContentPath(java.lang.String contentPath,
boolean isDefault,
java.lang.String scope)
Adds a (non-delegating) mapping to a content object which is identified via its content path. |
void |
addContentPath(java.lang.String contentPath,
boolean isDefault,
java.lang.String scope,
boolean isDelegating)
Adds a mapping to a content object which is identified via its content path. |
void |
addContentPath(java.lang.String contentPath,
boolean isDefault,
java.lang.String scope,
boolean isDelegating,
Identifiable contentProxyResource)
Adds a mapping to a content object which is identified via its content path. |
void |
removeContentID(java.lang.String contentId)
Removes a content mapping identified by its content ID. |
void |
removeContentID(java.lang.String contentId,
Identifiable contentProxyResource)
Removes a content mapping identified by its content ID. |
void |
removeContentPath(java.lang.String contentPath)
Removes a content mapping identified by its content path. |
void |
removeContentPath(java.lang.String contentPath,
Identifiable contentProxyResource)
Removes a content mapping identified by its content path. |
void |
setDefaultByContentID(java.lang.String contentId,
boolean isDefault)
Sets the default content flag for an existing mapping identified by its content ID. |
void |
setDefaultByContentPath(java.lang.String contentPath,
boolean isDefault)
Sets the default content flag for an existing mapping identified by its content path. |
void |
setDelegatingByContentID(java.lang.String contentId,
boolean isDelegating)
Sets the access control delegation flag for an existing mapping identified by its content ID. |
void |
setDelegatingByContentID(java.lang.String contentId,
boolean isDelegating,
Identifiable contentProxyResource)
Sets the access control delegation flag for an existing mapping identified by its content ID. |
void |
setDelegatingByContentPath(java.lang.String contentPath,
boolean isDelegating)
Sets the access control delegation flag for an existing mapping identified by its content path. |
void |
setDelegatingByContentPath(java.lang.String contentPath,
boolean isDelegating,
Identifiable contentProxyResource)
Sets the access control delegation flag for an existing mapping identified by its content path. |
void |
setScopeByContentID(java.lang.String contentId,
java.lang.String scope)
Sets the scope for an existing mapping identified by its content ID. |
void |
setScopeByContentPath(java.lang.String contentPath,
java.lang.String scope)
Sets the scope for an existing mapping identified by its content path. |
Methods inherited from interface com.ibm.portal.services.contentmapping.ContentMappingInfo |
---|
getContentMappings, getContentMappings, getContentMappings, getContentMappings, getDefaultContentMapping, getDefaultContentMapping, getResourceOID, getScopes, getSystemContentMapping, getSystemContentMapping, isEmpty |
Method Detail |
---|
void addContentPath(java.lang.String contentPath, boolean isDefault, java.lang.String scope, boolean isDelegating, Identifiable contentProxyResource) throws AmbigousContentPathException, MissingAccessRightsException, ContentMappingDataBackendException, MalformedContentPathException, AmbigousContentMappingDefaultException
contentPath
- The path to the content resource.isDefault
- Indicates whether this mapping shall be the default mapping in
the given scopescope
- The scope for this mapping. This parameter may be
null
indicating the default scope.isDelegating
- Indicates whether this mapping is activated for access control
delegationcontentProxyResource
- The proxy resource guarding all content resources affected by
this content mapping. In Lotus Web Content Management, the
content proxy resource of a given resource is the web content
library containing the resource.
AmbigousContentPathException
- If the specified contentPath is already mapped
MissingAccessRightsException
- If the user is lacking access privileges to add this content
mapping
ContentMappingDataBackendException
- If the data backend access fails
MalformedContentPathException
- If the content path is malformed.
AmbigousContentMappingDefaultException
- If there exists another mapping flagged for being the default
mapping in the given scope.void addContentID(java.lang.String contentId, boolean isDefault, java.lang.String scope, boolean isDelegating, Identifiable contentProxyResource) throws AmbigousContentIDException, MissingAccessRightsException, ContentMappingDataBackendException, AmbigousContentMappingDefaultException
contentId
- The content IDisDefault
- Indicates whether this mapping shall be the default mapping in
the given scopescope
- The scope for this mapping. This parameter may be
null
indicating the default scope.isDelegating
- Indicates whether this mapping is activated for access control
delegationcontentProxyResource
- The proxy resource guarding all content resources affected by
this content mapping. In Lotus Web Content Management, the
content proxy resource of a given resource is the web content
library containing the resource.
AmbigousContentPathException
- If the specified contentPath is already mapped
MissingAccessRightsException
- If the user is lacking access privileges to add this content
mapping
ContentMappingDataBackendException
- If the data backend access fails
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
AmbigousContentMappingDefaultException
- If there exists another mapping flagged for being the default
mapping in the given scope.
AmbigousContentIDException
void addContentPath(java.lang.String contentPath, boolean isDefault, java.lang.String scope, boolean isDelegating) throws AmbigousContentPathException, MissingAccessRightsException, ContentMappingDataBackendException, MalformedContentPathException, AmbigousContentMappingDefaultException
contentPath
- The content Path.isDefault
- Indicates whether this mapping shall be the default mapping in
the given scopescope
- The scope for this mapping. This parameter may be
null
indicating the default scope.isDelegating
- Indicates whether this mapping is activated for access control
delegation
AmbigousContentPathException
- If the specified contentPath is already mapped
MissingAccessRightsException
- If the user is lacking access privileges to add this content
mapping
ContentMappingDataBackendException
- If the data backend access fails
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
AmbigousContentMappingDefaultException
- If there exists another mapping flagged for being the default
mapping in the given scope.void addContentID(java.lang.String contentId, boolean isDefault, java.lang.String scope, boolean isDelegating) throws AmbigousContentIDException, MissingAccessRightsException, ContentMappingDataBackendException, AmbigousContentMappingDefaultException
contentId
- The content IDisDefault
- Indicates whether this mapping shall be the default mapping in
the given scopescope
- The scope for this mapping. This parameter may be
null
indicating the default scope.isDelegating
- Indicates whether this mapping is activated for access control
delegation
AmbigousContentPathException
- If the specified contentPath is already mapped
MissingAccessRightsException
- If the user is lacking access privileges to add this content
mapping
ContentMappingDataBackendException
- If the data backend access fails
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
AmbigousContentMappingDefaultException
- If there exists another mapping flagged for being the default
mapping in the given scope.
AmbigousContentIDException
void addContentPath(java.lang.String contentPath, boolean isDefault, java.lang.String scope) throws AmbigousContentPathException, MissingAccessRightsException, ContentMappingDataBackendException, MalformedContentPathException, AmbigousContentMappingDefaultException
contentPath
- The content Path.isDefault
- Indicates whether this mapping shall be the default mapping in
the given scopescope
- The scope for this mapping. This parameter may be
null
indicating the default scope.
AmbigousContentPathException
- If the specified contentPath is already mapped
MissingAccessRightsException
- If the user is lacking access privileges to add this content
mapping
ContentMappingDataBackendException
- If the data backend access fails
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
AmbigousContentMappingDefaultException
- If there exists another mapping flagged for being the default
mapping in the given scope.void addContentID(java.lang.String contentId, boolean isDefault, java.lang.String scope) throws AmbigousContentIDException, MissingAccessRightsException, ContentMappingDataBackendException, AmbigousContentMappingDefaultException
contentId
- The content IDisDefault
- Indicates whether this mapping shall be the default mapping in
the given scopescope
- The scope for this mapping. This parameter may be
null
indicating the default scope.
AmbigousContentPathException
- If the specified contentPath is already mapped
MissingAccessRightsException
- If the user is lacking access privileges to add this content
mapping
ContentMappingDataBackendException
- If the data backend access fails
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
AmbigousContentMappingDefaultException
- If there exists another mapping flagged for being the default
mapping in the given scope.
AmbigousContentIDException
void setScopeByContentPath(java.lang.String contentPath, java.lang.String scope) throws ContentMappingNotFoundException, MalformedContentPathException
contentPath
- The content path identifying the mapping to be updated.scope
- The new scope value. This parameter may be null
indicating the default scope.
ContentMappingNotFoundException
- If the content could not be found
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")void setScopeByContentID(java.lang.String contentId, java.lang.String scope) throws ContentMappingNotFoundException
contentId
- The content ID identifying the mapping to be updatedscope
- The new scope value. This parameter may be null
indicating the default scope.
ContentMappingNotFoundException
- If the content could not be found
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")void setDefaultByContentPath(java.lang.String contentPath, boolean isDefault) throws ContentMappingNotFoundException, MalformedContentPathException, AmbigousContentMappingDefaultException
contentPath
- The content path identifying the mapping to be updated.isDefault
- The new flag value
ContentMappingNotFoundException
- If
the content could not be found
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
AmbigousContentMappingDefaultException
void setDefaultByContentID(java.lang.String contentId, boolean isDefault) throws ContentMappingNotFoundException, AmbigousContentMappingDefaultException
contentId
- The content ID identifying the mapping to be updatedisDefault
- The new flag value
ContentMappingNotFoundException
- If
the content could not be found
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
AmbigousContentMappingDefaultException
void setDelegatingByContentPath(java.lang.String contentPath, boolean isDelegating, Identifiable contentProxyResource) throws ContentMappingNotFoundException, MissingAccessRightsException, MalformedContentPathException, ContentMappingDataBackendException
contentPath
- The content path identifying the mapping to be updated.isDelegating
- The new flag valuecontentProxyResource
- The proxy resource guarding all content resources affected by
this content mapping. In Lotus Web Content Management, the
content proxy resource of a given resource is the web content
library containing the resource.
ContentMappingNotFoundException
- If
the content could not be found
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
ContentMappingDataBackendException
- If the data backend access fails
MissingAccessRightsException
void setDelegatingByContentID(java.lang.String contentId, boolean isDelegating, Identifiable contentProxyResource) throws ContentMappingNotFoundException, MissingAccessRightsException, ContentMappingDataBackendException
contentId
- The content ID identifying the mapping to be updatedisDelegating
- The new flag valuecontentProxyResource
- The proxy resource guarding all content resources affected by
this content mapping. In Lotus Web Content Management, the
content proxy resource of a given resource is the web content
library containing the resource.
ContentMappingNotFoundException
- If
the content could not be found
ContentMappingDataBackendException
- If the data backend access fails
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
MissingAccessRightsException
void setDelegatingByContentPath(java.lang.String contentPath, boolean isDelegating) throws ContentMappingNotFoundException, MissingAccessRightsException, MalformedContentPathException, ContentMappingDataBackendException
contentPath
- The content path identifying the mapping to be updated.isDelegating
- The new flag value
ContentMappingNotFoundException
- If
the content could not be found
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
ContentMappingDataBackendException
- If the data backend access fails
MissingAccessRightsException
void setDelegatingByContentID(java.lang.String contentId, boolean isDelegating) throws ContentMappingNotFoundException, MissingAccessRightsException, ContentMappingDataBackendException
contentId
- The content ID identifying the mapping to be updatedisDelegating
- The new flag value
ContentMappingNotFoundException
- If the content could not be found
ContentMappingDataBackendException
- If the data backend access fails
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
MissingAccessRightsException
void removeContentPath(java.lang.String contentPath, Identifiable contentProxyResource) throws ContentMappingNotFoundException, MalformedContentPathException, MissingAccessRightsException, ContentMappingDataBackendException, ContentMappingModificationNotAllowedException
contentPath
- The content path identifying the mapping to be removed.contentProxyResource
- The proxy resource guarding all content resources affected by
this content mapping. In Lotus Web Content Management, the
content proxy resource of a given resource is the web content
library containing the resource. This parameter is only
required if mapping to be removed is enabled for delegation.
ContentMappingNotFoundException
- If the content could not be found
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
ContentMappingDataBackendException
- If the data backend access fails
MissingAccessRightsException
- If the user is lacking access privileges to add this content
mapping
ContentMappingModificationNotAllowedException
- If the user tried to modify a content mapping, but was not
allowed to (e.g. removing a system content mapping)void removeContentID(java.lang.String contentId, Identifiable contentProxyResource) throws ContentMappingNotFoundException, MissingAccessRightsException, ContentMappingDataBackendException, ContentMappingModificationNotAllowedException
contentId
- The content ID identifying the mapping to be removedcontentProxyResource
- The proxy resource guarding all content resources affected by
this content mapping. In Lotus Web Content Management, the
content proxy resource of a given resource is the web content
library containing the resource. This parameter is only
required if mapping to be removed is enabled for delegation.
ContentMappingNotFoundException
- If the content could not be found
ContentMappingDataBackendException
- If the data backend access fails
MissingAccessRightsException
- If the user is lacking access privileges to add this content
mapping
ContentMappingModificationNotAllowedException
- If the user tried to modify a content mapping, but was not
allowed to (e.g. removing a system content mapping)
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")void removeContentPath(java.lang.String contentPath) throws ContentMappingNotFoundException, MalformedContentPathException, MissingAccessRightsException, ContentMappingDataBackendException, ContentMappingModificationNotAllowedException
contentPath
- The content path identifying the mapping to be removed.
ContentMappingNotFoundException
- If the content could not be found
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
ContentMappingDataBackendException
- If the data backend access fails
MissingAccessRightsException
- If the user is lacking access privileges to add this content
mapping
ContentMappingModificationNotAllowedException
- If the user tried to modify a content mapping, but was not
allowed to (e.g. removing a system content mapping)void removeContentID(java.lang.String contentId) throws ContentMappingNotFoundException, MissingAccessRightsException, ContentMappingDataBackendException, ContentMappingModificationNotAllowedException
contentId
- The content ID identifying the mapping to be removed
ContentMappingNotFoundException
- If the content could not be found
ContentMappingDataBackendException
- If the data backend access fails
MissingAccessRightsException
- If the user is lacking access privileges to add this content
mapping
ContentMappingModificationNotAllowedException
- If the user tried to modify a content mapping, but was not
allowed to (e.g. removing a system content mapping)
MalformedContentPathException
- If the content path is malformed. (content paths must start
with "/" but must not end with a "/")
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |