fr.paris.lutece.plugins.document.business
Class Document

java.lang.Object
  extended by fr.paris.lutece.plugins.document.business.Document
All Implemented Interfaces:
fr.paris.lutece.portal.service.i18n.Localizable

public class Document
extends java.lang.Object
implements fr.paris.lutece.portal.service.i18n.Localizable

A document of the CMS.


Constructor Summary
Document()
           
 
Method Summary
 java.util.List getActions()
          Returns Actions List
 DocumentAttribute getAttribute(java.lang.String strAttributeCode)
          Returns a document attribute by its code
 java.util.List<DocumentAttribute> getAttributes()
          Returns attributes List
 java.lang.String getCodeDocumentType()
          Returns the CodeDocumentType
 java.lang.String getComment()
          Returns the Comment
 int getCreatorId()
          Returns the IdCreator
 java.sql.Timestamp getDateCreation()
          Returns the DateCreation
 java.sql.Timestamp getDateModification()
          Returns the Date of the last Modification
 java.sql.Timestamp getDateValidityBegin()
          Returns the begining Date of the validity period of the document
 java.sql.Timestamp getDateValidityEnd()
          Returns the end Date of the validity period of the document
 int getId()
          Returns the IdDocument
 java.util.Locale getLocale()
          Returns the Locale
 java.lang.String getSpace()
          Returns the Space
 int getSpaceId()
          Returns the IdSpace
 java.lang.String getState()
          Returns the State
 int getStateId()
          Returns the IdState
 java.lang.String getStateKey()
          Returns the State
 java.lang.String getSummary()
          Returns the Summary
 java.lang.String getThumbnail()
          Returns a Thumbnail url for the document based on a document attribute or on the document type.
 java.lang.String getTitle()
          Returns the Title
 java.lang.String getType()
          Returns the Type
 java.lang.String getXml(javax.servlet.http.HttpServletRequest request)
          Returns the xml of this document
 java.lang.String getXmlDocument(javax.servlet.http.HttpServletRequest request)
          Returns the xml document of this link
 java.lang.String getXmlMetadata()
          Returns the XmlMetadata
 java.lang.String getXmlValidatedContent()
          Returns the XmlValidatedContent
 java.lang.String getXmlWorkingContent()
          Returns the XmlWorkingContent
 void setActions(java.util.List listActions)
          Set the document Actions list
 void setAttributes(java.util.List<DocumentAttribute> listAttributes)
          Set the document attributes list
 void setCodeDocumentType(java.lang.String strCodeDocumentType)
          Sets the CodeDocumentType
 void setComment(java.lang.String strComment)
          Sets the Comment
 void setCreatorId(int nIdCreator)
          Sets the IdCreator
 void setDateCreation(java.sql.Timestamp dateCreation)
          Sets the DateCreation
 void setDateModification(java.sql.Timestamp dateModification)
          Sets the Date of the last Modification
 void setDateValidityBegin(java.sql.Timestamp dateValidityBegin)
          Sets the begining Date of the validity period of the document
 void setDateValidityEnd(java.sql.Timestamp dateValidityEnd)
          Sets the end Date of the validity period of the document
 void setId(int nIdDocument)
          Sets the IdDocument
 void setLocale(java.util.Locale locale)
          Sets the Locale
 void setSpace(java.lang.String strSpace)
          Sets the Space
 void setSpaceId(int nIdSpace)
          Sets the IdSpace
 void setStateId(int nIdState)
          Sets the IdState
 void setStateKey(java.lang.String strState)
          Sets the State
 void setSummary(java.lang.String strSummary)
          Sets the Summary
 void setTitle(java.lang.String strTitle)
          Sets the Title
 void setType(java.lang.String strType)
          Sets the Type
 void setXmlMetadata(java.lang.String strXmlMetadata)
          Sets the XmlMetadata
 void setXmlValidatedContent(java.lang.String strXmlValidatedContent)
          Sets the XmlValidatedContent
 void setXmlWorkingContent(java.lang.String strXmlWorkingContent)
          Sets the XmlWorkingContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Document

public Document()
Method Detail

getId

public int getId()
Returns the IdDocument

Returns:
The IdDocument

setId

public void setId(int nIdDocument)
Sets the IdDocument

Parameters:
nIdDocument - The IdDocument

getLocale

public java.util.Locale getLocale()
Returns the Locale

Returns:
The Locale

setLocale

public void setLocale(java.util.Locale locale)
Sets the Locale

Specified by:
setLocale in interface fr.paris.lutece.portal.service.i18n.Localizable
Parameters:
locale - The Locale

getCodeDocumentType

public java.lang.String getCodeDocumentType()
Returns the CodeDocumentType

Returns:
The CodeDocumentType

setCodeDocumentType

public void setCodeDocumentType(java.lang.String strCodeDocumentType)
Sets the CodeDocumentType

Parameters:
strCodeDocumentType - The CodeDocumentType

getTitle

public java.lang.String getTitle()
Returns the Title

Returns:
The Title

setTitle

public void setTitle(java.lang.String strTitle)
Sets the Title

Parameters:
strTitle - The Title

getSummary

public java.lang.String getSummary()
Returns the Summary

Returns:
The Summary

setSummary

public void setSummary(java.lang.String strSummary)
Sets the Summary

