Interface IImagesService
- All Superinterfaces:
net.anotheria.asg.service.ASGService,net.anotheria.anoprise.metafactory.Service
- All Known Implementing Classes:
ImagesServiceImpl
public interface IImagesService
extends net.anotheria.asg.service.ASGService
-
Method Summary
Modifier and TypeMethodDescriptionvoidcopyMultilingualAttributesInAllImages(String sourceLanguage, String targetLanguage) In all documents of type Image copies all multilingual fields from sourceLanguage to targetLanguage.voidcopyMultilingualAttributesInAllObjects(String sourceLanguage, String targetLanguage) 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.createImage(Image image) Creates a new Image object.createImages(List<Image> list) Creates multiple new Image objects.voiddeleteImage(String id) Deletes a Image object by id.voiddeleteImage(Image image) Deletes a Image object.voiddeleteImages(List<Image> list) Deletes multiple Image object.voidexecuteParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data) Save transferred document by its own type.net.anotheria.anodoc.query2.QueryResultexecuteQueryOnAllObjects(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query on all data objects (documents, vo) which are part of this module and managed by this service.net.anotheria.anodoc.query2.QueryResultexecuteQueryOnImages(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query.net.anotheria.util.xml.XMLNodeexportImagesToXML(String[] languages, List<Image> listImages) creates an xml element with selected contained data but only selected languages in multilingual attributesnet.anotheria.util.xml.XMLNodeexportImagesToXML(List<Image> listImages) Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodecreates an xml element with all contained data.net.anotheria.util.xml.XMLNodeexportToXML(String[] languages) creates an xml element with all contained data but only selected languages in multilingual attributes.voidfetchImage(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) Create json object list dependencies for this Image document.Returns the Image object with the specified id.Returns all Images objects stored.getImages(net.anotheria.util.slicer.Segment aSegment) Returns Images objects segment.getImages(net.anotheria.util.sorter.SortType sortType) Returns all Images objects sorted by given sortType.getImagesByProperty(String propertyName, Object value) Returns all Image objects, where property with given name equals object.getImagesByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Returns all Image objects, where property with given name equals object, sorted.getImagesByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all Image objects, where property matches.getImagesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns Image objects segment, where property matches.getImagesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns Image objects segment, where property matches, sorted.getImagesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all Image objects, where property matches, sorted.intReturns all Images count.importImage(Image image) Imports a new Image object.importImages(List<Image> list) Imports multiple new Image object.updateImage(Image image) Updates a Image object.updateImages(List<Image> list) Updates multiple Image objects.Methods inherited from interface net.anotheria.asg.service.ASGService
addServiceListener, hasServiceListeners, removeServiceListener
-
Method Details
-
getImages
Returns all Images objects stored.- Throws:
ImagesServiceException
-
getImages
Returns all Images objects sorted by given sortType.- Throws:
ImagesServiceException
-
deleteImage
Deletes a Image object by id.- Throws:
ImagesServiceException
-
deleteImage
Deletes a Image object.- Throws:
ImagesServiceException
-
deleteImages
Deletes multiple Image object.- Throws:
ImagesServiceException
-
getImage
Returns the Image object with the specified id.- Throws:
ImagesServiceException
-
importImage
Imports a new Image object. Returns the created version.- Throws:
ImagesServiceException
-
importImages
Imports multiple new Image object. Returns the created versions.- Throws:
ImagesServiceException
-
createImage
Creates a new Image object. Returns the created version.- Throws:
ImagesServiceException
-
createImages
Creates multiple new Image objects. Returns the created versions.- Throws:
ImagesServiceException
-
updateImage
Updates a Image object. Returns the updated version.- Throws:
ImagesServiceException
-
updateImages
Updates multiple Image objects. Returns the updated versions.- Throws:
ImagesServiceException
-
getImagesByProperty
Returns all Image objects, where property with given name equals object.- Throws:
ImagesServiceException
-
getImagesByProperty
List<Image> getImagesByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) throws ImagesServiceException Returns all Image objects, where property with given name equals object, sorted.- Throws:
ImagesServiceException
-
executeQueryOnImages
net.anotheria.anodoc.query2.QueryResult executeQueryOnImages(net.anotheria.anodoc.query2.DocumentQuery query) throws ImagesServiceException Executes a query.- Throws:
ImagesServiceException
-
getImagesByProperty
List<Image> getImagesByProperty(net.anotheria.anodoc.query2.QueryProperty... property) throws ImagesServiceException Returns all Image objects, where property matches.- Throws:
ImagesServiceException
-
getImagesByProperty
List<Image> getImagesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) throws ImagesServiceException Returns all Image objects, where property matches, sorted.- Throws:
ImagesServiceException
-
getImagesCount
Returns all Images count.- Throws:
ImagesServiceException
-
getImages
Returns Images objects segment.- Throws:
ImagesServiceException
-
getImagesByProperty
List<Image> getImagesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... aProperty) throws ImagesServiceException Returns Image objects segment, where property matches.- Throws:
ImagesServiceException
-
getImagesByProperty
List<Image> getImagesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) throws ImagesServiceException Returns Image objects segment, where property matches, sorted.- Throws:
ImagesServiceException
-
copyMultilingualAttributesInAllImages
void copyMultilingualAttributesInAllImages(String sourceLanguage, String targetLanguage) throws ImagesServiceException In all documents of type Image copies all multilingual fields from sourceLanguage to targetLanguage.- Throws:
ImagesServiceException
-
exportImagesToXML
net.anotheria.util.xml.XMLNode exportImagesToXML(List<Image> listImages) throws ImagesServiceException Creates an xml element with selected contained data.- Throws:
ImagesServiceException
-
exportImagesToXML
net.anotheria.util.xml.XMLNode exportImagesToXML(String[] languages, List<Image> listImages) throws ImagesServiceException creates an xml element with selected contained data but only selected languages in multilingual attributes- Throws:
ImagesServiceException
-
fetchImage
void fetchImage(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ImagesServiceException Create json object list dependencies for this Image document.- Throws:
ImagesServiceException
-
copyMultilingualAttributesInAllObjects
void copyMultilingualAttributesInAllObjects(String sourceLanguage, String targetLanguage) 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.- Throws:
ImagesServiceException
-
executeQueryOnAllObjects
net.anotheria.anodoc.query2.QueryResult executeQueryOnAllObjects(net.anotheria.anodoc.query2.DocumentQuery query) throws ImagesServiceException Executes a query on all data objects (documents, vo) which are part of this module and managed by this service.- Throws:
ImagesServiceException
-
exportToXML
creates an xml element with all contained data.- Throws:
ImagesServiceException
-
exportToXML
creates an xml element with all contained data but only selected languages in multilingual attributes.- Throws:
ImagesServiceException
-