|
||||||||||
| 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) |
Collection<AttributeTypeParameter> |
getAttributeParametersValues(int nAttributeId,
Locale locale)
Get the attribute type parameters of an attribute |
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 |
protected Map<String,List<String>> |
getParameters(int nAttributeId,
Locale locale)
Get parameters map |
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 |
| 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 String getCreateFormHtml(DocumentAttribute attribute,
Locale locale,
String strBaseUrl)
getCreateFormHtml in interface AttributeManagerattribute - The attributelocale - The current LocalestrBaseUrl - the base url
public String getModifyFormHtml(DocumentAttribute attribute,
Document document,
Locale locale,
String strBaseUrl)
getModifyFormHtml in interface AttributeManagerattribute - The attributedocument - The attribute documentlocale - The current LocalestrBaseUrl - The base url
public String getCreateParametersFormHtml(Locale locale)
getCreateParametersFormHtml in interface AttributeManagerlocale - The current Locale
public String getCreateParametersFormHtml(List<AttributeTypeParameter> listParameters,
Locale locale)
getCreateParametersFormHtml in interface AttributeManagerlistParameters - list attribute type parameterslocale - The current Locale
public String getModifyParametersFormHtml(Locale locale,
int nAttributeId)
getModifyParametersFormHtml in interface AttributeManagerlocale - The current LocalenAttributeId - Attribute Id
public List<AttributeTypeParameter> getExtraParameters(Locale locale)
getExtraParameters in interface AttributeManagerlocale - The current Locale
public List<AttributeTypeParameter> getExtraParametersValues(Locale locale,
int nAttributeId)
getExtraParametersValues in interface AttributeManagerlocale - The current Locale
public void setAttributeTypeCode(String strCode)
setAttributeTypeCode in interface AttributeManagerstrCode - The Attribute Type Codepublic String getAttributeTypeCode()
getAttributeTypeCode in interface AttributeManager
public String validateValue(int nAttributeId,
String strValue,
Locale locale)
validateValue in interface AttributeManagernAttributeId - The attribute identifierstrValue - The value to checklocale - The current Locale
public String validateValueParameters(List<AttributeTypeParameter> listParameters,
Locale locale)
validateValueParameters in interface AttributeManagerlistParameters - The list of parameters to checklocale - The locale
public String getAttributeXmlValue(Document document,
DocumentAttribute attribute)
getAttributeXmlValue in interface AttributeManagerdocument - The documentattribute - The attribute
public Collection<AttributeTypeParameter> getAttributeParametersValues(int nAttributeId,
Locale locale)
nAttributeId - The id of the attribute to get the parameter oflocale - The locale
public boolean canBeUsedAsThumbnail()
canBeUsedAsThumbnail in interface AttributeManager
public List<AttributeTypeParameter> getValueParameters(javax.servlet.http.HttpServletRequest request,
Locale locale)
getValueParameters in interface AttributeManagerrequest - the HTTP requestlocale - the locale
AttributeTypeParameter
protected Map<String,List<String>> getParameters(int nAttributeId,
Locale locale)
nAttributeId - the attribute identifierlocale - The current locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||