Parameters:
strSummary - The Summary

getDateCreation

public java.sql.Timestamp getDateCreation()
Returns the DateCreation

Returns:
The DateCreation

setDateCreation

public void setDateCreation(java.sql.Timestamp dateCreation)
Sets the DateCreation

Parameters:
DateCreation - The DateCreation

getCreatorId

public int getCreatorId()
Returns the IdCreator

Returns:
The IdCreator

setCreatorId

public void setCreatorId(int nIdCreator)
Sets the IdCreator

Parameters:
nIdCreator - The IdCreator

getDateModification

public java.sql.Timestamp getDateModification()
Returns the Date of the last Modification

Returns:
The Date of the last Modification

setDateModification

public void setDateModification(java.sql.Timestamp dateModification)
Sets the Date of the last Modification

Parameters:
dateModification - The Date of the last Modification

getDateValidityBegin

public java.sql.Timestamp getDateValidityBegin()
Returns the begining Date of the validity period of the document

Returns:
The begining Date of the validity period of the document

setDateValidityBegin

public void setDateValidityBegin(java.sql.Timestamp dateValidityBegin)
Sets the begining Date of the validity period of the document

Parameters:
dateValidityBegin - The begining Date of the validity period of the document

getDateValidityEnd

public java.sql.Timestamp getDateValidityEnd()
Returns the end Date of the validity period of the document

Returns:
The end Date of the validity period of the document

setDateValidityEnd

public void setDateValidityEnd(java.sql.Timestamp dateValidityEnd)
Sets the end Date of the validity period of the document

Parameters:
dateValidityEnd - The end Date of the validity period of the document

getComment

public java.lang.String getComment()
Returns the Comment

Returns:
The Comment

setComment

public void setComment(java.lang.String strComment)
Sets the Comment

Parameters:
strComment - The Comment

getXmlWorkingContent

public java.lang.String getXmlWorkingContent()
Returns the XmlWorkingContent

Returns:
The XmlWorkingContent

setXmlWorkingContent

public void setXmlWorkingContent(java.lang.String strXmlWorkingContent)
Sets the XmlWorkingContent

Parameters:
strXmlWorkingContent - The XmlWorkingContent

getXmlValidatedContent

public java.lang.String getXmlValidatedContent()
Returns the XmlValidatedContent

Returns:
The XmlValidatedContent

setXmlValidatedContent

public void setXmlValidatedContent(java.lang.String strXmlValidatedContent)
Sets the XmlValidatedContent

Parameters:
strXmlValidatedContent - The XmlValidatedContent

getXmlMetadata

public java.lang.String getXmlMetadata()
Returns the XmlMetadata

Returns:
The XmlMetadata

setXmlMetadata

public void setXmlMetadata(java.lang.String strXmlMetadata)
Sets the XmlMetadata

Parameters:
strXmlMetadata - The XmlMetadata

getSpaceId

public int getSpaceId()
Returns the IdSpace

Returns:
The IdSpace

setSpaceId

public void setSpaceId(int nIdSpace)
Sets the IdSpace

Parameters:
nIdSpace - The IdSpace

getSpace

public java.lang.String getSpace()
Returns the Space

Returns:
The Space

setSpace

public void setSpace(java.lang.String strSpace)
Sets the Space

Parameters:
strSpace - The Space

getStateId

public int getStateId()
Returns the IdState

Returns:
The IdState

setStateId

public void setStateId(int nIdState)
Sets the IdState

Parameters:
nIdState - The IdState

getStateKey

public java.lang.String getStateKey()
Returns the State

Returns:
The State

getState

public java.lang.String getState()
Returns the State

Returns:
The State

setStateKey

public void setStateKey(java.lang.String strState)
Sets the State

Parameters:
strState - The State

getAttributes

public java.util.List<DocumentAttribute> getAttributes()
Returns attributes List

Returns:
The document attributes list

setAttributes

public void setAttributes(java.util.List<DocumentAttribute> listAttributes)
Set the document attributes list

Parameters:
listAttributes - The document attributes list

getActions

public java.util.List getActions()
Returns Actions List

Returns:
The document Actions list

setActions

public void setActions(java.util.List listActions)
Set the document Actions list

Parameters:
listActions - The document Actions list

getType

public java.lang.String getType()
Returns the Type

Returns:
The Type

setType

public void setType(java.lang.String strType)
Sets the Type

Parameters:
strType - The Type

getThumbnail

public java.lang.String getThumbnail()
Returns a Thumbnail url for the document based on a document attribute or on the document type.

Returns:
A Thumbnail url

getXml

public java.lang.String getXml(javax.servlet.http.HttpServletRequest request)
Returns the xml of this document

Parameters:
request - The HTTP Servlet request
Returns:
the link xml

getXmlDocument

public java.lang.String getXmlDocument(javax.servlet.http.HttpServletRequest request)
Returns the xml document of this link

Parameters:
request - The HTTP servlet request
Returns:
the link xml document

getAttribute

public DocumentAttribute getAttribute(java.lang.String strAttributeCode)
Returns a document attribute by its code

Parameters:
strAttributeCode - The Attribute Code
Returns:
the attribute object corresponding to the code


Copyright © 2007 Mairie de Paris. All Rights Reserved.