|
||||||||||
| 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 | |
|---|---|
boolean |
canBeUsedAsThumbnail()
Tells if the attrubute can be used as Thumbnail (image) |
java.util.Collection<AttributeTypeParameter> |
getAttributeParametersValues(int nAttributeId,
java.util.Locale locale)
Gets parameters values for the attribute |
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,
java.lang.String strBaseUrl)
Gets the part of an HTML form to enter attribute data |
java.lang.String |
getCreateParametersFormHtml(java.util.Locale locale)
Gets the part of an HTML form to enter parameters 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,
Document document,
java.util.Locale locale,
java.lang.String strBaseUrl)
Gets the part of an HTML form to modify attribute data |
java.lang.String |
getModifyParametersFormHtml(java.util.Locale locale,
int nAttributeId)
Gets the part of an HTML form to modify parameters data |
void |
setAttributeTypeCode(java.lang.String strCode)
Define the attribute Type code |
java.lang.String |
validateValue(int nAttributeId,
java.lang.String strValue,
java.util.Locale locale)
Validate the value for the attribute |
java.lang.String |
validateValueParameters(java.util.List<AttributeTypeParameter> listParameters,
java.util.Locale locale)
Validate the value for the parameters |
| 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,
java.lang.String strBaseUrl)
getCreateFormHtml in interface AttributeManagerattribute - The attributelocale - The current LocalestrBaseUrl - The base url
public java.lang.String getModifyFormHtml(DocumentAttribute attribute,
Document document,
java.util.Locale locale,
java.lang.String strBaseUrl)
getModifyFormHtml in interface AttributeManagerattribute - The attributedocument - The Document Objectlocale - The current LocalestrBaseUrl - The base url
public java.lang.String getCreateParametersFormHtml(java.util.Locale locale)
getCreateParametersFormHtml in interface AttributeManagerlocale - The current Locale
public java.lang.String getModifyParametersFormHtml(java.util.Locale locale,
int nAttributeId)
getModifyParametersFormHtml in interface AttributeManagerlocale - The current LocalenAttributeId - Attribute Id
public java.util.List<AttributeTypeParameter> getExtraParameters(java.util.Locale locale)
getExtraParameters in interface AttributeManagerlocale - The current Locale
public java.util.Collection<AttributeTypeParameter> getExtraParametersValues(java.util.Locale locale,
int nAttributeId)
getExtraParametersValues in interface AttributeManagerlocale - The current LocalenAttributeId - The attribute identifier
public void setAttributeTypeCode(java.lang.String strCode)
setAttributeTypeCode in interface AttributeManagerstrCode - The Attribute Type Codepublic java.lang.String getAttributeTypeCode()
getAttributeTypeCode in interface AttributeManager
public java.lang.String validateValue(int nAttributeId,
java.lang.String strValue,
java.util.Locale locale)
validateValue in interface AttributeManagernAttributeId - The attribute identifierstrValue - The value to checklocale - The current Locale
public java.lang.String validateValueParameters(java.util.List<AttributeTypeParameter> listParameters,
java.util.Locale locale)
validateValueParameters in interface AttributeManagerlistParameters - The list of parameters to checklocale - The current Locale
public java.lang.String getAttributeXmlValue(Document document,
DocumentAttribute attribute)
getAttributeXmlValue in interface AttributeManagerdocument - The documentattribute - The attribute
public java.util.Collection<AttributeTypeParameter> getAttributeParametersValues(int nAttributeId,
java.util.Locale locale)
nAttributeId - The attribute Idlocale - The current Locale
public boolean canBeUsedAsThumbnail()
canBeUsedAsThumbnail in interface AttributeManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||