fr.paris.lutece.plugins.dbpage.business
Class DbPage

java.lang.Object
  extended by fr.paris.lutece.plugins.dbpage.business.DbPage
All Implemented Interfaces:
fr.paris.lutece.portal.service.resource.Resource, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource

public class DbPage
extends java.lang.Object
implements fr.paris.lutece.portal.service.resource.Resource, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource

This class represents business object Page


Field Summary
static java.lang.String RESOURCE_TYPE
           
 
Constructor Summary
DbPage()
           
 
Method Summary
 java.lang.String getContent(java.util.List<java.lang.String> listValues, javax.servlet.http.HttpServletRequest request)
          Returns the DbPage Content
 java.util.List<DbPageSection> getListSection()
          Returns the sections of this dbpage.
 java.lang.String getName()
          Returns the name of this dbpage.
 int getNbSection()
          Returns the number of sections of this dbpage.
 java.lang.String getTitle()
          Returns the title of this dbpage.
 java.lang.String getWorkgroup()
          The workgroup
static void init()
          Initialize the DbPage
 boolean isVisible(javax.servlet.http.HttpServletRequest request)
          Checks if the page is visible for the current user
 void setListSection(java.util.List<DbPageSection> listSections)
          Sets the sections of the dbpage to the specified list.
 void setName(java.lang.String strName)
          Sets the name of the dbpage to the specified string.
 void setNbSection(int nNbSection)
          Sets the number of section of the dbpage to the specified integer.
 void setTitle(java.lang.String strTitle)
          Sets the title of the dbpage to the specified string.
 void setWorkgroup(java.lang.String strWorkgroup)
          Sets the workgroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_TYPE

public static final java.lang.String RESOURCE_TYPE
See Also:
Constant Field Values
Constructor Detail

DbPage

public DbPage()
Method Detail

init

public static void init()
Initialize the DbPage


getNbSection

public int getNbSection()
Returns the number of sections of this dbpage.

Returns:
nNbSection the number of sections

setNbSection

public void setNbSection(int nNbSection)
Sets the number of section of the dbpage to the specified integer.

Parameters:
nNbSection - the new number of section

getName

public java.lang.String getName()
Returns the name of this dbpage.

Returns:
the dbpage name

setName

public void setName(java.lang.String strName)
Sets the name of the dbpage to the specified string.

Parameters:
strName - the new name

getTitle

public java.lang.String getTitle()
Returns the title of this dbpage.

Returns:
the dbpage title

setTitle

public void setTitle(java.lang.String strTitle)
Sets the title of the dbpage to the specified string.

Parameters:
strTitle - the new email

getListSection

public java.util.List<DbPageSection> getListSection()
Returns the sections of this dbpage.

Returns:
the dbpage sections

setListSection

public void setListSection(java.util.List<DbPageSection> listSections)
Sets the sections of the dbpage to the specified list.

Parameters:
listSections - Sets a list of sections

getWorkgroup

public java.lang.String getWorkgroup()
The workgroup

Specified by:
getWorkgroup in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
Returns:
The workgroup

setWorkgroup

public void setWorkgroup(java.lang.String strWorkgroup)
Sets the workgroup

Parameters:
strWorkgroup - The workgroup

getContent

public java.lang.String getContent(java.util.List<java.lang.String> listValues,
                                   javax.servlet.http.HttpServletRequest request)
Returns the DbPage Content

Parameters:
request - The request
listValues - The list of Values of parameters
Returns:
The HTML code of the DbPage content

isVisible

public boolean isVisible(javax.servlet.http.HttpServletRequest request)
Checks if the page is visible for the current user

Parameters:
request - The HTTP request
Returns:
true if the page could be shown to the user
Since:
v1.3.1


Copyright © 2010 Mairie de Paris. All Rights Reserved.