public class DocumentType extends Object implements fr.paris.lutece.portal.service.rbac.RBACResource
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_TYPE |
Constructor and Description |
---|
DocumentType() |
Modifier and Type | Method and Description |
---|---|
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
|
public static final String RESOURCE_TYPE
public String getCode()
public void setCode(String strCode)
strCode
- The Codepublic String getOldCode()
public void setOldCode(String strOldCode)
strCode
- The old codepublic String getName()
public void setName(String strName)
strName
- The Namepublic String getDescription()
public void setDescription(String strDescription)
strDescription
- The Descriptionpublic byte[] getAdminXsl()
public void setAdminXsl(byte[] baXsl)
baXsl
- The Xslpublic byte[] getContentServiceXsl()
public void setContentServiceXsl(byte[] baXsl)
baXsl
- The Xslpublic void addAttribute(DocumentAttribute documentAttribute)
documentAttribute
- The documentAttribute to addpublic List<DocumentAttribute> getAttributes()
public int getThumbnailAttributeId()
public void setThumbnailAttributeId(int nThumbnailAttributeId)
nThumbnailAttributeId
- The ThumbnailAttributeIdpublic String getDefaultThumbnailUrl()
public void setDefaultThumbnailUrl(String strDefaultThumbnailUrl)
strDefaultThumbnailUrl
- The DefaultThumbnailUrlpublic String getResourceTypeCode()
getResourceTypeCode
in interface fr.paris.lutece.portal.service.rbac.RBACResource
public String getResourceId()
getResourceId
in interface fr.paris.lutece.portal.service.rbac.RBACResource
public Source getAdminXslSource()
public Source getContentServiceXslSource()
public String getStyleSheetId(int nMode)
nMode
- The current mode.public String getContentServiceStyleSheetId()
public String getAdminStyleSheetId()
public String getMetadataHandler()
public void setMetadataHandler(String strMetadataHandler)
strMetadataHandler
- The MetadataHandlerpublic MetadataHandler metadataHandler()
Copyright © 2020 City of Paris. All rights reserved.