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 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 List<Image> getImages​(List<String> ids)
        Returns the Image objects with the specified ids.
      • getImages

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

        public List<Image> getImagesByProperty​(String propertyName,
                                               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 List<Image> getImagesByProperty​(net.anotheria.anodoc.query2.QueryProperty... property)
        Returns all Image objects, where property matches.
        Specified by:
        getImagesByProperty in interface IImagesService
      • getImagesByProperty

        public 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 List<Image> getImages​(net.anotheria.util.slicer.Segment aSegment)
        Returns Image objects segment.
        Specified by:
        getImages in interface IImagesService
      • getImagesByProperty

        public 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 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
      • copyMultilingualAttributesInAllObjects

        public void copyMultilingualAttributesInAllObjects​(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
        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​(String[] languages)
      • exportImagesToXML

        public net.anotheria.util.xml.XMLNode exportImagesToXML​(String[] languages,
                                                                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​(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