Package org.silverpeas.core.util
Enum URLUtil.Permalink
- java.lang.Object
-
- java.lang.Enum<URLUtil.Permalink>
-
- org.silverpeas.core.util.URLUtil.Permalink
-
- All Implemented Interfaces:
Serializable
,Comparable<URLUtil.Permalink>
- Enclosing class:
- URLUtil
public static enum URLUtil.Permalink extends Enum<URLUtil.Permalink>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPONENT
DOCUMENT
FILE
FOLDER
FORUM_MESSAGE
MEDIA
NEWSLETTER
PUBLICATION
QUESTION
SPACE
SURVEY
VERSION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static URLUtil.Permalink
fromType(int type)
int
getType()
String
getURLPrefix()
static URLUtil.Permalink
valueOf(String name)
Returns the enum constant of this type with the specified name.static URLUtil.Permalink[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLICATION
public static final URLUtil.Permalink PUBLICATION
-
SPACE
public static final URLUtil.Permalink SPACE
-
COMPONENT
public static final URLUtil.Permalink COMPONENT
-
FOLDER
public static final URLUtil.Permalink FOLDER
-
FILE
public static final URLUtil.Permalink FILE
-
DOCUMENT
public static final URLUtil.Permalink DOCUMENT
-
VERSION
public static final URLUtil.Permalink VERSION
-
SURVEY
public static final URLUtil.Permalink SURVEY
-
QUESTION
public static final URLUtil.Permalink QUESTION
-
FORUM_MESSAGE
public static final URLUtil.Permalink FORUM_MESSAGE
-
MEDIA
public static final URLUtil.Permalink MEDIA
-
NEWSLETTER
public static final URLUtil.Permalink NEWSLETTER
-
-
Method Detail
-
values
public static URLUtil.Permalink[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (URLUtil.Permalink c : URLUtil.Permalink.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static URLUtil.Permalink valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromType
public static URLUtil.Permalink fromType(int type)
-
getType
public int getType()
-
getURLPrefix
public String getURLPrefix()
-
-