Class TargetType
- java.lang.Object
-
- com.atlassian.confluence.api.model.BaseApiEnum
-
- com.atlassian.confluence.api.model.permissions.TargetType
-
- All Implemented Interfaces:
ApiEnum
public final class TargetType extends BaseApiEnum
The type of object subject to an operation, for permissions checks.- Since:
- 5.8
- See Also:
OperationService
,ContentType
-
-
Field Summary
Fields Modifier and Type Field Description static TargetType
ATTACHMENT
static TargetType
BLOG_POST
static List<TargetType>
BUILT_IN
static TargetType
COMMENT
static TargetType
PAGE
static TargetType
SPACE
-
Fields inherited from class com.atlassian.confluence.api.model.BaseApiEnum
value
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull String
getType()
static TargetType
valueOf(@NonNull ContentType type)
Return theTargetType
for the givenContentType
static TargetType
valueOf(@NonNull String type)
Return theTargetType
for the given type string.static Set<TargetType>
valuesOf(@NonNull Iterable<String> types)
Return theTargetType
s for the given set of type strings.
-
-
-
Field Detail
-
PAGE
public static final TargetType PAGE
-
BLOG_POST
public static final TargetType BLOG_POST
-
COMMENT
public static final TargetType COMMENT
-
ATTACHMENT
public static final TargetType ATTACHMENT
-
SPACE
public static final TargetType SPACE
-
BUILT_IN
public static final List<TargetType> BUILT_IN
-
-
Method Detail
-
valueOf
public static TargetType valueOf(@NonNull String type)
Return theTargetType
for the given type string.
-
valueOf
public static TargetType valueOf(@NonNull ContentType type)
Return theTargetType
for the givenContentType
-
valuesOf
public static Set<TargetType> valuesOf(@NonNull Iterable<String> types)
Return theTargetType
s for the given set of type strings.
-
getType
public @NonNull String getType()
-
-