fr.paris.lutece.portal.business.page
Class Page

java.lang.Object
  extended by fr.paris.lutece.portal.business.page.Page
All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource

public class Page
extends java.lang.Object
implements fr.paris.lutece.portal.service.rbac.RBACResource

This class reprsents business objects Page


Field Summary
static java.lang.String RESOURCE_TYPE
           
static java.lang.String ROLE_NONE
           
 
Constructor Summary
Page()
           
 
Method Summary
 java.lang.String getCodeTheme()
          Returns the theme of the page
 java.sql.Timestamp getDateUpdate()
          Returns the date to which the content page has been modified
 java.lang.String getDescription()
          Returns the description of the page
 int getId()
          Returns the identifier of the page
 java.lang.Integer getIdAuthorizationNode()
          get the id of the authorization node
 byte[] getImageContent()
          Returns the ImageContent
 java.lang.String getMetaDescription()
           
 java.lang.String getMetaKeywords()
           
 java.lang.String getMimeType()
          Returns the MimeType
 java.lang.String getName()
          Returns the name of the page
 int getNodeStatus()
          Returns the NodeStatus of the page
 int getOrder()
          Returns the position of the page into a portlet child pages
 int getPageTemplateId()
          Returns the identifier of the template for the page-setting
 int getParentPageId()
          Returns the identifier of the parent current page
 java.util.List<Portlet> getPortlets()
          Returns the portlets list contained into the page
 java.lang.String getResourceId()
          Returns the resource Id of the current object
 java.lang.String getResourceTypeCode()
          Returns the Resource Type Code that identify the resource type
 java.lang.String getRole()
          Gets the page role
 int getStatus()
          Returns the status of the current page
 java.lang.String getTemplate()
          Returns the name of the template file for page-setting
 boolean isVisible(javax.servlet.http.HttpServletRequest request)
          Checks if the page is visible for the current user
 void setCodeTheme(java.lang.String strCodeTheme)
          Sets the Theme of the page to the specified string.
 void setDateUpdate(java.sql.Timestamp dateUpdate)
          Sets the date to which the content page has been modified
 void setDescription(java.lang.String strDescription)
          Sets the description of the page
 void setId(int nId)
          Sets the identifier of the page
 void setIdAuthorizationNode(java.lang.Integer nIdAutorizationNode)
          set the id of the authorization node
 void setImageContent(byte[] strImageContent)
          Sets the ImageContent
 void setMetaDescription(java.lang.String strMetaDescription)
          set the META description
 void setMetaKeywords(java.lang.String strMetaKeywords)
          set the META name
 void setMimeType(java.lang.String strMimeType)
          Sets the MimeType
 void setName(java.lang.String strName)
          Sets the name of the page
 void setNodeStatus(int nNodeStatus)
          Sets the node_status of the page
 void setOrder(int nOrder)
          Sets the position of the current page into a portlet child pages
 void setPageTemplateId(int nPageTemplateId)
          Sets the identifier of the template for the page-setting
 void setParentPageId(int nParentPageId)
          Sets the identifier of the parent current page
 void setPortlets(java.util.List<Portlet> listPortlets)
          Sets the date to which the portlets list has been modified
 void setRole(java.lang.String strRole)
          Sets the page's role
 void setStatus(int nStatus)
          Sets the status of the current page (active or not active)
 void setTemplate(java.lang.String strTemplate)
          Sets the name of the template file for page-setting
 
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

ROLE_NONE

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

Page

public Page()
Method Detail

setId

public void setId(int nId)
Sets the identifier of the page

Parameters:
nId - the page identifier

getId

public int getId()
Returns the identifier of the page

Returns:
page identifier

setParentPageId

public void setParentPageId(int nParentPageId)
Sets the identifier of the parent current page

Parameters:
nParentPageId - the parent page identifier

getParentPageId

public int getParentPageId()
Returns the identifier of the parent current page

Returns:
the parent page identifier

getImageContent

public byte[] getImageContent()
Returns the ImageContent

Returns:
The ImageContent

setImageContent

public void setImageContent(byte[] strImageContent)
Sets the ImageContent

Parameters:
strImageContent - The ImageContent

getMimeType

