public class AclPrinter extends Object
E.g.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT
Using this parameter everything is set to default.
|
static int |
ENTRY_DETAILED
Using this parameter the sort index of an Entry is printed
in addition to the principal/permission pairs.
|
static int |
PRINCIPAL_UNIQUEID
Using this parameter the UniqueID of principals is printed instead of the Displayname (default)
|
static int |
PRINT_LOCKING_USER
Using this parameter a potential locking user of the ACL is printed
in addition to the Entries and Owners.
|
static int |
PRINT_RESOURCE_RID
Using this parameter the Path of the Resource corresponding
to the ACL is printed in addition to the Entries and Owners.
|
Constructor and Description |
---|
AclPrinter() |
Modifier and Type | Method and Description |
---|---|
IResourceAcl |
getAcl(IResource resource)
Returns the (direct) ACL of a resource or null if no ACL is assigned for this resource.
|
String |
printAcl(IResourceAcl acl,
int parameterBits)
Returns a String representing the specified ACL in the following schema:
ACL[RID:/documents/Test, LOCKINGUSER:principal, ENTRIES:{<principal:permission, 1>, <principal:permission, 2>}, OWNERS:{principal, principal}] The schema can be modified via the bit constants ENTRY_DETAILED , PRINCIPAL_UNIQUEID , PRINT_LOCKING_USER and PRINT_RESOURCE_RID . |
String |
printAclEntries(IResourceAclEntryList entries,
int parameterBits)
Returns a String representing the list of ACL Entries in the following schema:
ENTRIES:{<principal:permission, 1>, <principal:permission, 2>} The schema can be modified via the bit constants ENTRY_DETAILED and PRINCIPAL_UNIQUEID . |
String |
printAclOwners(List owners,
int parameterBits)
Returns a String representing the list of ACL Owners in the following schema:
OWNERS:{principal, principal} The schema can be modified via the bit constant PRINCIPAL_UNIQUEID . |
public static final int DEFAULT
public static final int PRINCIPAL_UNIQUEID
public static final int ENTRY_DETAILED
public static final int PRINT_LOCKING_USER
public static final int PRINT_RESOURCE_RID
public IResourceAcl getAcl(IResource resource) throws ResourceException, AclPersistenceException
resource
- ResourceException
AclPersistenceException
public String printAcl(IResourceAcl acl, int parameterBits) throws AclException
ENTRY_DETAILED
, PRINCIPAL_UNIQUEID
, PRINT_LOCKING_USER
and PRINT_RESOURCE_RID
.acl
- The ACLparameterBits
- Parameter constant bits combined with | operator. E.g. (PRINT_RESOURCE_RID|PRINCIPAL_UNIQUEID|ENTRY_DETAILED)AclException
public String printAclEntries(IResourceAclEntryList entries, int parameterBits) throws AclException
ENTRY_DETAILED
and PRINCIPAL_UNIQUEID
.entries
- List of ACL EntriesparameterBits
- Parameter constant bits combined with | operator. E.g. (PRINCIPAL_UNIQUEID|ENTRY_DETAILED)AclException
public String printAclOwners(List owners, int parameterBits) throws AclException
PRINCIPAL_UNIQUEID
.owners
- List of ACL OwnersparameterBits
- Parameter constant bits combined with | operator. E.g. (PRINT_RESOURCE_RID|PRINCIPAL_UNIQUEID|ENTRY_DETAILED)AclException
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
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