Interface IASBrandService
- All Superinterfaces:
net.anotheria.asg.service.ASGService,net.anotheria.anoprise.metafactory.Service
- All Known Implementing Classes:
ASBrandServiceImpl
public interface IASBrandService
extends net.anotheria.asg.service.ASGService
-
Method Summary
Modifier and TypeMethodDescriptioncreateBrand(Brand brand) Creates a new Brand object.createBrands(List<Brand> list) Creates multiple new Brand objects.voiddeleteBrand(String id) Deletes a Brand object by id.voiddeleteBrand(Brand brand) Deletes a Brand object.voiddeleteBrands(List<Brand> list) Deletes multiple Brand 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.QueryResultexecuteQueryOnBrands(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query.net.anotheria.util.xml.XMLNodeexportBrandsToXML(List<Brand> listBrands) Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodecreates an xml element with all contained data.voidfetchBrand(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) Create json object list dependencies for this Brand document.Returns the Brand object with the specified id.Returns all Brands objects stored.getBrands(net.anotheria.util.slicer.Segment aSegment) Returns Brands objects segment.getBrands(net.anotheria.util.sorter.SortType sortType) Returns all Brands objects sorted by given sortType.getBrandsByProperty(String propertyName, Object value) Returns all Brand objects, where property with given name equals object.getBrandsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Returns all Brand objects, where property with given name equals object, sorted.getBrandsByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all Brand objects, where property matches.getBrandsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns Brand objects segment, where property matches.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 matches, sorted.getBrandsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all Brand objects, where property matches, sorted.intReturns all Brands count.importBrand(Brand brand) Imports a new Brand object.importBrands(List<Brand> list) Imports multiple new Brand object.updateBrand(Brand brand) Updates a Brand object.updateBrands(List<Brand> list) Updates multiple Brand objects.Methods inherited from interface net.anotheria.asg.service.ASGService
addServiceListener, hasServiceListeners, removeServiceListener
-
Method Details
-
getBrands
Returns all Brands objects stored.- Throws:
ASBrandServiceException
-
getBrands
Returns all Brands objects sorted by given sortType.- Throws:
ASBrandServiceException
-
deleteBrand
Deletes a Brand object by id.- Throws:
ASBrandServiceException
-
deleteBrand
Deletes a Brand object.- Throws:
ASBrandServiceException
-
deleteBrands
Deletes multiple Brand object.- Throws:
ASBrandServiceException
-
getBrand
Returns the Brand object with the specified id.- Throws:
ASBrandServiceException
-
importBrand
Imports a new Brand object. Returns the created version.- Throws:
ASBrandServiceException
-
importBrands
Imports multiple new Brand object. Returns the created versions.- Throws:
ASBrandServiceException
-
createBrand
Creates a new Brand object. Returns the created version.- Throws:
ASBrandServiceException
-
createBrands
Creates multiple new Brand objects. Returns the created versions.- Throws:
ASBrandServiceException
-
updateBrand
Updates a Brand object. Returns the updated version.- Throws:
ASBrandServiceException
-
updateBrands
Updates multiple Brand objects. Returns the updated versions.- Throws:
ASBrandServiceException
-
getBrandsByProperty
Returns all Brand objects, where property with given name equals object.- Throws:
ASBrandServiceException
-
getBrandsByProperty
List<Brand> getBrandsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) throws ASBrandServiceException Returns all Brand objects, where property with given name equals object, sorted.- Throws:
ASBrandServiceException
-
executeQueryOnBrands
net.anotheria.anodoc.query2.QueryResult executeQueryOnBrands(net.anotheria.anodoc.query2.DocumentQuery query) throws ASBrandServiceException Executes a query.- Throws:
ASBrandServiceException
-
getBrandsByProperty
List<Brand> getBrandsByProperty(net.anotheria.anodoc.query2.QueryProperty... property) throws ASBrandServiceException Returns all Brand objects, where property matches.- Throws:
ASBrandServiceException
-
getBrandsByProperty
List<Brand> getBrandsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) throws ASBrandServiceException Returns all Brand objects, where property matches, sorted.- Throws:
ASBrandServiceException
-
getBrandsCount
Returns all Brands count.- Throws:
ASBrandServiceException
-
getBrands
Returns Brands objects segment.- Throws:
ASBrandServiceException
-
getBrandsByProperty
List<Brand> getBrandsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... aProperty) throws ASBrandServiceException Returns Brand objects segment, where property matches.- Throws:
ASBrandServiceException
-
getBrandsByProperty
List<Brand> getBrandsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) throws ASBrandServiceException Returns Brand objects segment, where property matches, sorted.- Throws:
ASBrandServiceException
-
exportBrandsToXML
net.anotheria.util.xml.XMLNode exportBrandsToXML(List<Brand> listBrands) throws ASBrandServiceException Creates an xml element with selected contained data.- Throws:
ASBrandServiceException
-
fetchBrand
void fetchBrand(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASBrandServiceException Create json object list dependencies for this Brand document.- Throws:
ASBrandServiceException
-
executeQueryOnAllObjects
net.anotheria.anodoc.query2.QueryResult executeQueryOnAllObjects(net.anotheria.anodoc.query2.DocumentQuery query) throws ASBrandServiceException Executes a query on all data objects (documents, vo) which are part of this module and managed by this service.- Throws:
ASBrandServiceException
-
exportToXML
creates an xml element with all contained data.- Throws:
ASBrandServiceException
-