com.stratelia.silverpeas.peasCore
Enum URLManager.Permalink

java.lang.Object
  extended by java.lang.Enum<URLManager.Permalink>
      extended by com.stratelia.silverpeas.peasCore.URLManager.Permalink
All Implemented Interfaces:
Serializable, Comparable<URLManager.Permalink>
Enclosing class:
URLManager

public static enum URLManager.Permalink
extends Enum<URLManager.Permalink>


Enum Constant Summary
Component
           
Document
           
File
           
Folder
           
ForumMessage
           
Media
           
Publication
           
Question
           
Space
           
Survey
           
Version
           
 
Method Summary
static URLManager.Permalink fromType(int type)
           
 int getType()
           
 String getURLPrefix()
           
static boolean isCompliant(String url)
           
static URLManager.Permalink valueOf(String name)
          Returns the enum constant of this type with the specified name.
static URLManager.Permalink[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Publication

public static final URLManager.Permalink Publication

Space

public static final URLManager.Permalink Space

Component

public static final URLManager.Permalink Component

Folder

public static final URLManager.Permalink Folder

File

public static final URLManager.Permalink File

Document

public static final URLManager.Permalink Document

Version

public static final URLManager.Permalink Version

Survey

public static final URLManager.Permalink Survey

Question

public static final URLManager.Permalink Question

ForumMessage

public static final URLManager.Permalink ForumMessage

Media

public static final URLManager.Permalink Media
Method Detail

values

public static URLManager.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 (URLManager.Permalink c : URLManager.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 URLManager.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 name
NullPointerException - if the argument is null

getType

public int getType()

getURLPrefix

public String getURLPrefix()

fromType

public static URLManager.Permalink fromType(int type)

isCompliant

public static boolean isCompliant(String url)


Copyright © 2016 Silverpeas. All Rights Reserved.