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 NamespaceGLOBALstatic NamespacePERSONALstatic NamespaceSYSTEMstatic NamespaceTEAMstatic StringVISIBILITY_OWNERLabels in this namespace are only visible to that label's ownerstatic StringVISIBILITY_PUBLICLabels in this namespace are visible to anyone who can see the labeled contentstatic StringVISIBILITY_SYSTEMLabels 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 intcompareTo(Namespace o)booleanequals(Object o)static NamespacegetNamespace(String prefix)StringgetPrefix()StringgetVisibility()inthashCode()static booleanisGlobal(Label l)static booleanisPersonal(Label l)static booleanisTeam(Label l)StringtoString()
-
-
-
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:
compareToin interfaceComparable<Namespace>
-
getPrefix
public String getPrefix()
-
getVisibility
public String getVisibility()
-
-