Enum SpacePermissionSubjectType
- java.lang.Object
-
- java.lang.Enum<SpacePermissionSubjectType>
-
- com.atlassian.confluence.impl.security.access.SpacePermissionSubjectType
-
- All Implemented Interfaces:
Serializable
,Comparable<SpacePermissionSubjectType>
@Internal public enum SpacePermissionSubjectType extends Enum<SpacePermissionSubjectType>
A space permission subject type grants permissions to a user. A user may receive permissions from a number of different "subject types".
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_AUTHENTICATED_USERS
Represents space permissions granted to all authenticated users.ANONYMOUS
Represents space permissions granted to anonymous users.GROUP
Represents space permissions received via group membership, where a group is associated with the permission.USER
Represents space permissions received where the user is directly associated with the permission.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpacePermissionSubjectType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SpacePermissionSubjectType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GROUP
public static final SpacePermissionSubjectType GROUP
Represents space permissions received via group membership, where a group is associated with the permission. SeeSpacePermission.isGroupPermission()
.
-
USER
public static final SpacePermissionSubjectType USER
Represents space permissions received where the user is directly associated with the permission. SeeSpacePermission.isUserPermission()
.
-
ALL_AUTHENTICATED_USERS
public static final SpacePermissionSubjectType ALL_AUTHENTICATED_USERS
Represents space permissions granted to all authenticated users. SeeSpacePermission.isAuthenticatedUsersPermission()
.
-
ANONYMOUS
public static final SpacePermissionSubjectType ANONYMOUS
Represents space permissions granted to anonymous users. SeeSpacePermission.isAnonymousPermission()
.
-
-
Method Detail
-
values
public static SpacePermissionSubjectType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpacePermissionSubjectType c : SpacePermissionSubjectType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpacePermissionSubjectType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-