public enum AccessControlHandling extends java.lang.Enum<AccessControlHandling>
AccessControlHandling
defines the behavior when importing
access control nodes.Enum Constant and Description |
---|
CLEAR
Clears all access control on the target system.
|
IGNORE
Ignores the packaged access control and leaves the target unchanged.
|
MERGE
Merge access control provided with the package with the one in the
content by replacing the access control entries of corresponding
principals (i.e.
|
MERGE_PRESERVE
Merge access control in the content with the one provided with the
package by adding the access control entries of principals not present in the
content (i.e.
|
OVERWRITE
Applies the access control provided with the package to the target.
|
Modifier and Type | Method and Description |
---|---|
static AccessControlHandling |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccessControlHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessControlHandling IGNORE
public static final AccessControlHandling OVERWRITE
public static final AccessControlHandling MERGE
Example:
Content ACL:
everyone, deny, jcr:all bob, allow, jcr:read bob, allow, jcr:writePackage ACL:
bob, deny, jcr:all alice, allow, jcr:readResult ACL:
everyone, deny, jcr:all bob, deny, jcr:all alice, allow, jcr:read
public static final AccessControlHandling MERGE_PRESERVE
Example:
Content ACL:
everyone, deny, jcr:all bob, allow, jcr:read bob, allow, jcr:writePackage ACL:
bob, deny, jcr:all alice, allow, jcr:readResult ACL:
everyone, deny, jcr:all bob, allow, jcr:read bob, allow, jcr:write alice, allow, jcr:read
public static final AccessControlHandling CLEAR
public static AccessControlHandling[] values()
for (AccessControlHandling c : AccessControlHandling.values()) System.out.println(c);
public static AccessControlHandling valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"