|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AttributeManager
Define the interface for attribute's specific behavior
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
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 url
String getModifyFormHtml(DocumentAttribute attribute,
Document document,
Locale locale,
String strBaseUrl)
attribute - The attributedocument - The attribute documentlocale - The current LocalestrBaseUrl - The base url
String getCreateParametersFormHtml(Locale locale)
locale - The current Locale
String getCreateParametersFormHtml(List<AttributeTypeParameter> listParameters,
Locale locale)
listParameters - list attribute type parameterslocale - The current Locale
String getModifyParametersFormHtml(Locale locale,
int nAttributeId)
locale - The current LocalenAttributeId - Attribute Id
List<AttributeTypeParameter> getExtraParameters(Locale locale)
locale - The current Locale
List<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 Locale
String validateValueParameters(List<AttributeTypeParameter> listParameters,
Locale locale)
listParameters - The list of parameters to checklocale - The locale
String getAttributeXmlValue(Document document,
DocumentAttribute attribute)
document - The documentattribute - The attribute
boolean canBeUsedAsThumbnail()
List<AttributeTypeParameter> getValueParameters(javax.servlet.http.HttpServletRequest request,
Locale locale)
request - the HTTP requestlocale - the locale
AttributeTypeParameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||