com.atlassian.confluence.api.model.permissions
Class OperationKey

java.lang.Object
  extended by com.atlassian.confluence.api.model.permissions.OperationKey
All Implemented Interfaces:
ApiEnum

@ExperimentalApi
public final class OperationKey
extends Object
implements ApiEnum

An OperationKey is used to identify operations that can be performed on Targets. OperationKeys have an underlying name, which must be unique in the system. For consistency, custom operation keys should be lower + underscore cased. These names are referenced directly in operation REST APIs.

Since:
5.7

Field Summary
static List<OperationKey> BUILT_IN
           
static OperationKey COPY
           
static OperationKey CREATE
           
static OperationKey DELETE
           
static OperationKey EXPORT
           
static OperationKey MOVE
           
static OperationKey PURGE
           
static OperationKey PURGE_VERSION
           
static OperationKey READ
           
static OperationKey UPDATE
           
static OperationKey USE
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 int hashCode()
           
 String serialise()
           
 String toString()
           
static OperationKey valueOf(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

USE

public static final OperationKey USE

CREATE

public static final OperationKey CREATE

READ

public static final OperationKey READ

UPDATE

public static final OperationKey UPDATE

DELETE

public static final OperationKey DELETE

COPY

public static final OperationKey COPY

MOVE

public static final OperationKey MOVE

EXPORT

public static final OperationKey EXPORT

PURGE

public static final OperationKey PURGE

PURGE_VERSION

public static final OperationKey PURGE_VERSION

BUILT_IN

public static final List<OperationKey> BUILT_IN
Method Detail

valueOf

public static OperationKey valueOf(String name)

getName

public String getName()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

serialise

public String serialise()
Specified by:
serialise in interface ApiEnum
Returns:
the JSON-serialised version of this enum.


Copyright © 2003–2015 Atlassian. All rights reserved.