|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.document.service.attributes.DefaultManager
public abstract class DefaultManager
Default implementation of an attribute manager
Constructor Summary | |
---|---|
DefaultManager()
|
Method Summary | |
---|---|
java.lang.String |
getAttributeTypeCode()
Return the attribute Type code |
java.lang.String |
getAttributeXmlValue(Document document,
DocumentAttribute attribute)
Get the XML data corresponding to the attribute to build the document XML content |
java.lang.String |
getCreateFormHtml(DocumentAttribute attribute,
java.util.Locale locale)
Gets the part of an HTML form to enter attribute data |
java.util.List<AttributeTypeParameter> |
getExtraParameters(java.util.Locale locale)
Gets extra parameters for the attribute |
java.util.Collection<AttributeTypeParameter> |
getExtraParametersValues(java.util.Locale locale,
int nAttributeId)
Gets extra parameters values for the attribute |
java.lang.String |
getModifyFormHtml(DocumentAttribute attribute,
java.util.Locale locale)
Gets the part of an HTML form to modify attribute data |
void |
setAttributeTypeCode(java.lang.String strCode)
Define the attribute Type code |
java.lang.String |
validateValue(byte[] baValue)
Validate the value for the attribute |
java.lang.String |
validateValue(java.lang.String strValue)
Validate the value for the attribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultManager()
Method Detail |
---|
public java.lang.String getCreateFormHtml(DocumentAttribute attribute, java.util.Locale locale)
getCreateFormHtml
in interface AttributeManager
attribute
- The attributelocale
- The current Locale
public java.lang.String getModifyFormHtml(DocumentAttribute attribute, java.util.Locale locale)
getModifyFormHtml
in interface AttributeManager
attribute
- The attributelocale
- The current Locale
public java.util.List<AttributeTypeParameter> getExtraParameters(java.util.Locale locale)
getExtraParameters
in interface AttributeManager
locale
- The current Locale
public java.util.Collection<AttributeTypeParameter> getExtraParametersValues(java.util.Locale locale, int nAttributeId)
getExtraParametersValues
in interface AttributeManager
locale
- The current LocalenAttributeId
-
public void setAttributeTypeCode(java.lang.String strCode)
setAttributeTypeCode
in interface AttributeManager
strCode
- The Attribute Type Codepublic java.lang.String getAttributeTypeCode()
getAttributeTypeCode
in interface AttributeManager
public java.lang.String validateValue(java.lang.String strValue)
validateValue
in interface AttributeManager
strValue
- The value to check
public java.lang.String validateValue(byte[] baValue)
validateValue
in interface AttributeManager
baValue
- The value to check
public java.lang.String getAttributeXmlValue(Document document, DocumentAttribute attribute)
getAttributeXmlValue
in interface AttributeManager
document
- The documentattribute
- The attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |