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

java.lang.Object
  extended by fr.paris.lutece.plugins.document.business.DocumentType
All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource

public class DocumentType
extends Object
implements fr.paris.lutece.portal.service.rbac.RBACResource

This class represents the business object DocumentType


Field Summary
static String RESOURCE_TYPE
           
 
Constructor Summary
DocumentType()
           
 
Method Summary
 void addAttribute(DocumentAttribute documentAttribute)
          Add a document attribute to this type of document
 String getAdminStyleSheetId()
          Return the admin StyleSheet unique Id
 byte[] getAdminXsl()
          Returns the Xsl for the Administration module
 Source getAdminXslSource()
          Return the admin xsl source : if the admin xsl is null, a default one is generated and returned
 List<DocumentAttribute> getAttributes()
          Gets attributes list for the document type
 String getCode()
          Returns the Code
 String getContentServiceStyleSheetId()
          Return the content service StyleSheet unique Id
 byte[] getContentServiceXsl()
          Returns the Xsl for the Document ContentService
 Source getContentServiceXslSource()
          Return the xsl source to display the document into the frontoffice : if the admin xsl is null, a default one is generated and returned.
 String getDefaultThumbnailUrl()
          Returns the DefaultThumbnailUrl
 String getDescription()
          Returns the Description
 String getMetadataHandler()
          Returns the MetadataHandler name
 String getName()
          Returns the Name
 String getOldCode()
          Returns the old code
 String getResourceId()
          RBAC resource implementation
 String getResourceTypeCode()
          RBAC resource implementation
 String getStyleSheetId(int nMode)
          Return the StyleSheet unique Id
 int getThumbnailAttributeId()
          Returns the ThumbnailAttributeId
 MetadataHandler metadataHandler()
          Returns the metahandler
 void setAdminXsl(byte[] baXsl)
          Sets the Xsl for the Administration module
 void setCode(String strCode)
          Sets the Code
 void setContentServiceXsl(byte[] baXsl)
          Sets the Xsl for the Document ContentService
 void setDefaultThumbnailUrl(String strDefaultThumbnailUrl)
          Sets the DefaultThumbnailUrl
 void setDescription(String strDescription)
          Sets the Description
 void setMetadataHandler(String strMetadataHandler)
          Sets the MetadataHandler name
 void setName(String strName)
          Sets the Name
 void setOldCode(String strOldCode)
          Sets the old code
 void setThumbnailAttributeId(int nThumbnailAttributeId)
          Sets the ThumbnailAttributeId
 
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 String RESOURCE_TYPE
See Also:
Constant Field Values
Constructor Detail

DocumentType

public DocumentType()
Method Detail

getCode

public String getCode()
Returns the Code

Returns:
The Code

setCode

public void setCode(String strCode)
Sets the Code

Parameters:
strCode - The Code

getOldCode

public String getOldCode()
Returns the old code

Returns:
The old code

setOldCode

public void setOldCode(String strOldCode)
Sets the old code

Parameters:
strCode - The old code

getName

public String getName()
Returns the Name

Returns:
The Name

setName

public void setName(String strName)
Sets the Name

Parameters:
strName - The Name

getDescription

public String getDescription()
Returns the Description

Returns:
The Description

setDescription

public void setDescription(String strDescription)
Sets the Description

Parameters:
strDescription - The Description

getAdminXsl

public byte[] getAdminXsl()
Returns the Xsl for the Administration module

Returns:
The Xsl

setAdminXsl

public void setAdminXsl(byte[] baXsl)
Sets the Xsl for the Administration module

Parameters:
baXsl - The Xsl

getContentServiceXsl

public byte[] getContentServiceXsl()
Returns the Xsl for the Document ContentService

Returns:
The Xsl

setContentServiceXsl

public void setContentServiceXsl(byte[] baXsl)
Sets the Xsl for the Document ContentService

Parameters:
baXsl - The Xsl

addAttribute

public void addAttribute(DocumentAttribute documentAttribute)
Add a document attribute to this type of document

Parameters:
documentAttribute - The documentAttribute to add

getAttributes

public List<DocumentAttribute> getAttributes()
Gets attributes list for the document type

Returns:
The attrubutes list

getThumbnailAttributeId

public int getThumbnailAttributeId()
Returns the ThumbnailAttributeId

Returns:
The ThumbnailAttributeId

setThumbnailAttributeId

public void setThumbnailAttributeId(int nThumbnailAttributeId)
Sets the ThumbnailAttributeId

Parameters:
nThumbnailAttributeId - The ThumbnailAttributeId

getDefaultThumbnailUrl

public String getDefaultThumbnailUrl()
Returns the DefaultThumbnailUrl

Returns:
The DefaultThumbnailUrl

setDefaultThumbnailUrl

public void setDefaultThumbnailUrl(String strDefaultThumbnailUrl)
Sets the DefaultThumbnailUrl

Parameters:
strDefaultThumbnailUrl - The DefaultThumbnailUrl

getResourceTypeCode

public String getResourceTypeCode()
RBAC resource implementation

Specified by:
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The resource type code

getResourceId

public String getResourceId()
RBAC resource implementation

Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource
Returns:
The resourceId

getAdminXslSource

public Source getAdminXslSource()
Return the admin xsl source : if the admin xsl is null, a default one is generated and returned

Returns:
the xsl stylesheet as a source

getContentServiceXslSource

public Source getContentServiceXslSource()
Return the xsl source to display the document into the frontoffice : if the admin xsl is null, a default one is generated and returned.

Returns:
the xsl stylesheet as a source

getStyleSheetId

public String getStyleSheetId(int nMode)
Return the StyleSheet unique Id

Parameters:
nMode - The current mode.
Returns:
the StyleSheet unique Id

getContentServiceStyleSheetId

public String getContentServiceStyleSheetId()
Return the content service StyleSheet unique Id

Returns:
The id

getAdminStyleSheetId

public String getAdminStyleSheetId()
Return the admin StyleSheet unique Id

Returns:
The id

getMetadataHandler

public String getMetadataHandler()
Returns the MetadataHandler name

Returns:
The MetadataHandler

setMetadataHandler

public void setMetadataHandler(String strMetadataHandler)
Sets the MetadataHandler name

Parameters:
strMetadataHandler - The MetadataHandler

metadataHandler

public MetadataHandler metadataHandler()
Returns the metahandler

Returns:
the metahandler


Copyright © 2014 Mairie de Paris. All Rights Reserved.