Class ASBrandServiceImpl

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

    public class ASBrandServiceImpl
    extends BasicCMSService
    implements IASBrandService, 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
      • getBrands

        public java.util.List<Brand> getBrands​(net.anotheria.util.sorter.SortType sortType)
        Description copied from interface: IASBrandService
        Returns all Brands objects sorted by given sortType.
        Specified by:
        getBrands in interface IASBrandService
      • getBrands

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

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

        public java.util.List<Brand> importBrands​(java.util.List<Brand> list)
        Description copied from interface: IASBrandService
        Imports multiple new Brand object. Returns the created versions.
        Specified by:
        importBrands in interface IASBrandService
      • createBrands

        public java.util.List<Brand> createBrands​(java.util.List<Brand> list)
        Description copied from interface: IASBrandService
        Creates multiple new Brand objects. Returns the created versions.
        Specified by:
        createBrands in interface IASBrandService
      • updateBrands

        public java.util.List<Brand> updateBrands​(java.util.List<Brand> list)
        Description copied from interface: IASBrandService
        Updates multiple Brand objects. Returns the updated versions.
        Specified by:
        updateBrands in interface IASBrandService
      • getBrandsByProperty

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

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

        public net.anotheria.anodoc.query2.QueryResult executeQueryOnBrands​(net.anotheria.anodoc.query2.DocumentQuery query)
        Executes a query on Brands
        Specified by:
        executeQueryOnBrands in interface IASBrandService
      • getBrandsByProperty

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

        public java.util.List<Brand> getBrandsByProperty​(net.anotheria.util.sorter.SortType sortType,
                                                         net.anotheria.anodoc.query2.QueryProperty... property)
        Returns all Brand objects, where property matches, sorted
        Specified by:
        getBrandsByProperty in interface IASBrandService
      • getBrands

        public java.util.List<Brand> getBrands​(net.anotheria.util.slicer.Segment aSegment)
        Returns Brand objects segment.
        Specified by:
        getBrands in interface IASBrandService
      • getBrandsByProperty

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

        public java.util.List<Brand> getBrandsByProperty​(net.anotheria.util.slicer.Segment aSegment,
                                                         net.anotheria.util.sorter.SortType aSortType,
                                                         net.anotheria.anodoc.query2.QueryProperty... aProperty)
        Returns Brand objects segment, where property matched, sorted.
        Specified by:
        getBrandsByProperty in interface IASBrandService
      • 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 IASBrandService
      • exportBrandsToXML

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

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

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