public final class ResourceCommandAmalgamation extends Object
Constructor and Description |
---|
ResourceCommandAmalgamation() |
Modifier and Type | Method and Description |
---|---|
IResource |
getParentCollection(IResource resource) |
RidSet |
getShoppingBasketList(IResourceContext context) |
boolean |
isAccessible(IResource resource,
String permission)
Checks is the resource is accessible.
|
boolean |
isAccessibleNative(IResource resource,
String permission)
Checks is the resource is accessible
-
true , if the resource is accessible - true , if an exception occurs while checking - false , if the resource not accessible |
boolean |
isCheckedOut(IResource resource)
Checks is the resource is checked out
-
true , if the resource is checked out by this user - false , if an exception occurs while checking - resource is not checked out- false , if the resource not checked out at all |
boolean |
isLocked(IResource res)
Checks is the resource is locked without checking if the user is a lock breaker
-
true , if the resource is locked by me or another user - false , if an exception occurs while checking - resource not locked - false , if the resource is not locked by anyone |
boolean |
isLockedByMe(IResource res)
Checks is the resource is locked by this user
-
true , if the resource is locked by this user - false , if an exception occurs while checking - resource is not locked by me- false , if the resource is locked by another or not locked at all |
boolean |
isLockedByMeAndSupported(IResource resource)
checks if the resource is locked by me and if create resource, create collection
and locking options are supported
|
boolean |
isLockedForUser(IResource res)
Checks if the resource is locked for this user without checking if the user is a lock breaker
-
true , if the resource is locked by another user - false , if an exception occurs while checking - resource is not locked - false , if the resource is locked by me or not locked at all |
boolean |
isLockedUnbreakable(IResource res)
checks, if the resource is locked and cannot be unlocked by the current user.
|
boolean |
isNotVersionedOrCheckedOutByMe(IResource resource) |
boolean |
isRevision(IResource resource)
Checks is the resource is revisioned
-
true , if the resource has revisions - false , if an exception occurs while checking - false , if the resource does not have revisions |
boolean |
isSupported(IResource resource,
SupportedOption option)
Checks is the option is supported for this resource
-
true , if the option is supported or if the result could not be retrieved- false , otherwise |
boolean |
isVersioned(IResource resource)
Checks if the resource is versioned
-
true , if the resource is versioned and versioning is supported - false , otherwise or if an exception occurs while checking |
public final boolean isAccessible(IResource resource, String permission) throws WcmException
isAccessibleNative
,
a mapping of requested permissions is done first. Mapping looks as follows and is subject to change isAccessibleNative method
true
, if the resource is accessible true
, if an exception occurs while checking false
, if the resource not accessibleresource
- WcmException
public final boolean isAccessibleNative(IResource resource, String permission) throws WcmException
true
, if the resource is accessible true
, if an exception occurs while checking false
, if the resource not accessibleresource
- WcmException
public final boolean isRevision(IResource resource) throws WcmException
true
, if the resource has revisions false
, if an exception occurs while checking false
, if the resource does not have revisionsresource
- WcmException
public final boolean isSupported(IResource resource, SupportedOption option) throws WcmException
true
, if the option is supported or if the result could not be retrievedfalse
, otherwiseresource
- option
- WcmException
public final boolean isVersioned(IResource resource) throws WcmException
true
, if the resource is versioned and versioning is supported false
, otherwise or if an exception occurs while checkingresource
- WcmException
public final boolean isCheckedOut(IResource resource) throws WcmException
true
, if the resource is checked out by this user false
, if an exception occurs while checking - resource is not checked outfalse
, if the resource not checked out at allresource
- WcmException
public final boolean isNotVersionedOrCheckedOutByMe(IResource resource) throws WcmException
WcmException
public final boolean isLockedByMe(IResource res)
true
, if the resource is locked by this user false
, if an exception occurs while checking - resource is not locked by mefalse
, if the resource is locked by another or not locked at allres
- the resource to be checkedpublic final boolean isLocked(IResource res)
true
, if the resource is locked by me or another user false
, if an exception occurs while checking - resource not locked false
, if the resource is not locked by anyoneres
- the resource to be checkedpublic final boolean isLockedForUser(IResource res)
true
, if the resource is locked by another user false
, if an exception occurs while checking - resource is not locked false
, if the resource is locked by me or not locked at allres
- the resource to be checkedpublic final boolean isLockedUnbreakable(IResource res)
true
, if the resource is locked by another user and the user is not a lock-breaker true
, if an exception occurs while checking - this will be locked false
otherwiseres
- the resource to check the lock-state for, must not be null
public final boolean isLockedByMeAndSupported(IResource resource) throws WcmException
resource
- WcmException
public RidSet getShoppingBasketList(IResourceContext context)
context
- - the context of the current request, must not be null
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice