net.anotheria.anosite.gen.asaction.service.IASActionService Maven / Gradle / Ivy
/**
********************************************************************************
*** IASActionService.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.asaction.service;
import java.util.List;
import net.anotheria.util.sorter.SortType;
import net.anotheria.anosite.gen.asaction.data.ActionDef;
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 IASActionService extends ASGService{
// Generated by: class net.anotheria.asg.generator.model.ServiceGenerator.generateInterface
/**
* Returns all ActionDefs objects stored.
*/
public List getActionDefs() throws ASActionServiceException;
/**
* Returns all ActionDefs objects sorted by given sortType.
*/
public List getActionDefs(SortType sortType) throws ASActionServiceException;
/**
* Deletes a ActionDef object by id.
*/
public void deleteActionDef(String id) throws ASActionServiceException;
/**
* Deletes a ActionDef object.
*/
public void deleteActionDef(ActionDef actiondef) throws ASActionServiceException;
/**
* Deletes multiple ActionDef object.
*/
public void deleteActionDefs(List list) throws ASActionServiceException;
/**
* Returns the ActionDef object with the specified id.
*/
public ActionDef getActionDef(String id) throws ASActionServiceException;
/**
* Imports a new ActionDef object.
* Returns the created version.
*/
public ActionDef importActionDef(ActionDef actiondef) throws ASActionServiceException;
/**
* Imports multiple new ActionDef object.
* Returns the created versions.
*/
public List importActionDefs(List list) throws ASActionServiceException;
/**
* Creates a new ActionDef object.
* Returns the created version.
*/
public ActionDef createActionDef(ActionDef actiondef) throws ASActionServiceException;
/**
* Creates multiple new ActionDef objects.
* Returns the created versions.
*/
public List createActionDefs(List list) throws ASActionServiceException;
/**
* Updates a ActionDef object.
* Returns the updated version.
*/
public ActionDef updateActionDef(ActionDef actiondef) throws ASActionServiceException;
/**
* Updates mutiple ActionDef objects.
* Returns the updated versions.
*/
public List updateActionDefs(List list) throws ASActionServiceException;
/**
* Returns all ActionDef objects, where property with given name equals object.
*/
public List getActionDefsByProperty(String propertyName, Object value) throws ASActionServiceException;
/**
* Returns all ActionDef objects, where property with given name equals object, sorted
*/
public List getActionDefsByProperty(String propertyName, Object value, SortType sortType) throws ASActionServiceException;
/**
* Executes a query
*/
public QueryResult executeQueryOnActionDefs(DocumentQuery query) throws ASActionServiceException;
/**
* Returns all ActionDef objects, where property matches.
*/
public List getActionDefsByProperty(QueryProperty... property) throws ASActionServiceException;
/**
* Returns all ActionDef objects, where property matches, sorted
*/
public List getActionDefsByProperty(SortType sortType, QueryProperty... property) throws ASActionServiceException;
/**
* Returns all ActionDefs count.
*/
public int getActionDefsCount() throws ASActionServiceException;
/**
* Returns ActionDefs objects segment.
*/
public List getActionDefs(Segment aSegment) throws ASActionServiceException;
/**
* Returns ActionDef objects segment, where property matches.
*/
public List getActionDefsByProperty(Segment aSegment, QueryProperty... aProperty) throws ASActionServiceException;
/**
* Returns ActionDef objects segment, where property matches, sorted.
*/
public List getActionDefsByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws ASActionServiceException;
/**
* creates an xml element with selected contained data
*/
public XMLNode exportActionDefsToXML(List listActionDefs) throws ASActionServiceException;
/**
* Create json object list dependencies for this ActionDef document
*/
public void fetchActionDef(final String id, Set addedDocuments, JSONArray data) throws ASActionServiceException;
/**
* Save transferred document by its own type
*/
public void executeParsingForDocument (final DocumentName documentName, final JSONObject data) throws ASActionServiceException;
/**
* 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 ASActionServiceException;
/**
* creates an xml element with all contained data.
*/
public XMLNode exportToXML() throws ASActionServiceException;
}