Class ImagesServiceImpl

  • All Implemented Interfaces:
    net.anotheria.anoprise.metafactory.Service, IImagesService, net.anotheria.asg.service.ASGService, net.anotheria.asg.util.listener.IModuleListener

    public class ImagesServiceImpl
    extends BasicCMSService
    implements IImagesService, net.anotheria.asg.util.listener.IModuleListener
    • Method Detail

      • moduleLoaded

        public void moduleLoaded​(net.anotheria.anodoc.data.Module module)
        Specified by:
        moduleLoaded in interface net.anotheria.asg.util.listener.IModuleListener
      • getImages

        public java.util.List<Image> getImages​(net.anotheria.util.sorter.SortType sortType)
        Description copied from interface: IImagesService
        Returns all Images objects sorted by given sortType.
        Specified by:
        getImages in interface IImagesService
      • getImages

        public java.util.List<Image> getImages​(java.util.List<java.lang.String> ids)
        Returns the Image objects with the specified ids.
      • getImages

        public java.util.List<Image> getImages​(java.util.List<java.lang.String> ids,
                                               net.anotheria.util.sorter.SortType sortType)
        Returns the Image objects with the specified ids, sorted by given sorttype.
      • deleteImage

        public void deleteImage​(java.lang.String id)
        Description copied from interface: IImagesService
        Deletes a Image object by id.
        Specified by:
        deleteImage in interface IImagesService
      • getImage

        public Image getImage​(java.lang.String id)
        Description copied from interface: IImagesService
        Returns the Image object with the specified id.
        Specified by:
        getImage in interface IImagesService
      • importImages

        public java.util.List<Image> importImages​(java.util.List<Image> list)
        Description copied from interface: IImagesService
        Imports multiple new Image object. Returns the created versions.
        Specified by:
        importImages in interface IImagesService
      • createImages

        public java.util.List<Image> createImages​(java.util.List<Image> list)
        Description copied from interface: IImagesService
        Creates multiple new Image objects. Returns the created versions.
        Specified by:
        createImages in interface IImagesService
      • updateImages

        public java.util.List<Image> updateImages​(java.util.List<Image> list)
        Description copied from interface: IImagesService
        Updates multiple Image objects. Returns the updated versions.
        Specified by:
        updateImages in interface IImagesService
      • getImagesByProperty

        public java.util.List<Image> getImagesByProperty​(java.lang.String propertyName,
                                                         java.lang.Object value)
        Description copied from interface: IImagesService
        Returns all Image objects, where property with given name equals object.
        Specified by:
        getImagesByProperty in interface IImagesService
      • getImagesByProperty

        public java.util.List<Image> getImagesByProperty​(java.lang.String propertyName,
                                                         java.lang.Object value,
                                                         net.anotheria.util.sorter.SortType sortType)
        Description copied from interface: IImagesService
        Returns all Image objects, where property with given name equals object, sorted.
        Specified by:
        getImagesByProperty in interface IImagesService
      • executeQueryOnImages

        public net.anotheria.anodoc.query2.QueryResult executeQueryOnImages​(net.anotheria.anodoc.query2.DocumentQuery query)
        Executes a query on Images
        Specified by:
        executeQueryOnImages in interface IImagesService
      • getImagesByProperty

        public java.util.List<Image> getImagesByProperty​(net.anotheria.anodoc.query2.QueryProperty... property)
        Returns all Image objects, where property matches.
        Specified by:
        getImagesByProperty in interface IImagesService
      • getImagesByProperty

        public 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
        Specified by:
        getImagesByProperty in interface IImagesService
      • getImages

        public java.util.List<Image> getImages​(net.anotheria.util.slicer.Segment aSegment)
        Returns Image objects segment.
        Specified by:
        getImages in interface IImagesService
      • getImagesByProperty

        public java.util.List<Image> getImagesByProperty​(net.anotheria.util.slicer.Segment aSegment,
                                                         net.anotheria.anodoc.query2.QueryProperty... property)
        Returns Image objects segment, where property matched.
        Specified by:
        getImagesByProperty in interface IImagesService
      • getImagesByProperty

        public 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 matched, sorted.
        Specified by:
        getImagesByProperty in interface IImagesService
      • copyMultilingualAttributesInAllImages

        public void copyMultilingualAttributesInAllImages​(java.lang.String sourceLanguage,
                                                          java.lang.String targetLanguage)
        Description copied from interface: IImagesService
        In all documents of type Image copies all multilingual fields from sourceLanguage to targetLanguage.
        Specified by:
        copyMultilingualAttributesInAllImages in interface IImagesService
      • copyMultilingualAttributesInAllObjects

        public void copyMultilingualAttributesInAllObjects​(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
        Specified by:
        copyMultilingualAttributesInAllObjects in interface IImagesService
      • executeQueryOnAllObjects

        public net.anotheria.anodoc.query2.QueryResult executeQueryOnAllObjects​(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
        Specified by:
        executeQueryOnAllObjects in interface IImagesService
      • exportImagesToXML

        public net.anotheria.util.xml.XMLNode exportImagesToXML()
      • exportImagesToXML

        public net.anotheria.util.xml.XMLNode exportImagesToXML​(java.util.List<Image> list)
        Description copied from interface: IImagesService
        Creates an xml element with selected contained data.
        Specified by:
        exportImagesToXML in interface IImagesService
      • exportImagesToXML

        public net.anotheria.util.xml.XMLNode exportImagesToXML​(java.lang.String[] languages)
      • exportImagesToXML

        public net.anotheria.util.xml.XMLNode exportImagesToXML​(java.lang.String[] languages,
                                                                java.util.List<Image> list)
        Description copied from interface: IImagesService
        creates an xml element with selected contained data but only selected languages in multilingual attributes
        Specified by:
        exportImagesToXML in interface IImagesService
      • exportToXML

        public net.anotheria.util.xml.XMLNode exportToXML()
        Description copied from interface: IImagesService
        creates an xml element with all contained data.
        Specified by:
        exportToXML in interface IImagesService
      • exportToXML

        public net.anotheria.util.xml.XMLNode exportToXML​(java.lang.String[] languages)
        Description copied from interface: IImagesService
        creates an xml element with all contained data but only selected languages in multilingual attributes.
        Specified by:
        exportToXML in interface IImagesService