public java.lang.String getMimeType()
Returns the MimeType

Returns:
The MimeType

setMimeType

public void setMimeType(java.lang.String strMimeType)
Sets the MimeType

Parameters:
strMimeType - The MimeType

setName

public void setName(java.lang.String strName)
Sets the name of the page

Parameters:
strName - The page name

getName

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

Returns:
the page name

setPageTemplateId

public void setPageTemplateId(int nPageTemplateId)
Sets the identifier of the template for the page-setting

Parameters:
nPageTemplateId - the template identifier

getPageTemplateId

public int getPageTemplateId()
Returns the identifier of the template for the page-setting

Returns:
the template identifier

setTemplate

public void setTemplate(java.lang.String strTemplate)
Sets the name of the template file for page-setting

Parameters:
strTemplate - the template filename

getTemplate

public java.lang.String getTemplate()
Returns the name of the template file for page-setting

Returns:
the template filename

setOrder

public void setOrder(int nOrder)
Sets the position of the current page into a portlet child pages

Parameters:
nOrder - the current page position into a portlet child pages

getOrder

public int getOrder()
Returns the position of the page into a portlet child pages

Returns:
the current page position

setStatus

public void setStatus(int nStatus)
Sets the status of the current page (active or not active)

Parameters:
nStatus - the page status

getStatus

public int getStatus()
Returns the status of the current page

Returns:
the current page status

setDescription

public void setDescription(java.lang.String strDescription)
Sets the description of the page

Parameters:
strDescription - the page description

getDescription

public java.lang.String getDescription()
Returns the description of the page

Returns:
the description page

setNodeStatus

public void setNodeStatus(int nNodeStatus)
Sets the node_status of the page

Parameters:
nNodeStatus - the node status

getNodeStatus

public int getNodeStatus()
Returns the NodeStatus of the page

Returns:
the NodeStatus page

getPortlets

public java.util.List<Portlet> getPortlets()
Returns the portlets list contained into the page

Returns:
the portlets list

setPortlets

public void setPortlets(java.util.List<Portlet> listPortlets)
Sets the date to which the portlets list has been modified

Parameters:
listPortlets - the portlet list

setDateUpdate

public void setDateUpdate(java.sql.Timestamp dateUpdate)
Sets the date to which the content page has been modified

Parameters:
dateUpdate - the date of modification

getDateUpdate

public java.sql.Timestamp getDateUpdate()
Returns the date to which the content page has been modified

Returns:
the date of modification

getRole

public java.lang.String getRole()
Gets the page role

Returns:
page's role as a String
Since:
v1.1

setRole

public void setRole(java.lang.String strRole)
Sets the page's role

Parameters:
strRole - The role
Since:
v1.1

getCodeTheme

public java.lang.String getCodeTheme()
Returns the theme of the page

Returns:
The theme of the page as a string.

setCodeTheme

public void setCodeTheme(java.lang.String strCodeTheme)
Sets the Theme of the page to the specified string.

Parameters:
strCodeTheme - The new Theme of the page.

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

getResourceTypeCode

public java.lang.String getResourceTypeCode()
Returns the Resource Type Code that identify the resource type

Specified by:
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The Resource Type Code

getResourceId

public java.lang.String getResourceId()
Returns the resource Id of the current object

Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The resource Id of the current object

getMetaKeywords

public java.lang.String getMetaKeywords()
Returns:
the META Name associate to the page

setMetaKeywords

public void setMetaKeywords(java.lang.String strMetaKeywords)
set the META name

Parameters:
strMetaKeywords - the META name

getMetaDescription

public java.lang.String getMetaDescription()
Returns:
the META description associate to the page

setMetaDescription

public void setMetaDescription(java.lang.String strMetaDescription)
set the META description

Parameters:
strMetaDescription - the META description

setIdAuthorizationNode

public void setIdAuthorizationNode(java.lang.Integer nIdAutorizationNode)
set the id of the authorization node

Parameters:
nIdAutorizationNode -

getIdAuthorizationNode

public java.lang.Integer getIdAuthorizationNode()
get the id of the authorization node

Returns:
the authorization node id


Copyright © 2012 Mairie de Paris. All Rights Reserved.