Class DocumentType
java.lang.Object
fr.paris.lutece.plugins.document.business.DocumentType
- All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource,Serializable
public class DocumentType
extends Object
implements fr.paris.lutece.portal.service.rbac.RBACResource, Serializable
This class represents the business object DocumentType
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(DocumentAttribute documentAttribute) Add a document attribute to this type of documentReturn the admin StyleSheet unique Idbyte[]Returns the Xsl for the Administration moduleReturn the admin xsl source : if the admin xsl is null, a default one is generated and returnedGets attributes list for the document typegetCode()Returns the CodeReturn the content service StyleSheet unique Idbyte[]Returns the Xsl for the Document ContentServiceReturn 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 DefaultThumbnailUrlReturns the DescriptionReturns the MetadataHandler namegetName()Returns the NameReturns the old codeRBAC resource implementationRBAC resource implementationgetStyleSheetId(int nMode) Return the StyleSheet unique IdintReturns the ThumbnailAttributeIdReturns the metahandlervoidsetAdminXsl(byte[] baXsl) Sets the Xsl for the Administration modulevoidSets the CodevoidsetContentServiceXsl(byte[] baXsl) Sets the Xsl for the Document ContentServicevoidsetDefaultThumbnailUrl(String strDefaultThumbnailUrl) Sets the DefaultThumbnailUrlvoidsetDescription(String strDescription) Sets the DescriptionvoidsetMetadataHandler(String strMetadataHandler) Sets the MetadataHandler namevoidSets the NamevoidsetOldCode(String strOldCode) Sets the old codevoidsetThumbnailAttributeId(int nThumbnailAttributeId) Sets the ThumbnailAttributeId
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
-
Constructor Details
-
DocumentType
public DocumentType()
-
-
Method Details
-
getCode
Returns the Code- Returns:
- The Code
-
setCode
Sets the Code- Parameters:
strCode- The Code
-
getOldCode
Returns the old code- Returns:
- The old code
-
setOldCode
Sets the old code- Parameters:
strCode- The old code
-
getName
Returns the Name- Returns:
- The Name
-
setName
Sets the Name- Parameters:
strName- The Name
-
getDescription
Returns the Description- Returns:
- The Description
-
setDescription
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
Add a document attribute to this type of document- Parameters:
documentAttribute- The documentAttribute to add
-
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
Returns the DefaultThumbnailUrl- Returns:
- The DefaultThumbnailUrl
-
setDefaultThumbnailUrl
Sets the DefaultThumbnailUrl- Parameters:
strDefaultThumbnailUrl- The DefaultThumbnailUrl
-
getResourceTypeCode
RBAC resource implementation- Specified by:
getResourceTypeCodein interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- The resource type code
-
getResourceId
RBAC resource implementation- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- The resourceId
-
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
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
Return the StyleSheet unique Id- Parameters:
nMode- The current mode.- Returns:
- the StyleSheet unique Id
-
getContentServiceStyleSheetId
Return the content service StyleSheet unique Id- Returns:
- The id
-
getAdminStyleSheetId
Return the admin StyleSheet unique Id- Returns:
- The id
-
getMetadataHandler
Returns the MetadataHandler name- Returns:
- The MetadataHandler
-
setMetadataHandler
Sets the MetadataHandler name- Parameters:
strMetadataHandler- The MetadataHandler
-
metadataHandler
Returns the metahandler- Returns:
- the metahandler
-