lumis.portal.presentation.perspective
Enum Perspective

Package class diagram package Perspective
java.lang.Object
  extended by java.lang.Enum<Perspective>
      extended by lumis.portal.presentation.perspective.Perspective
All Implemented Interfaces:
Serializable, Comparable<Perspective>

public enum Perspective
extends Enum<Perspective>
implements Serializable

Represents the PortalModes of each Perspective.

Since:
6.0.0

Enum Constant Summary
ADMIN
          Represents the Administration Portal Mode.
PUBLISHER
          Represents the mode where users (non-administration) can interact with the portal to publish or personalize the portal.
USER
          Represents the user mode, or default mode.
 
Field Summary
static Class<? extends org.apache.wicket.Component> renderComponentClass
           
 
Method Summary
 Class<? extends AbstractLayoutFileMarkupFilter> getMarkupFilterClass()
          Returns markup filter for parser to use to render page.
 Set<IPortalMode> getModes()
          Returns all commands associated to this Perspective.
 String getName()
          Returns the Perspective's name key.
static Perspective getPerspectiveFromValue(int perspective)
          Returns a given perspective.
static IPortalMode getPortalModeFromCode(int modeCode)
          Returns a given portal mode from a mode id.
 int value()
          Returns the integer value that represents the current Perspective.
static Perspective valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Perspective[] 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

USER

public static final Perspective USER
Represents the user mode, or default mode. This is the mode the users will usually be in.

Since:
6.0.0

PUBLISHER

public static final Perspective PUBLISHER
Represents the mode where users (non-administration) can interact with the portal to publish or personalize the portal.

Since:
6.0.0

ADMIN

public static final Perspective ADMIN
Represents the Administration Portal Mode.

Since:
6.0.0
Field Detail

renderComponentClass

public static Class<? extends org.apache.wicket.Component> renderComponentClass
Since:
6.0.0
Method Detail

values

public static Perspective[] 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 (Perspective c : Perspective.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Perspective 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

getModes

public Set<IPortalMode> getModes()
Returns all commands associated to this Perspective.

Returns:
all commands associated to this Perspective
Since:
6.0.0

value

public int value()
Returns the integer value that represents the current Perspective.

Returns:
the integer value that represents the current Perspective.
Since:
6.0.0

getName

public String getName()
Returns the Perspective's name key.

Returns:
the Perspective's name key.
Since:
6.0.0

getMarkupFilterClass

public Class<? extends AbstractLayoutFileMarkupFilter> getMarkupFilterClass()
Returns markup filter for parser to use to render page.

Returns:
markup filter for parser to use to render page.
Since:
6.0.0

getPerspectiveFromValue

public static Perspective getPerspectiveFromValue(int perspective)
Returns a given perspective.

Parameters:
perspective - the id perspective to be found
Returns:
a given perspective.
Since:
6.0.0

getPortalModeFromCode

public static IPortalMode getPortalModeFromCode(int modeCode)
Returns a given portal mode from a mode id.

Parameters:
modeCode - the mode id
Returns:
the found portal mode
Since:
6.0.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.