fr.cnes.sitools.common
Class AbstractPluginResource
java.lang.Object
ExtendedWadlServerResource
fr.cnes.sitools.common.resource.AbstractSitoolsResource
fr.cnes.sitools.common.SitoolsResource
fr.cnes.sitools.common.AbstractPluginResource
- Direct Known Subclasses:
- AbstractApplicationPluginCommonResource, AbstractConverterResource, AbstractFilterPluginResource, AbstractFilterResource, AbstractResourcePluginResource
public abstract class AbstractPluginResource
- extends SitoolsResource
Abstract class for plugin adminstration ressources
- Author:
- m.gond
| Methods inherited from class fr.cnes.sitools.common.SitoolsResource |
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, getNotificationObject, getRepresentation, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPluginResource
public AbstractPluginResource()
configure
public void configure(com.thoughtworks.xstream.XStream xstream,
Response response)
- Configure the XStream
- Overrides:
configure in class SitoolsResource
- Parameters:
xstream - the XStream to treatresponse - the response used
fromListToMap
public <E extends ExtensionParameter> java.util.Map<java.lang.String,E> fromListToMap(java.util.List<E> list)
- Transform a
List of ExtensionParameter into a Map of String, ExtensionParameter
- Type Parameters:
E - The extensionParameter used- Parameters:
list - the List of ExtensionParameter
- Returns:
- a
Map of String, ExtensionParameter
checkValidity
public <T extends Validable> java.util.Set<ConstraintViolation> checkValidity(T input)
- Check the validaty of the given T object
- Type Parameters:
T - The type of Validable Object to check- Parameters:
input - the SvaModel to validate
- Returns:
- a set of ConstraintViolation if the validation fail, null otherwise
Copyright © 2010-2013 CNES. All Rights Reserved.