All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.anosite.gen.asuserdata.service.IASUserDataService Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
/**
 ********************************************************************************
 *** IASUserDataService.java                                                  ***
 *** Generator: net.anotheria.asg.generator.model.ServiceGenerator            ***
 *** generated by AnoSiteGenerator (ASG), Version: 3.2.2                      ***
 *** Copyright (C) 2005 - 2023 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.asuserdata.service;

import java.util.List;
import net.anotheria.util.sorter.SortType;
import net.anotheria.anosite.gen.asuserdata.data.UserDef;
import net.anotheria.anosite.gen.asuserdata.data.RoleDef;
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 IASUserDataService extends ASGService{

// Generated by: class net.anotheria.asg.generator.model.ServiceGenerator.generateInterface

	/**
	 * Returns all UserDefs objects stored.
	 */
	List getUserDefs() throws ASUserDataServiceException;

	/**
	 * Returns all UserDefs objects sorted by given sortType.
	 */
	List getUserDefs(SortType sortType) throws ASUserDataServiceException;

	/**
	 * Deletes a UserDef object by id.
	 */
	void deleteUserDef(String id) throws ASUserDataServiceException;

	/**
	 * Deletes a UserDef object.
	 */
	void deleteUserDef(UserDef userdef) throws ASUserDataServiceException;

	/**
	 * Deletes multiple UserDef object.
	 */
	void deleteUserDefs(List list) throws ASUserDataServiceException;

	/**
	 * Returns the UserDef object with the specified id.
	 */
	UserDef getUserDef(String id) throws ASUserDataServiceException;

	/**
	 * Imports a new UserDef object.
	 * Returns the created version.
	 */
	UserDef importUserDef(UserDef userdef) throws ASUserDataServiceException;

	/**
	 * Imports multiple new  UserDef object.
	 * Returns the created versions.
	 */
	List importUserDefs(List list) throws ASUserDataServiceException;

	/**
	 * Creates a new UserDef object.
	 * Returns the created version.
	 */
	UserDef createUserDef(UserDef userdef) throws ASUserDataServiceException;

	/**
	 * Creates multiple new UserDef objects.
	 * Returns the created versions.
	 */
	List createUserDefs(List list) throws ASUserDataServiceException;

	/**
	 * Updates a UserDef object.
	 * Returns the updated version.
	 */
	UserDef updateUserDef(UserDef userdef) throws ASUserDataServiceException;

	/**
	 * Updates multiple UserDef objects.
	 * Returns the updated versions.
	 */
	List updateUserDefs(List list) throws ASUserDataServiceException;

	/**
	 * Returns all UserDef objects, where property with given name equals object.
	 */
	List getUserDefsByProperty(String propertyName, Object value) throws ASUserDataServiceException;

	/**
	 * Returns all UserDef objects, where property with given name equals object, sorted.
	 */
	List getUserDefsByProperty(String propertyName, Object value, SortType sortType) throws ASUserDataServiceException;

	/**
	 * Executes a query.
	 */
	QueryResult executeQueryOnUserDefs(DocumentQuery query) throws ASUserDataServiceException;

	/**
	 * Returns all UserDef objects, where property matches.
	 */
	List getUserDefsByProperty(QueryProperty... property) throws ASUserDataServiceException;

	/**
	 * Returns all UserDef objects, where property matches, sorted.
	 */
	List getUserDefsByProperty(SortType sortType, QueryProperty... property) throws ASUserDataServiceException;

	/**
	 * Returns all UserDefs count.
	 */
	int getUserDefsCount() throws ASUserDataServiceException;

	/**
	 * Returns UserDefs objects segment.
	 */
	List getUserDefs(Segment aSegment) throws ASUserDataServiceException;

	/**
	 * Returns UserDef objects segment, where property matches.
	 */
	List getUserDefsByProperty(Segment aSegment, QueryProperty... aProperty) throws ASUserDataServiceException;

	/**
	 * Returns UserDef objects segment, where property matches, sorted.
	 */
	List getUserDefsByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws ASUserDataServiceException;

	/**
	 * Creates an xml element with selected contained data.
	 */
	XMLNode exportUserDefsToXML(List listUserDefs)  throws ASUserDataServiceException;

	/**
	 * Create json object list dependencies for this UserDef document.
	 */
	void fetchUserDef(String id, Set addedDocuments, JSONArray data) throws ASUserDataServiceException;

	/**
	 * Returns all RoleDefs objects stored.
	 */
	List getRoleDefs() throws ASUserDataServiceException;

	/**
	 * Returns all RoleDefs objects sorted by given sortType.
	 */
	List getRoleDefs(SortType sortType) throws ASUserDataServiceException;

	/**
	 * Deletes a RoleDef object by id.
	 */
	void deleteRoleDef(String id) throws ASUserDataServiceException;

	/**
	 * Deletes a RoleDef object.
	 */
	void deleteRoleDef(RoleDef roledef) throws ASUserDataServiceException;

	/**
	 * Deletes multiple RoleDef object.
	 */
	void deleteRoleDefs(List list) throws ASUserDataServiceException;

	/**
	 * Returns the RoleDef object with the specified id.
	 */
	RoleDef getRoleDef(String id) throws ASUserDataServiceException;

	/**
	 * Imports a new RoleDef object.
	 * Returns the created version.
	 */
	RoleDef importRoleDef(RoleDef roledef) throws ASUserDataServiceException;

	/**
	 * Imports multiple new  RoleDef object.
	 * Returns the created versions.
	 */
	List importRoleDefs(List list) throws ASUserDataServiceException;

	/**
	 * Creates a new RoleDef object.
	 * Returns the created version.
	 */
	RoleDef createRoleDef(RoleDef roledef) throws ASUserDataServiceException;

	/**
	 * Creates multiple new RoleDef objects.
	 * Returns the created versions.
	 */
	List createRoleDefs(List list) throws ASUserDataServiceException;

	/**
	 * Updates a RoleDef object.
	 * Returns the updated version.
	 */
	RoleDef updateRoleDef(RoleDef roledef) throws ASUserDataServiceException;

	/**
	 * Updates multiple RoleDef objects.
	 * Returns the updated versions.
	 */
	List updateRoleDefs(List list) throws ASUserDataServiceException;

	/**
	 * Returns all RoleDef objects, where property with given name equals object.
	 */
	List getRoleDefsByProperty(String propertyName, Object value) throws ASUserDataServiceException;

	/**
	 * Returns all RoleDef objects, where property with given name equals object, sorted.
	 */
	List getRoleDefsByProperty(String propertyName, Object value, SortType sortType) throws ASUserDataServiceException;

	/**
	 * Executes a query.
	 */
	QueryResult executeQueryOnRoleDefs(DocumentQuery query) throws ASUserDataServiceException;

	/**
	 * Returns all RoleDef objects, where property matches.
	 */
	List getRoleDefsByProperty(QueryProperty... property) throws ASUserDataServiceException;

	/**
	 * Returns all RoleDef objects, where property matches, sorted.
	 */
	List getRoleDefsByProperty(SortType sortType, QueryProperty... property) throws ASUserDataServiceException;

	/**
	 * Returns all RoleDefs count.
	 */
	int getRoleDefsCount() throws ASUserDataServiceException;

	/**
	 * Returns RoleDefs objects segment.
	 */
	List getRoleDefs(Segment aSegment) throws ASUserDataServiceException;

	/**
	 * Returns RoleDef objects segment, where property matches.
	 */
	List getRoleDefsByProperty(Segment aSegment, QueryProperty... aProperty) throws ASUserDataServiceException;

	/**
	 * Returns RoleDef objects segment, where property matches, sorted.
	 */
	List getRoleDefsByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws ASUserDataServiceException;

	/**
	 * Creates an xml element with selected contained data.
	 */
	XMLNode exportRoleDefsToXML(List listRoleDefs)  throws ASUserDataServiceException;

	/**
	 * Create json object list dependencies for this RoleDef document.
	 */
	void fetchRoleDef(String id, Set addedDocuments, JSONArray data) throws ASUserDataServiceException;

	/**
	 * Save transferred document by its own type.
	 */
	void executeParsingForDocument (final DocumentName documentName, final JSONObject data) throws ASUserDataServiceException;
	/**
	 * Executes a query on all data objects (documents, vo) which are part of this module and managed by this service.
	 */
	QueryResult executeQueryOnAllObjects(DocumentQuery query) throws ASUserDataServiceException;
	/**
	 * creates an xml element with all contained data.
	 */
	XMLNode exportToXML() throws ASUserDataServiceException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy