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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcopyMultilingualAttributesInAllImages(java.lang.String sourceLanguage, java.lang.String targetLanguage)In all documents of type Image copies all multilingual fields from sourceLanguage to targetLanguage.voidcopyMultilingualAttributesInAllObjects(java.lang.String sourceLanguage, java.lang.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.ImagecreateImage(Image image)Creates a new Image object.java.util.List<Image>createImages(java.util.List<Image> list)Creates multiple new Image objects.voiddeleteImage(java.lang.String id)Deletes a Image object by id.voiddeleteImage(Image image)Deletes a Image object.voiddeleteImages(java.util.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(java.lang.String[] languages, java.util.List<Image> listImages)creates an xml element with selected contained data but only selected languages in multilingual attributesnet.anotheria.util.xml.XMLNodeexportImagesToXML(java.util.List<Image> listImages)Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodeexportToXML()creates an xml element with all contained data.net.anotheria.util.xml.XMLNodeexportToXML(java.lang.String[] languages)creates an xml element with all contained data but only selected languages in multilingual attributes.voidfetchImage(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this Image document.ImagegetImage(java.lang.String id)Returns the Image object with the specified id.java.util.List<Image>getImages()Returns all Images objects stored.java.util.List<Image>getImages(net.anotheria.util.slicer.Segment aSegment)Returns Images objects segment.java.util.List<Image>getImages(net.anotheria.util.sorter.SortType sortType)Returns all Images objects sorted by given sortType.java.util.List<Image>getImagesByProperty(java.lang.String propertyName, java.lang.Object value)Returns all Image objects, where property with given name equals object.java.util.List<Image>getImagesByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)Returns all Image objects, where property with given name equals object, sorted.java.util.List<Image>getImagesByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all Image objects, where property matches.java.util.List<Image>getImagesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns Image objects segment, where property matches.java.util.List<Image>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.java.util.List<Image>getImagesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all Image objects, where property matches, sorted.intgetImagesCount()Returns all Images count.ImageimportImage(Image image)Imports a new Image object.java.util.List<Image>importImages(java.util.List<Image> list)Imports multiple new Image object.ImageupdateImage(Image image)Updates a Image object.java.util.List<Image>updateImages(java.util.List<Image> list)Updates multiple Image objects.
-
-
-
Method Detail
-
getImages
java.util.List<Image> getImages() throws ImagesServiceException
Returns all Images objects stored.- Throws:
ImagesServiceException
-
getImages
java.util.List<Image> getImages(net.anotheria.util.sorter.SortType sortType) throws ImagesServiceException
Returns all Images objects sorted by given sortType.- Throws:
ImagesServiceException
-
deleteImage
void deleteImage(java.lang.String id) throws ImagesServiceExceptionDeletes a Image object by id.- Throws:
ImagesServiceException
-
deleteImage
void deleteImage(Image image) throws ImagesServiceException
Deletes a Image object.- Throws:
ImagesServiceException
-
deleteImages
void deleteImages(java.util.List<Image> list) throws ImagesServiceException
Deletes multiple Image object.- Throws:
ImagesServiceException
-
getImage
Image getImage(java.lang.String id) throws ImagesServiceException
Returns the Image object with the specified id.- Throws:
ImagesServiceException
-
importImage
Image importImage(Image image) throws ImagesServiceException
Imports a new Image object. Returns the created version.- Throws:
ImagesServiceException
-
importImages
java.util.List<Image> importImages(java.util.List<Image> list) throws ImagesServiceException
Imports multiple new Image object. Returns the created versions.- Throws:
ImagesServiceException
-
createImage
Image createImage(Image image) throws ImagesServiceException
Creates a new Image object. Returns the created version.- Throws:
ImagesServiceException
-
createImages
java.util.List<Image> createImages(java.util.List<Image> list) throws ImagesServiceException
Creates multiple new Image objects. Returns the created versions.- Throws:
ImagesServiceException
-
updateImage
Image updateImage(Image image) throws ImagesServiceException
Updates a Image object. Returns the updated version.- Throws:
ImagesServiceException
-
updateImages
java.util.List<Image> updateImages(java.util.List<Image> list) throws ImagesServiceException
Updates multiple Image objects. Returns the updated versions.- Throws:
ImagesServiceException
-
getImagesByProperty
java.util.List<Image> getImagesByProperty(java.lang.String propertyName, java.lang.Object value) throws ImagesServiceException
Returns all Image objects, where property with given name equals object.- Throws:
ImagesServiceException
-
getImagesByProperty
java.util.List<Image> getImagesByProperty(java.lang.String propertyName, java.lang.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 ImagesServiceExceptionExecutes a query.- Throws:
ImagesServiceException
-
getImagesByProperty
java.util.List<Image> getImagesByProperty(net.anotheria.anodoc.query2.QueryProperty... property) throws ImagesServiceException
Returns all Image objects, where property matches.- Throws:
ImagesServiceException
-
getImagesByProperty
java.util.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
int getImagesCount() throws ImagesServiceExceptionReturns all Images count.- Throws:
ImagesServiceException
-
getImages
java.util.List<Image> getImages(net.anotheria.util.slicer.Segment aSegment) throws ImagesServiceException
Returns Images objects segment.- Throws:
ImagesServiceException
-
getImagesByProperty
java.util.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
java.util.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(java.lang.String sourceLanguage, java.lang.String targetLanguage) throws ImagesServiceExceptionIn all documents of type Image copies all multilingual fields from sourceLanguage to targetLanguage.- Throws:
ImagesServiceException
-
exportImagesToXML
net.anotheria.util.xml.XMLNode exportImagesToXML(java.util.List<Image> listImages) throws ImagesServiceException
Creates an xml element with selected contained data.- Throws:
ImagesServiceException
-
exportImagesToXML
net.anotheria.util.xml.XMLNode exportImagesToXML(java.lang.String[] languages, java.util.List<Image> listImages) throws ImagesServiceExceptioncreates an xml element with selected contained data but only selected languages in multilingual attributes- Throws:
ImagesServiceException
-
fetchImage
void fetchImage(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ImagesServiceExceptionCreate json object list dependencies for this Image document.- Throws:
ImagesServiceException
-
executeParsingForDocument
void executeParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data) throws ImagesServiceException
Save transferred document by its own type.- Throws:
ImagesServiceException
-
copyMultilingualAttributesInAllObjects
void copyMultilingualAttributesInAllObjects(java.lang.String sourceLanguage, java.lang.String targetLanguage) throws ImagesServiceExceptionCopies 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 ImagesServiceExceptionExecutes a query on all data objects (documents, vo) which are part of this module and managed by this service.- Throws:
ImagesServiceException
-
exportToXML
net.anotheria.util.xml.XMLNode exportToXML() throws ImagesServiceExceptioncreates an xml element with all contained data.- Throws:
ImagesServiceException
-
exportToXML
net.anotheria.util.xml.XMLNode exportToXML(java.lang.String[] languages) throws ImagesServiceExceptioncreates an xml element with all contained data but only selected languages in multilingual attributes.- Throws:
ImagesServiceException
-
-