Class DocumentType
- java.lang.Object
-
- fr.paris.lutece.plugins.document.business.DocumentType
-
- All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource
public class DocumentType extends java.lang.Object implements fr.paris.lutece.portal.service.rbac.RBACResourceThis class represents the business object DocumentType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESOURCE_TYPE
-
Constructor Summary
Constructors Constructor Description DocumentType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(DocumentAttribute documentAttribute)Add a document attribute to this type of documentjava.lang.StringgetAdminStyleSheetId()Return the admin StyleSheet unique Idbyte[]getAdminXsl()Returns the Xsl for the Administration modulejavax.xml.transform.SourcegetAdminXslSource()Return the admin xsl source : if the admin xsl is null, a default one is generated and returnedjava.util.List<DocumentAttribute>getAttributes()Gets attributes list for the document typejava.lang.StringgetCode()Returns the Codejava.lang.StringgetContentServiceStyleSheetId()Return the content service StyleSheet unique Idbyte[]getContentServiceXsl()Returns the Xsl for the Document ContentServicejavax.xml.transform.SourcegetContentServiceXslSource()Return the xsl source to display the document into the frontoffice : if the admin xsl is null, a default one is generated and returned.java.lang.StringgetDefaultThumbnailUrl()Returns the DefaultThumbnailUrljava.lang.StringgetDescription()Returns the Descriptionjava.lang.StringgetMetadataHandler()Returns the MetadataHandler namejava.lang.StringgetName()Returns the Namejava.lang.StringgetOldCode()Returns the old codejava.lang.StringgetResourceId()RBAC resource implementationjava.lang.StringgetResourceTypeCode()RBAC resource implementationjava.lang.StringgetStyleSheetId(int nMode)Return the StyleSheet unique IdintgetThumbnailAttributeId()Returns the ThumbnailAttributeIdMetadataHandlermetadataHandler()Returns the metahandlervoidsetAdminXsl(byte[] baXsl)Sets the Xsl for the Administration modulevoidsetCode(java.lang.String strCode)Sets the CodevoidsetContentServiceXsl(byte[] baXsl)Sets the Xsl for the Document ContentServicevoidsetDefaultThumbnailUrl(java.lang.String strDefaultThumbnailUrl)Sets the DefaultThumbnailUrlvoidsetDescription(java.lang.String strDescription)Sets the DescriptionvoidsetMetadataHandler(java.lang.String strMetadataHandler)Sets the MetadataHandler namevoidsetName(java.lang.String strName)Sets the NamevoidsetOldCode(java.lang.String strOldCode)Sets the old codevoidsetThumbnailAttributeId(int nThumbnailAttributeId)Sets the ThumbnailAttributeId
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final java.lang.String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public java.lang.String getCode()
Returns the Code- Returns:
- The Code
-
setCode
public void setCode(java.lang.String strCode)
Sets the Code- Parameters:
strCode- The Code
-
getOldCode
public java.lang.String getOldCode()
Returns the old code- Returns:
- The old code
-
setOldCode
public void setOldCode(java.lang.String strOldCode)
Sets the old code- Parameters:
strCode- The old code
-
getName
public java.lang.String getName()
Returns the Name- Returns:
- The Name
-
setName
public void setName(java.lang.String strName)
Sets the Name- Parameters:
strName- The Name
-
getDescription
public java.lang.String getDescription()
Returns the Description- Returns:
- The Description
-
setDescription
public void setDescription(java.lang.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 java.util.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 java.lang.String getDefaultThumbnailUrl()
Returns the DefaultThumbnailUrl- Returns:
- The DefaultThumbnailUrl
-
setDefaultThumbnailUrl
public void setDefaultThumbnailUrl(java.lang.String strDefaultThumbnailUrl)
Sets the DefaultThumbnailUrl- Parameters:
strDefaultThumbnailUrl- The DefaultThumbnailUrl
-
getResourceTypeCode
public java.lang.String getResourceTypeCode()
RBAC resource implementation- Specified by:
getResourceTypeCodein interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- The resource type code
-
getResourceId
public java.lang.String getResourceId()
RBAC resource implementation- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- The resourceId
-
getAdminXslSource
public javax.xml.transform.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 javax.xml.transform.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 java.lang.String getStyleSheetId(int nMode)
Return the StyleSheet unique Id- Parameters:
nMode- The current mode.- Returns:
- the StyleSheet unique Id
-
getContentServiceStyleSheetId
public java.lang.String getContentServiceStyleSheetId()
Return the content service StyleSheet unique Id- Returns:
- The id
-
getAdminStyleSheetId
public java.lang.String getAdminStyleSheetId()
Return the admin StyleSheet unique Id- Returns:
- The id
-
getMetadataHandler
public java.lang.String getMetadataHandler()
Returns the MetadataHandler name- Returns:
- The MetadataHandler
-
setMetadataHandler
public void setMetadataHandler(java.lang.String strMetadataHandler)
Sets the MetadataHandler name- Parameters:
strMetadataHandler- The MetadataHandler
-
metadataHandler
public MetadataHandler metadataHandler()
Returns the metahandler- Returns:
- the metahandler
-
-