Package com.atlassian.confluence.labels
Class Namespace
- java.lang.Object
-
- com.atlassian.confluence.labels.Namespace
-
- All Implemented Interfaces:
Serializable
,Comparable<Namespace>
public class Namespace extends Object implements Serializable, Comparable<Namespace>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Namespace
GLOBAL
static Namespace
PERSONAL
static Namespace
SYSTEM
static Namespace
TEAM
static String
VISIBILITY_OWNER
Labels in this namespace are only visible to that label's ownerstatic String
VISIBILITY_PUBLIC
Labels in this namespace are visible to anyone who can see the labeled contentstatic String
VISIBILITY_SYSTEM
Labels in this namespace are set and removed by the system, and are not shown in the UI
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Namespace o)
boolean
equals(Object o)
static Namespace
getNamespace(String prefix)
String
getPrefix()
String
getVisibility()
int
hashCode()
static boolean
isGlobal(Label l)
static boolean
isPersonal(Label l)
static boolean
isTeam(Label l)
String
toString()
-
-
-
Field Detail
-
VISIBILITY_PUBLIC
public static final String VISIBILITY_PUBLIC
Labels in this namespace are visible to anyone who can see the labeled content- See Also:
- Constant Field Values
-
VISIBILITY_OWNER
public static final String VISIBILITY_OWNER
Labels in this namespace are only visible to that label's owner- See Also:
- Constant Field Values
-
VISIBILITY_SYSTEM
public static final String VISIBILITY_SYSTEM
Labels in this namespace are set and removed by the system, and are not shown in the UI- See Also:
- Constant Field Values
-
PERSONAL
public static final Namespace PERSONAL
-
TEAM
public static final Namespace TEAM
-
GLOBAL
public static final Namespace GLOBAL
-
SYSTEM
public static final Namespace SYSTEM
-
-
Method Detail
-
isPersonal
public static boolean isPersonal(Label l)
-
isTeam
public static boolean isTeam(Label l)
-
isGlobal
public static boolean isGlobal(Label l)
-
compareTo
public int compareTo(Namespace o)
- Specified by:
compareTo
in interfaceComparable<Namespace>
-
getPrefix
public String getPrefix()
-
getVisibility
public String getVisibility()
-
-