net.anotheria.anosite.gen.anoaccessapplicationdata.service.IAnoAccessApplicationDataService Maven / Gradle / Ivy
/**
********************************************************************************
*** IAnoAccessApplicationDataService.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.anoaccessapplicationdata.service;
import java.util.List;
import net.anotheria.util.sorter.SortType;
import net.anotheria.anosite.gen.anoaccessapplicationdata.data.UserData;
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 IAnoAccessApplicationDataService extends ASGService{
// Generated by: class net.anotheria.asg.generator.model.ServiceGenerator.generateInterface
/**
* Returns all UserDatas objects stored.
*/
public List getUserDatas() throws AnoAccessApplicationDataServiceException;
/**
* Returns all UserDatas objects sorted by given sortType.
*/
public List getUserDatas(SortType sortType) throws AnoAccessApplicationDataServiceException;
/**
* Deletes a UserData object by id.
*/
public void deleteUserData(String id) throws AnoAccessApplicationDataServiceException;
/**
* Deletes a UserData object.
*/
public void deleteUserData(UserData userdata) throws AnoAccessApplicationDataServiceException;
/**
* Deletes multiple UserData object.
*/
public void deleteUserDatas(List list) throws AnoAccessApplicationDataServiceException;
/**
* Returns the UserData object with the specified id.
*/
public UserData getUserData(String id) throws AnoAccessApplicationDataServiceException;
/**
* Imports a new UserData object.
* Returns the created version.
*/
public UserData importUserData(UserData userdata) throws AnoAccessApplicationDataServiceException;
/**
* Imports multiple new UserData object.
* Returns the created versions.
*/
public List importUserDatas(List list) throws AnoAccessApplicationDataServiceException;
/**
* Creates a new UserData object.
* Returns the created version.
*/
public UserData createUserData(UserData userdata) throws AnoAccessApplicationDataServiceException;
/**
* Creates multiple new UserData objects.
* Returns the created versions.
*/
public List createUserDatas(List list) throws AnoAccessApplicationDataServiceException;
/**
* Updates a UserData object.
* Returns the updated version.
*/
public UserData updateUserData(UserData userdata) throws AnoAccessApplicationDataServiceException;
/**
* Updates mutiple UserData objects.
* Returns the updated versions.
*/
public List updateUserDatas(List list) throws AnoAccessApplicationDataServiceException;
/**
* Returns all UserData objects, where property with given name equals object.
*/
public List getUserDatasByProperty(String propertyName, Object value) throws AnoAccessApplicationDataServiceException;
/**
* Returns all UserData objects, where property with given name equals object, sorted
*/
public List getUserDatasByProperty(String propertyName, Object value, SortType sortType) throws AnoAccessApplicationDataServiceException;
/**
* Executes a query
*/
public QueryResult executeQueryOnUserDatas(DocumentQuery query) throws AnoAccessApplicationDataServiceException;
/**
* Returns all UserData objects, where property matches.
*/
public List getUserDatasByProperty(QueryProperty... property) throws AnoAccessApplicationDataServiceException;
/**
* Returns all UserData objects, where property matches, sorted
*/
public List getUserDatasByProperty(SortType sortType, QueryProperty... property) throws AnoAccessApplicationDataServiceException;
/**
* Returns all UserDatas count.
*/
public int getUserDatasCount() throws AnoAccessApplicationDataServiceException;
/**
* Returns UserDatas objects segment.
*/
public List getUserDatas(Segment aSegment) throws AnoAccessApplicationDataServiceException;
/**
* Returns UserData objects segment, where property matches.
*/
public List getUserDatasByProperty(Segment aSegment, QueryProperty... aProperty) throws AnoAccessApplicationDataServiceException;
/**
* Returns UserData objects segment, where property matches, sorted.
*/
public List getUserDatasByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws AnoAccessApplicationDataServiceException;
/**
* creates an xml element with selected contained data
*/
public XMLNode exportUserDatasToXML(List listUserDatas) throws AnoAccessApplicationDataServiceException;
/**
* Create json object list dependencies for this UserData document
*/
public void fetchUserData(final String id, Set addedDocuments, JSONArray data) throws AnoAccessApplicationDataServiceException;
/**
* Save transferred document by its own type
*/
public void executeParsingForDocument (final DocumentName documentName, final JSONObject data) throws AnoAccessApplicationDataServiceException;
/**
* 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 AnoAccessApplicationDataServiceException;
/**
* creates an xml element with all contained data.
*/
public XMLNode exportToXML() throws AnoAccessApplicationDataServiceException;
}