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

net.anotheria.anosite.gen.asblogdata.service.IASBlogDataService Maven / Gradle / Ivy

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

import java.util.List;
import net.anotheria.util.sorter.SortType;
import net.anotheria.anosite.gen.asblogdata.data.Post;
import net.anotheria.anosite.gen.asblogdata.data.Comment;
import net.anotheria.anosite.gen.asblogdata.data.Tag;
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 IASBlogDataService extends ASGService{

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

	/**
	 * Returns all Posts objects stored.
	 */
	public List getPosts() throws ASBlogDataServiceException;

	/**
	 * Returns all Posts objects sorted by given sortType.
	 */
	public List getPosts(SortType sortType) throws ASBlogDataServiceException;

	/**
	 * Deletes a Post object by id.
	 */
	public void deletePost(String id) throws ASBlogDataServiceException;

	/**
	 * Deletes a Post object.
	 */
	public void deletePost(Post post) throws ASBlogDataServiceException;

	/**
	 * Deletes multiple Post object.
	 */
	public void deletePosts(List list) throws ASBlogDataServiceException;

	/**
	 * Returns the Post object with the specified id.
	 */
	public Post getPost(String id) throws ASBlogDataServiceException;

	/**
	 * Imports a new Post object.
	 * Returns the created version.
	 */
	public Post importPost(Post post) throws ASBlogDataServiceException;

	/**
	 * Imports multiple new  Post object.
	 * Returns the created versions.
	 */
	public List importPosts(List list) throws ASBlogDataServiceException;

	/**
	 * Creates a new Post object.
	 * Returns the created version.
	 */
	public Post createPost(Post post) throws ASBlogDataServiceException;

	/**
	 * Creates multiple new Post objects.
	 * Returns the created versions.
	 */
	public List createPosts(List list) throws ASBlogDataServiceException;

	/**
	 * Updates a Post object.
	 * Returns the updated version.
	 */
	public Post updatePost(Post post) throws ASBlogDataServiceException;

	/**
	 * Updates mutiple Post objects.
	 * Returns the updated versions.
	 */
	public List updatePosts(List list) throws ASBlogDataServiceException;

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

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

	/**
	 * Executes a query
	 */
	public QueryResult executeQueryOnPosts(DocumentQuery query) throws ASBlogDataServiceException;

	/**
	 * Returns all Post objects, where property matches.
	 */
	public List getPostsByProperty(QueryProperty... property) throws ASBlogDataServiceException;

	/**
	 * Returns all Post objects, where property matches, sorted
	 */
	public List getPostsByProperty(SortType sortType, QueryProperty... property) throws ASBlogDataServiceException;

	/**
	 * Returns all Posts count.
	 */
	public int getPostsCount() throws ASBlogDataServiceException;

	/**
	 * Returns Posts objects segment.
	 */
	public List getPosts(Segment aSegment) throws ASBlogDataServiceException;

	/**
	 * Returns Post objects segment, where property matches.
	 */
	public List getPostsByProperty(Segment aSegment, QueryProperty... aProperty) throws ASBlogDataServiceException;

	/**
	 * Returns Post objects segment, where property matches, sorted.
	 */
	public List getPostsByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws ASBlogDataServiceException;

	/**
	 * creates an xml element with selected contained data
	 */
	public XMLNode exportPostsToXML(List listPosts)  throws ASBlogDataServiceException;

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

	/**
	 * Returns all Comments objects stored.
	 */
	public List getComments() throws ASBlogDataServiceException;

	/**
	 * Returns all Comments objects sorted by given sortType.
	 */
	public List getComments(SortType sortType) throws ASBlogDataServiceException;

	/**
	 * Deletes a Comment object by id.
	 */
	public void deleteComment(String id) throws ASBlogDataServiceException;

	/**
	 * Deletes a Comment object.
	 */
	public void deleteComment(Comment comment) throws ASBlogDataServiceException;

	/**
	 * Deletes multiple Comment object.
	 */
	public void deleteComments(List list) throws ASBlogDataServiceException;

	/**
	 * Returns the Comment object with the specified id.
	 */
	public Comment getComment(String id) throws ASBlogDataServiceException;

	/**
	 * Imports a new Comment object.
	 * Returns the created version.
	 */
	public Comment importComment(Comment comment) throws ASBlogDataServiceException;

	/**
	 * Imports multiple new  Comment object.
	 * Returns the created versions.
	 */
	public List importComments(List list) throws ASBlogDataServiceException;

	/**
	 * Creates a new Comment object.
	 * Returns the created version.
	 */
	public Comment createComment(Comment comment) throws ASBlogDataServiceException;

	/**
	 * Creates multiple new Comment objects.
	 * Returns the created versions.
	 */
	public List createComments(List list) throws ASBlogDataServiceException;

	/**
	 * Updates a Comment object.
	 * Returns the updated version.
	 */
	public Comment updateComment(Comment comment) throws ASBlogDataServiceException;

	/**
	 * Updates mutiple Comment objects.
	 * Returns the updated versions.
	 */
	public List updateComments(List list) throws ASBlogDataServiceException;

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

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

	/**
	 * Executes a query
	 */
	public QueryResult executeQueryOnComments(DocumentQuery query) throws ASBlogDataServiceException;

	/**
	 * Returns all Comment objects, where property matches.
	 */
	public List getCommentsByProperty(QueryProperty... property) throws ASBlogDataServiceException;

	/**
	 * Returns all Comment objects, where property matches, sorted
	 */
	public List getCommentsByProperty(SortType sortType, QueryProperty... property) throws ASBlogDataServiceException;

	/**
	 * Returns all Comments count.
	 */
	public int getCommentsCount() throws ASBlogDataServiceException;

	/**
	 * Returns Comments objects segment.
	 */
	public List getComments(Segment aSegment) throws ASBlogDataServiceException;

	/**
	 * Returns Comment objects segment, where property matches.
	 */
	public List getCommentsByProperty(Segment aSegment, QueryProperty... aProperty) throws ASBlogDataServiceException;

	/**
	 * Returns Comment objects segment, where property matches, sorted.
	 */
	public List getCommentsByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws ASBlogDataServiceException;

	/**
	 * creates an xml element with selected contained data
	 */
	public XMLNode exportCommentsToXML(List listComments)  throws ASBlogDataServiceException;

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

	/**
	 * Returns all Tags objects stored.
	 */
	public List getTags() throws ASBlogDataServiceException;

	/**
	 * Returns all Tags objects sorted by given sortType.
	 */
	public List getTags(SortType sortType) throws ASBlogDataServiceException;

	/**
	 * Deletes a Tag object by id.
	 */
	public void deleteTag(String id) throws ASBlogDataServiceException;

	/**
	 * Deletes a Tag object.
	 */
	public void deleteTag(Tag tag) throws ASBlogDataServiceException;

	/**
	 * Deletes multiple Tag object.
	 */
	public void deleteTags(List list) throws ASBlogDataServiceException;

	/**
	 * Returns the Tag object with the specified id.
	 */
	public Tag getTag(String id) throws ASBlogDataServiceException;

	/**
	 * Imports a new Tag object.
	 * Returns the created version.
	 */
	public Tag importTag(Tag tag) throws ASBlogDataServiceException;

	/**
	 * Imports multiple new  Tag object.
	 * Returns the created versions.
	 */
	public List importTags(List list) throws ASBlogDataServiceException;

	/**
	 * Creates a new Tag object.
	 * Returns the created version.
	 */
	public Tag createTag(Tag tag) throws ASBlogDataServiceException;

	/**
	 * Creates multiple new Tag objects.
	 * Returns the created versions.
	 */
	public List createTags(List list) throws ASBlogDataServiceException;

	/**
	 * Updates a Tag object.
	 * Returns the updated version.
	 */
	public Tag updateTag(Tag tag) throws ASBlogDataServiceException;

	/**
	 * Updates mutiple Tag objects.
	 * Returns the updated versions.
	 */
	public List updateTags(List list) throws ASBlogDataServiceException;

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

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

	/**
	 * Executes a query
	 */
	public QueryResult executeQueryOnTags(DocumentQuery query) throws ASBlogDataServiceException;

	/**
	 * Returns all Tag objects, where property matches.
	 */
	public List getTagsByProperty(QueryProperty... property) throws ASBlogDataServiceException;

	/**
	 * Returns all Tag objects, where property matches, sorted
	 */
	public List getTagsByProperty(SortType sortType, QueryProperty... property) throws ASBlogDataServiceException;

	/**
	 * Returns all Tags count.
	 */
	public int getTagsCount() throws ASBlogDataServiceException;

	/**
	 * Returns Tags objects segment.
	 */
	public List getTags(Segment aSegment) throws ASBlogDataServiceException;

	/**
	 * Returns Tag objects segment, where property matches.
	 */
	public List getTagsByProperty(Segment aSegment, QueryProperty... aProperty) throws ASBlogDataServiceException;

	/**
	 * Returns Tag objects segment, where property matches, sorted.
	 */
	public List getTagsByProperty(Segment aSegment, SortType aSortType, QueryProperty... aProperty) throws ASBlogDataServiceException;

	/**
	 * creates an xml element with selected contained data
	 */
	public XMLNode exportTagsToXML(List listTags)  throws ASBlogDataServiceException;

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

	/**
	 * Save transferred document by its own type
	 */
	public void executeParsingForDocument (final DocumentName documentName, final JSONObject data) throws ASBlogDataServiceException;
	/**
	 * 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 ASBlogDataServiceException;
	/**
	 * creates an xml element with all contained data.
	 */
	public XMLNode exportToXML() throws ASBlogDataServiceException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy