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(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.ImagecreateImage(Image image)Creates a new Image object.List<Image>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.XMLNodeexportToXML()creates 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.ImagegetImage(String id)Returns the Image object with the specified id.List<Image>getImages()Returns all Images objects stored.List<Image>getImages(net.anotheria.util.slicer.Segment aSegment)Returns Images objects segment.List<Image>getImages(net.anotheria.util.sorter.SortType sortType)Returns all Images objects sorted by given sortType.List<Image>getImagesByProperty(String propertyName, Object value)Returns all Image objects, where property with given name equals object.List<Image>getImagesByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType)Returns all Image objects, where property with given name equals object, sorted.List<Image>getImagesByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all Image objects, where property matches.List<Image>getImagesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns Image objects segment, where property matches.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.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.List<Image>importImages(List<Image> list)Imports multiple new Image object.ImageupdateImage(Image image)Updates a Image object.List<Image>updateImages(List<Image> list)Updates multiple Image objects.
-
-
-
Method Detail
-
getImages
List<Image> getImages() throws ImagesServiceException
Returns all Images objects stored.- Throws:
ImagesServiceException
-
getImages
List<Image> getImages(net.anotheria.util.sorter.SortType sortType) throws ImagesServiceException
Returns all Images objects sorted by given sortType.- Throws:
ImagesServiceException
-
deleteImage
void deleteImage(String id) throws ImagesServiceException
Deletes a Image object by id.- Throws:
ImagesServiceException
-
deleteImage
void deleteImage(Image image) throws ImagesServiceException
Deletes a Image object.- Throws:
ImagesServiceException
-
deleteImages
void deleteImages(List<Image> list) throws ImagesServiceException
Deletes multiple Image object.- Throws:
ImagesServiceException
-
getImage
Image getImage(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
List<Image> importImages(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
List<Image> createImages(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
List<Image> updateImages(List<Image> list) throws ImagesServiceException
Updates multiple Image objects. Returns the updated versions.- Throws:
ImagesServiceException
-
getImagesByProperty
List<Image> getImagesByProperty(String propertyName, Object value) throws ImagesServiceException
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 ImagesServiceExceptionExecutes 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
int getImagesCount() throws ImagesServiceExceptionReturns all Images count.- Throws:
ImagesServiceException
-
getImages
List<Image> getImages(net.anotheria.util.slicer.Segment aSegment) throws ImagesServiceException
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
-
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(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 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(String[] languages) throws ImagesServiceException
creates an xml element with all contained data but only selected languages in multilingual attributes.- Throws:
ImagesServiceException
-
-