lumis.portal.presentation.perspective
Class DefaultPortalMode

Package class diagram package DefaultPortalMode
java.lang.Object
  extended by lumis.portal.presentation.perspective.DefaultPortalMode
All Implemented Interfaces:
Serializable, IPortalMode, IPortalModeSPI

public class DefaultPortalMode
extends Object
implements IPortalModeSPI

Default implementation for IPortalMode.

Since:
6.0.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface lumis.portal.presentation.perspective.IPortalMode
MODE_ADMINISTRATION, MODE_IN_CONTEXT_EDIT, MODE_PERSONALIZATION, MODE_VIEW
 
Constructor Summary
DefaultPortalMode(int id, String name, String description, IPermissionProvider permissionProvider, Class<? extends HTMLFragmentComponent> renderComponentClass, String[] attributeNames)
          Constructor for the class.
 
Method Summary
 Set<String> getAttributeNames()
          Returns the set of attribute names for the current PortalMode.
 String getDescription()
          Returns the description of the current PortalMode.
 int getId()
          Returns the id of the current PortalMode.
 String getName()
          Returns the name of the current PortalMode.
 IPermissionProvider getPermissionProvider()
          Returns the permission provider of the current PortalMode.
 Perspective getPerspective()
          Returns the name of the current PortalMode.
 Class<? extends HTMLFragmentComponent> getRenderComponentClass()
          Returns the render component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPortalMode

public DefaultPortalMode(int id,
                         String name,
                         String description,
                         IPermissionProvider permissionProvider,
                         Class<? extends HTMLFragmentComponent> renderComponentClass,
                         String[] attributeNames)
Constructor for the class.

Parameters:
id - the id of the current PortalMode
name - the name of the current PortalMode.
description - the description of the current PortalMode.
attributeNames - attribute names for the current PortalMode.
Since:
6.0.0
Method Detail

getAttributeNames

public Set<String> getAttributeNames()
Returns the set of attribute names for the current PortalMode.

Specified by:
getAttributeNames in interface IPortalModeSPI
Returns:
the set of attribute names for the current PortalMode.
Since:
6.0.0

getDescription

public String getDescription()
Returns the description of the current PortalMode.

Specified by:
getDescription in interface IPortalMode
Returns:
the description of the current PortalMode.
Since:
6.0.0

getId

public int getId()
Returns the id of the current PortalMode.

Specified by:
getId in interface IPortalMode
Returns:
the id of the current PortalMode.
Since:
6.0.0

getName

public String getName()
Returns the name of the current PortalMode.

Specified by:
getName in interface IPortalMode
Returns:
the name of the current PortalMode.
Since:
6.0.0

getPermissionProvider

public IPermissionProvider getPermissionProvider()
Returns the permission provider of the current PortalMode.

Specified by:
getPermissionProvider in interface IPortalModeSPI
Returns:
the permission provider of the current PortalMode.
Since:
6.0.0

getPerspective

public Perspective getPerspective()
Returns the name of the current PortalMode.

Specified by:
getPerspective in interface IPortalMode
Returns:
the name of the current PortalMode.
Since:
6.0.0

getRenderComponentClass

public Class<? extends HTMLFragmentComponent> getRenderComponentClass()
Returns the render component

Specified by:
getRenderComponentClass in interface IPortalModeSPI
Returns:
the component render.
Since:
6.0.0


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