|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.util.acl.AclPrinter
public class AclPrinter
This Util class pretty-prints ACLs or parts of ACLs.
ACLs are returned as String in the following schema:
ACL[RID:/documents/Test, LOCKINGUSER:principal, ENTRIES:{<principal:permission, 1>, <principal:permission, 2>}, OWNERS:{principal, principal}]
The schema may be modified by combining the bit constants with the | operator.
E.g.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
AclPrinter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public AclPrinter()
| Method Detail |
|---|
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
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||