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

net.anotheria.anosite.gen.asfeature.service.IASFeatureService Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
/**
 ********************************************************************************
 *** IASFeatureService.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.asfeature.service;

import java.util.List;
import net.anotheria.util.sorter.SortType;
import net.anotheria.anosite.gen.asfeature.data.Feature;
import net.anotheria.anosite.gen.asfeature.data.BrandFeature;
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.
	 */
	List getFeatures() throws ASFeatureServiceException;

	/**
	 * Returns all Features objects sorted by given sortType.
	 */
	List getFeatures(SortType sortType) throws ASFeatureServiceException;

	/**
	 * Deletes a Feature object by id.
	 */
	void deleteFeature(String id) throws ASFeatureServiceException;

	/**
	 * Deletes a Feature object.
	 */
	void deleteFeature(Feature feature) throws ASFeatureServiceException;

	/**
	 * Deletes multiple Feature object.
	 */
	void deleteFeatures(List list) throws ASFeatureServiceException;

	/**
	 * Returns the Feature object with the specified id.
	 */
	Feature getFeature(String id) throws ASFeatureServiceException;

	/**
	 * Imports a new Feature object.
	 * Returns the created version.
	 */
	Feature importFeature(Feature feature) throws ASFeatureServiceException;

	/**
	 * Imports multiple new  Feature object.
	 * Returns the created versions.
	 */
	List importFeatures(List list) throws ASFeatureServiceException;

	/**
	 * Creates a new Feature object.
	 * Returns the created version.
	 */
	Feature createFeature(Feature feature) throws ASFeatureServiceException;

	/**
	 * Creates multiple new Feature objects.
	 * Returns the created versions.
	 */
	List createFeatures(List list) throws ASFeatureServiceException;

	/**
	 * Updates a Feature object.
	 * Returns the updated version.
	 */
	Feature updateFeature(Feature feature) throws ASFeatureServiceException;

	/**
	 * Updates multiple Feature objects.
	 * Returns the updated versions.
	 */
	List updateFeatures(List list) throws ASFeatureServiceException;

	/**
	 * Returns all Feature objects, where property with given name equals object.
	 */
	List getFeaturesByProperty(String propertyName, Object value) throws ASFeatureServiceException;

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

	/**
	 * Executes a query.
	 */
	QueryResult executeQueryOnFeatures(DocumentQuery query) throws ASFeatureServiceException;

	/**
	 * Returns all Feature objects, where property matches.
	 */
	List getFeaturesByProperty(QueryProperty... property) throws ASFeatureServiceException;

	/**
	 * Returns all Feature objects, where property matches, sorted.
	 */
	List getFeaturesByProperty(SortType sortType, QueryProperty... property) throws ASFeatureServiceException;

	/**
	 * Returns all Features count.
	 */
	int getFeaturesCount() throws ASFeatureServiceException;

	/**
	 * Returns Features objects segment.
	 */
	List getFeatures(Segment aSegment) throws ASFeatureServiceException;

	/**
	 * Returns Feature objects segment, where property matches.
	 */
	List getFeaturesByProperty(Segment aSegment, QueryProperty... aProperty) throws ASFeatureServiceException;

	/**
	 * Returns Feature objects segment, where property matches, sorted.
	 */
	List getFeaturesByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws ASFeatureServiceException;

	/**
	 * Creates an xml element with selected contained data.
	 */
	XMLNode exportFeaturesToXML(List listFeatures)  throws ASFeatureServiceException;

	/**
	 * Create json object list dependencies for this Feature document.
	 */
	void fetchFeature(String id, Set addedDocuments, JSONArray data) throws ASFeatureServiceException;

	/**
	 * Returns all BrandFeatures objects stored.
	 */
	List getBrandFeatures() throws ASFeatureServiceException;

	/**
	 * Returns all BrandFeatures objects sorted by given sortType.
	 */
	List getBrandFeatures(SortType sortType) throws ASFeatureServiceException;

	/**
	 * Deletes a BrandFeature object by id.
	 */
	void deleteBrandFeature(String id) throws ASFeatureServiceException;

	/**
	 * Deletes a BrandFeature object.
	 */
	void deleteBrandFeature(BrandFeature brandfeature) throws ASFeatureServiceException;

	/**
	 * Deletes multiple BrandFeature object.
	 */
	void deleteBrandFeatures(List list) throws ASFeatureServiceException;

	/**
	 * Returns the BrandFeature object with the specified id.
	 */
	BrandFeature getBrandFeature(String id) throws ASFeatureServiceException;

	/**
	 * Imports a new BrandFeature object.
	 * Returns the created version.
	 */
	BrandFeature importBrandFeature(BrandFeature brandfeature) throws ASFeatureServiceException;

	/**
	 * Imports multiple new  BrandFeature object.
	 * Returns the created versions.
	 */
	List importBrandFeatures(List list) throws ASFeatureServiceException;

	/**
	 * Creates a new BrandFeature object.
	 * Returns the created version.
	 */
	BrandFeature createBrandFeature(BrandFeature brandfeature) throws ASFeatureServiceException;

	/**
	 * Creates multiple new BrandFeature objects.
	 * Returns the created versions.
	 */
	List createBrandFeatures(List list) throws ASFeatureServiceException;

	/**
	 * Updates a BrandFeature object.
	 * Returns the updated version.
	 */
	BrandFeature updateBrandFeature(BrandFeature brandfeature) throws ASFeatureServiceException;

	/**
	 * Updates multiple BrandFeature objects.
	 * Returns the updated versions.
	 */
	List updateBrandFeatures(List list) throws ASFeatureServiceException;

	/**
	 * Returns all BrandFeature objects, where property with given name equals object.
	 */
	List getBrandFeaturesByProperty(String propertyName, Object value) throws ASFeatureServiceException;

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

	/**
	 * Executes a query.
	 */
	QueryResult executeQueryOnBrandFeatures(DocumentQuery query) throws ASFeatureServiceException;

	/**
	 * Returns all BrandFeature objects, where property matches.
	 */
	List getBrandFeaturesByProperty(QueryProperty... property) throws ASFeatureServiceException;

	/**
	 * Returns all BrandFeature objects, where property matches, sorted.
	 */
	List getBrandFeaturesByProperty(SortType sortType, QueryProperty... property) throws ASFeatureServiceException;

	/**
	 * Returns all BrandFeatures count.
	 */
	int getBrandFeaturesCount() throws ASFeatureServiceException;

	/**
	 * Returns BrandFeatures objects segment.
	 */
	List getBrandFeatures(Segment aSegment) throws ASFeatureServiceException;

	/**
	 * Returns BrandFeature objects segment, where property matches.
	 */
	List getBrandFeaturesByProperty(Segment aSegment, QueryProperty... aProperty) throws ASFeatureServiceException;

	/**
	 * Returns BrandFeature objects segment, where property matches, sorted.
	 */
	List getBrandFeaturesByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws ASFeatureServiceException;

	/**
	 * Creates an xml element with selected contained data.
	 */
	XMLNode exportBrandFeaturesToXML(List listBrandFeatures)  throws ASFeatureServiceException;

	/**
	 * Create json object list dependencies for this BrandFeature document.
	 */
	void fetchBrandFeature(String id, Set addedDocuments, JSONArray data) throws ASFeatureServiceException;

	/**
	 * Save transferred document by its own type.
	 */
	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.
	 */
	QueryResult executeQueryOnAllObjects(DocumentQuery query) throws ASFeatureServiceException;
	/**
	 * creates an xml element with all contained data.
	 */
	XMLNode exportToXML() throws ASFeatureServiceException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy