Interface AttributeManager
-
- All Known Implementing Classes:
DateManager,DefaultManager,FileManager,ImageFileManager,InternalLinkManager,ListBoxManager,MultilineManager,NumerictextManager,RichTextManager,TextManager,UrlManager
public interface AttributeManagerDefine the interface for attribute's specific behavior
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanBeUsedAsThumbnail()Tells if the attrubute can be used as Thumbnail (image)StringgetAttributeTypeCode()Return the attribute Type codeStringgetAttributeXmlValue(Document document, DocumentAttribute attribute)Get the XML data corresponding to the attribute to build the docuemnt XML contentStringgetCreateFormHtml(DocumentAttribute attribute, Locale locale, String strBaseUrl)Gets the part of an HTML form to enter attribute dataStringgetCreateParametersFormHtml(List<AttributeTypeParameter> listParameters, Locale locale)Gets the part of an HTML form to enter parameters dataStringgetCreateParametersFormHtml(Locale locale)Gets the part of an HTML form to enter parameters dataList<AttributeTypeParameter>getExtraParameters(Locale locale)Gets extra parameters for the attributeList<AttributeTypeParameter>getExtraParametersValues(Locale locale, int nAttributeId)Gets extra parameters values for the attributeStringgetModifyFormHtml(DocumentAttribute attribute, Document document, Locale locale, String strBaseUrl)Gets the part of an HTML form to modify attribute dataStringgetModifyParametersFormHtml(Locale locale, int nAttributeId)Gets the part of an HTML form to modify parameters dataList<AttributeTypeParameter>getValueParameters(javax.servlet.http.HttpServletRequest request, Locale locale)Get the value parametersvoidsetAttributeTypeCode(String strCode)Define the attribute Type codeStringvalidateValue(int nAttributeId, String strValue, Locale locale)Validate the value for the attributeStringvalidateValueParameters(List<AttributeTypeParameter> listParameters, Locale locale)Validate the value for the parameters
-
-
-
Method Detail
-
setAttributeTypeCode
void setAttributeTypeCode(String strCode)
Define the attribute Type code- Parameters:
strCode- The Attribute Type Code
-
getAttributeTypeCode
String getAttributeTypeCode()
Return the attribute Type code- Returns:
- The Attribute Type Code
-
getCreateFormHtml
String getCreateFormHtml(DocumentAttribute attribute, Locale locale, String strBaseUrl)
Gets the part of an HTML form to enter attribute data- Parameters:
attribute- The attributelocale- The current LocalestrBaseUrl- the base url- Returns:
- A part of the HTML form
-
getModifyFormHtml
String getModifyFormHtml(DocumentAttribute attribute, Document document, Locale locale, String strBaseUrl)
Gets the part of an HTML form to modify attribute data- Parameters:
attribute- The attributedocument- The attribute documentlocale- The current LocalestrBaseUrl- The base url- Returns:
- A part of the HTML form
-
getCreateParametersFormHtml
String getCreateParametersFormHtml(Locale locale)
Gets the part of an HTML form to enter parameters data- Parameters:
locale- The current Locale- Returns:
- A part of the HTML form
-
getCreateParametersFormHtml
String getCreateParametersFormHtml(List<AttributeTypeParameter> listParameters, Locale locale)
Gets the part of an HTML form to enter parameters data- Parameters:
listParameters- list attribute type parameterslocale- The current Locale- Returns:
- A part of the HTML form
-
getModifyParametersFormHtml
String getModifyParametersFormHtml(Locale locale, int nAttributeId)
Gets the part of an HTML form to modify parameters data- Parameters:
locale- The current LocalenAttributeId- Attribute Id- Returns:
- A part of the HTML form
-
getExtraParameters
List<AttributeTypeParameter> getExtraParameters(Locale locale)
Gets extra parameters for the attribute- Parameters:
locale- The current Locale- Returns:
- A collection of attribute parameters
-
getExtraParametersValues
List<AttributeTypeParameter> getExtraParametersValues(Locale locale, int nAttributeId)
Gets extra parameters values for the attribute- Parameters:
locale- The current LocalenAttributeId-- Returns:
- The extra parameters values for the attribute
-
validateValue
String validateValue(int nAttributeId, String strValue, Locale locale)
Validate the value for the attribute- Parameters:
nAttributeId- The attribute identifierstrValue- The value to checklocale- The current Locale- Returns:
- null if valid, otherwise error message
-
validateValueParameters
String validateValueParameters(List<AttributeTypeParameter> listParameters, Locale locale)
Validate the value for the parameters- Parameters:
listParameters- The list of parameters to checklocale- The locale- Returns:
- null if valid, otherwise message property
-
getAttributeXmlValue
String getAttributeXmlValue(Document document, DocumentAttribute attribute)
Get the XML data corresponding to the attribute to build the docuemnt XML content- Parameters:
document- The documentattribute- The attribute- Returns:
- The XML value of the attribute
-
canBeUsedAsThumbnail
boolean canBeUsedAsThumbnail()
Tells if the attrubute can be used as Thumbnail (image)- Returns:
- true if the attrubute can be used as Thumbnail, otherwise false
-
getValueParameters
List<AttributeTypeParameter> getValueParameters(javax.servlet.http.HttpServletRequest request, Locale locale)
Get the value parameters- Parameters:
request- the HTTP requestlocale- the locale- Returns:
- a list of
AttributeTypeParameter
-
-