net.anotheria.anosite.gen.asfeature.service.IASFeatureService Maven / Gradle / Ivy
/**
********************************************************************************
*** IASFeatureService.java ***
*** Generator: net.anotheria.asg.generator.model.ServiceGenerator ***
*** generated by AnoSiteGenerator (ASG), Version: 2.6.3 ***
*** Copyright (C) 2005 - 2010 Anotheria.net, www.anotheria.net ***
*** All Rights Reserved. ***
********************************************************************************
*** Don't edit this code, if you aren't sure ***
*** that you do exactly know what you are doing! ***
*** It's better to invest time in the generator, as into the generated code. ***
********************************************************************************
*/
package net.anotheria.anosite.gen.asfeature.service;
import java.util.List;
import net.anotheria.util.sorter.SortType;
import net.anotheria.anosite.gen.asfeature.data.Feature;
import java.util.Set;
import org.codehaus.jettison.json.JSONObject;
import org.codehaus.jettison.json.JSONArray;
import net.anotheria.anosite.gen.shared.util.DocumentName;
import net.anotheria.util.xml.XMLNode;
import net.anotheria.util.slicer.Segment;
import net.anotheria.anodoc.query2.DocumentQuery;
import net.anotheria.anodoc.query2.QueryResult;
import net.anotheria.anodoc.query2.QueryProperty;
import net.anotheria.asg.service.ASGService;
public interface IASFeatureService extends ASGService{
// Generated by: class net.anotheria.asg.generator.model.ServiceGenerator.generateInterface
/**
* Returns all Features objects stored.
*/
public List getFeatures() throws ASFeatureServiceException;
/**
* Returns all Features objects sorted by given sortType.
*/
public List getFeatures(SortType sortType) throws ASFeatureServiceException;
/**
* Deletes a Feature object by id.
*/
public void deleteFeature(String id) throws ASFeatureServiceException;
/**
* Deletes a Feature object.
*/
public void deleteFeature(Feature feature) throws ASFeatureServiceException;
/**
* Deletes multiple Feature object.
*/
public void deleteFeatures(List list) throws ASFeatureServiceException;
/**
* Returns the Feature object with the specified id.
*/
public Feature getFeature(String id) throws ASFeatureServiceException;
/**
* Imports a new Feature object.
* Returns the created version.
*/
public Feature importFeature(Feature feature) throws ASFeatureServiceException;
/**
* Imports multiple new Feature object.
* Returns the created versions.
*/
public List importFeatures(List list) throws ASFeatureServiceException;
/**
* Creates a new Feature object.
* Returns the created version.
*/
public Feature createFeature(Feature feature) throws ASFeatureServiceException;
/**
* Creates multiple new Feature objects.
* Returns the created versions.
*/
public List createFeatures(List list) throws ASFeatureServiceException;
/**
* Updates a Feature object.
* Returns the updated version.
*/
public Feature updateFeature(Feature feature) throws ASFeatureServiceException;
/**
* Updates mutiple Feature objects.
* Returns the updated versions.
*/
public List updateFeatures(List list) throws ASFeatureServiceException;
/**
* Returns all Feature objects, where property with given name equals object.
*/
public List getFeaturesByProperty(String propertyName, Object value) throws ASFeatureServiceException;
/**
* Returns all Feature objects, where property with given name equals object, sorted
*/
public List getFeaturesByProperty(String propertyName, Object value, SortType sortType) throws ASFeatureServiceException;
/**
* Executes a query
*/
public QueryResult executeQueryOnFeatures(DocumentQuery query) throws ASFeatureServiceException;
/**
* Returns all Feature objects, where property matches.
*/
public List getFeaturesByProperty(QueryProperty... property) throws ASFeatureServiceException;
/**
* Returns all Feature objects, where property matches, sorted
*/
public List getFeaturesByProperty(SortType sortType, QueryProperty... property) throws ASFeatureServiceException;
/**
* Returns all Features count.
*/
public int getFeaturesCount() throws ASFeatureServiceException;
/**
* Returns Features objects segment.
*/
public List getFeatures(Segment aSegment) throws ASFeatureServiceException;
/**
* Returns Feature objects segment, where property matches.
*/
public List getFeaturesByProperty(Segment aSegment, QueryProperty... aProperty) throws ASFeatureServiceException;
/**
* Returns Feature objects segment, where property matches, sorted.
*/
public List getFeaturesByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws ASFeatureServiceException;
/**
* creates an xml element with selected contained data
*/
public XMLNode exportFeaturesToXML(List listFeatures) throws ASFeatureServiceException;
/**
* Create json object list dependencies for this Feature document
*/
public void fetchFeature(final String id, Set addedDocuments, JSONArray data) throws ASFeatureServiceException;
/**
* Save transferred document by its own type
*/
public void executeParsingForDocument (final DocumentName documentName, final JSONObject data) throws ASFeatureServiceException;
/**
* Executes a query on all data objects (documents, vo) which are part of this module and managed by this service
*/
public QueryResult executeQueryOnAllObjects(DocumentQuery query) throws ASFeatureServiceException;
/**
* creates an xml element with all contained data.
*/
public XMLNode exportToXML() throws ASFeatureServiceException;
}