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

net.anotheria.anosite.gen.images.service.IImagesService Maven / Gradle / Ivy

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

import java.util.List;
import net.anotheria.util.sorter.SortType;
import net.anotheria.anosite.gen.images.data.Image;
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 IImagesService extends ASGService{

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

	/**
	 * Returns all Images objects stored.
	 */
	public List getImages() throws ImagesServiceException;

	/**
	 * Returns all Images objects sorted by given sortType.
	 */
	public List getImages(SortType sortType) throws ImagesServiceException;

	/**
	 * Deletes a Image object by id.
	 */
	public void deleteImage(String id) throws ImagesServiceException;

	/**
	 * Deletes a Image object.
	 */
	public void deleteImage(Image image) throws ImagesServiceException;

	/**
	 * Deletes multiple Image object.
	 */
	public void deleteImages(List list) throws ImagesServiceException;

	/**
	 * Returns the Image object with the specified id.
	 */
	public Image getImage(String id) throws ImagesServiceException;

	/**
	 * Imports a new Image object.
	 * Returns the created version.
	 */
	public Image importImage(Image image) throws ImagesServiceException;

	/**
	 * Imports multiple new  Image object.
	 * Returns the created versions.
	 */
	public List importImages(List list) throws ImagesServiceException;

	/**
	 * Creates a new Image object.
	 * Returns the created version.
	 */
	public Image createImage(Image image) throws ImagesServiceException;

	/**
	 * Creates multiple new Image objects.
	 * Returns the created versions.
	 */
	public List createImages(List list) throws ImagesServiceException;

	/**
	 * Updates a Image object.
	 * Returns the updated version.
	 */
	public Image updateImage(Image image) throws ImagesServiceException;

	/**
	 * Updates mutiple Image objects.
	 * Returns the updated versions.
	 */
	public List updateImages(List list) throws ImagesServiceException;

	/**
	 * Returns all Image objects, where property with given name equals object.
	 */
	public List getImagesByProperty(String propertyName, Object value) throws ImagesServiceException;

	/**
	 * Returns all Image objects, where property with given name equals object, sorted
	 */
	public List getImagesByProperty(String propertyName, Object value, SortType sortType) throws ImagesServiceException;

	/**
	 * Executes a query
	 */
	public QueryResult executeQueryOnImages(DocumentQuery query) throws ImagesServiceException;

	/**
	 * Returns all Image objects, where property matches.
	 */
	public List getImagesByProperty(QueryProperty... property) throws ImagesServiceException;

	/**
	 * Returns all Image objects, where property matches, sorted
	 */
	public List getImagesByProperty(SortType sortType, QueryProperty... property) throws ImagesServiceException;

	/**
	 * Returns all Images count.
	 */
	public int getImagesCount() throws ImagesServiceException;

	/**
	 * Returns Images objects segment.
	 */
	public List getImages(Segment aSegment) throws ImagesServiceException;

	/**
	 * Returns Image objects segment, where property matches.
	 */
	public List getImagesByProperty(Segment aSegment, QueryProperty... aProperty) throws ImagesServiceException;

	/**
	 * Returns Image objects segment, where property matches, sorted.
	 */
	public List getImagesByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws ImagesServiceException;

	/**
	 * In all documents of type Image copies all multilingual fields from sourceLanguage to targetLanguage
	 */
	public void copyMultilingualAttributesInAllImages(String sourceLanguage, String targetLanguage) throws ImagesServiceException;

	/**
	 * creates an xml element with selected contained data
	 */
	public XMLNode exportImagesToXML(List listImages)  throws ImagesServiceException;
	/**
	 * creates an xml element with selected contained data but only selected languages in multilingual attributes
	 */
	public XMLNode exportImagesToXML(String[] languages,List listImages) throws ImagesServiceException;

	/**
	 * Create json object list dependencies for this Image document
	 */
	public void fetchImage(final String id, Set addedDocuments, JSONArray data) throws ImagesServiceException;

	/**
	 * Save transferred document by its own type
	 */
	public void executeParsingForDocument (final DocumentName documentName, final JSONObject data) throws ImagesServiceException;
	/**
	 * Copies all multilingual fields from sourceLanguage to targetLanguage in all data objects (documents, vo) which are part of this module and managed by this service
	 */
	public void copyMultilingualAttributesInAllObjects(String sourceLanguage, String targetLanguage) throws ImagesServiceException;

	/**
	 * 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 ImagesServiceException;
	/**
	 * creates an xml element with all contained data.
	 */
	public XMLNode exportToXML() throws ImagesServiceException;

	/**
	 * creates an xml element with all contained data but only selected languages in multilingual attributes
	 */
	public XMLNode exportToXML(String[] languages) throws ImagesServiceException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy