com.atlassian.confluence.api.model.people
Class SubjectType

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

@ExperimentalApi
public class SubjectType
extends Object
implements ApiEnum

Though SubjectType.USER and SubjectType.GROUP are singleton, do NOT assume you can compare an arbitrary SubjectType with one of those via an equality (==) check. Always use .equals(). (you should be anyway)

Since:
5.7

Nested Class Summary
static class SubjectType.Expansions
          Represents the available Expansions when dealing with a Map>
 
Field Summary
static SubjectType GROUP
           
static SubjectType USER
           
static Set<SubjectType> VALUES
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String serialise()
           
 String toString()
           
static SubjectType valueOf(String name)
           
static SubjectType[] values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

USER

public static final SubjectType USER

GROUP

public static final SubjectType GROUP

VALUES

public static final Set<SubjectType> VALUES
Method Detail

valueOf

public static SubjectType valueOf(String name)

values

public static SubjectType[] values()

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode 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.