public interface AttributeManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeUsedAsThumbnail()
Tells if the attrubute can be used as Thumbnail (image)
|
String |
getAttributeTypeCode()
Return the attribute Type code
|
String |
getAttributeXmlValue(Document document,
DocumentAttribute attribute)
Get the XML data corresponding to the attribute to build the docuemnt XML
content
|
String |
getCreateFormHtml(DocumentAttribute attribute,
Locale locale,
String strBaseUrl)
Gets the part of an HTML form to enter attribute data
|
String |
getCreateParametersFormHtml(List<AttributeTypeParameter> listParameters,
Locale locale)
Gets the part of an HTML form to enter parameters data
|
String |
getCreateParametersFormHtml(Locale locale)
Gets the part of an HTML form to enter parameters data
|
List<AttributeTypeParameter> |
getExtraParameters(Locale locale)
Gets extra parameters for the attribute
|
List<AttributeTypeParameter> |
getExtraParametersValues(Locale locale,
int nAttributeId)
Gets extra parameters values for the attribute
|
String |
getModifyFormHtml(DocumentAttribute attribute,
Document document,
Locale locale,
String strBaseUrl)
Gets the part of an HTML form to modify attribute data
|
String |
getModifyParametersFormHtml(Locale locale,
int nAttributeId)
Gets the part of an HTML form to modify parameters data
|
List<AttributeTypeParameter> |
getValueParameters(javax.servlet.http.HttpServletRequest request,
Locale locale)
Get the value parameters
|
void |
setAttributeTypeCode(String strCode)
Define the attribute Type code
|
String |
validateValue(int nAttributeId,
String strValue,
Locale locale)
Validate the value for the attribute
|
String |
validateValueParameters(List<AttributeTypeParameter> listParameters,
Locale locale)
Validate the value for the parameters
|
void setAttributeTypeCode(String strCode)
strCode - The Attribute Type CodeString getAttributeTypeCode()
String getCreateFormHtml(DocumentAttribute attribute, Locale locale, String strBaseUrl)
attribute - The attributelocale - The current LocalestrBaseUrl - the base urlString getModifyFormHtml(DocumentAttribute attribute, Document document, Locale locale, String strBaseUrl)
attribute - The attributedocument - The attribute documentlocale - The current LocalestrBaseUrl - The base urlString getCreateParametersFormHtml(Locale locale)
locale - The current LocaleString getCreateParametersFormHtml(List<AttributeTypeParameter> listParameters, Locale locale)
listParameters - list attribute type parameterslocale - The current LocaleString getModifyParametersFormHtml(Locale locale, int nAttributeId)
locale - The current LocalenAttributeId - Attribute IdList<AttributeTypeParameter> getExtraParameters(Locale locale)
locale - The current LocaleList<AttributeTypeParameter> getExtraParametersValues(Locale locale, int nAttributeId)
locale - The current LocalenAttributeId - String validateValue(int nAttributeId, String strValue, Locale locale)
nAttributeId - The attribute identifierstrValue - The value to checklocale - The current LocaleString validateValueParameters(List<AttributeTypeParameter> listParameters, Locale locale)
listParameters - The list of parameters to checklocale - The localeString getAttributeXmlValue(Document document, DocumentAttribute attribute)
document - The documentattribute - The attributeboolean canBeUsedAsThumbnail()
List<AttributeTypeParameter> getValueParameters(javax.servlet.http.HttpServletRequest request, Locale locale)
request - the HTTP requestlocale - the localeAttributeTypeParameterCopyright © 2020 City of Paris. All rights reserved.