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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BrandcreateBrand(Brand brand)Creates a new Brand object.java.util.List<Brand>createBrands(java.util.List<Brand> list)Creates multiple new Brand objects.voiddeleteBrand(java.lang.String id)Deletes a Brand object by id.voiddeleteBrand(Brand brand)Deletes a Brand object.voiddeleteBrands(java.util.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(java.util.List<Brand> listBrands)Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodeexportToXML()creates an xml element with all contained data.voidfetchBrand(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this Brand document.BrandgetBrand(java.lang.String id)Returns the Brand object with the specified id.java.util.List<Brand>getBrands()Returns all Brands objects stored.java.util.List<Brand>getBrands(net.anotheria.util.slicer.Segment aSegment)Returns Brands objects segment.java.util.List<Brand>getBrands(net.anotheria.util.sorter.SortType sortType)Returns all Brands objects sorted by given sortType.java.util.List<Brand>getBrandsByProperty(java.lang.String propertyName, java.lang.Object value)Returns all Brand objects, where property with given name equals object.java.util.List<Brand>getBrandsByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)Returns all Brand objects, where property with given name equals object, sorted.java.util.List<Brand>getBrandsByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all Brand objects, where property matches.java.util.List<Brand>getBrandsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns Brand objects segment, where property matches.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 matches, sorted.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.intgetBrandsCount()Returns all Brands count.BrandimportBrand(Brand brand)Imports a new Brand object.java.util.List<Brand>importBrands(java.util.List<Brand> list)Imports multiple new Brand object.BrandupdateBrand(Brand brand)Updates a Brand object.java.util.List<Brand>updateBrands(java.util.List<Brand> list)Updates multiple Brand objects.
-
-
-
Method Detail
-
getBrands
java.util.List<Brand> getBrands() throws ASBrandServiceException
Returns all Brands objects stored.- Throws:
ASBrandServiceException
-
getBrands
java.util.List<Brand> getBrands(net.anotheria.util.sorter.SortType sortType) throws ASBrandServiceException
Returns all Brands objects sorted by given sortType.- Throws:
ASBrandServiceException
-
deleteBrand
void deleteBrand(java.lang.String id) throws ASBrandServiceExceptionDeletes a Brand object by id.- Throws:
ASBrandServiceException
-
deleteBrand
void deleteBrand(Brand brand) throws ASBrandServiceException
Deletes a Brand object.- Throws:
ASBrandServiceException
-
deleteBrands
void deleteBrands(java.util.List<Brand> list) throws ASBrandServiceException
Deletes multiple Brand object.- Throws:
ASBrandServiceException
-
getBrand
Brand getBrand(java.lang.String id) throws ASBrandServiceException
Returns the Brand object with the specified id.- Throws:
ASBrandServiceException
-
importBrand
Brand importBrand(Brand brand) throws ASBrandServiceException
Imports a new Brand object. Returns the created version.- Throws:
ASBrandServiceException
-
importBrands
java.util.List<Brand> importBrands(java.util.List<Brand> list) throws ASBrandServiceException
Imports multiple new Brand object. Returns the created versions.- Throws:
ASBrandServiceException
-
createBrand
Brand createBrand(Brand brand) throws ASBrandServiceException
Creates a new Brand object. Returns the created version.- Throws:
ASBrandServiceException
-
createBrands
java.util.List<Brand> createBrands(java.util.List<Brand> list) throws ASBrandServiceException
Creates multiple new Brand objects. Returns the created versions.- Throws:
ASBrandServiceException
-
updateBrand
Brand updateBrand(Brand brand) throws ASBrandServiceException
Updates a Brand object. Returns the updated version.- Throws:
ASBrandServiceException
-
updateBrands
java.util.List<Brand> updateBrands(java.util.List<Brand> list) throws ASBrandServiceException
Updates multiple Brand objects. Returns the updated versions.- Throws:
ASBrandServiceException
-
getBrandsByProperty
java.util.List<Brand> getBrandsByProperty(java.lang.String propertyName, java.lang.Object value) throws ASBrandServiceException
Returns all Brand objects, where property with given name equals object.- Throws:
ASBrandServiceException
-
getBrandsByProperty
java.util.List<Brand> getBrandsByProperty(java.lang.String propertyName, java.lang.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 ASBrandServiceExceptionExecutes a query.- Throws:
ASBrandServiceException
-
getBrandsByProperty
java.util.List<Brand> getBrandsByProperty(net.anotheria.anodoc.query2.QueryProperty... property) throws ASBrandServiceException
Returns all Brand objects, where property matches.- Throws:
ASBrandServiceException
-
getBrandsByProperty
java.util.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
int getBrandsCount() throws ASBrandServiceExceptionReturns all Brands count.- Throws:
ASBrandServiceException
-
getBrands
java.util.List<Brand> getBrands(net.anotheria.util.slicer.Segment aSegment) throws ASBrandServiceException
Returns Brands objects segment.- Throws:
ASBrandServiceException
-
getBrandsByProperty
java.util.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
java.util.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(java.util.List<Brand> listBrands) throws ASBrandServiceException
Creates an xml element with selected contained data.- Throws:
ASBrandServiceException
-
fetchBrand
void fetchBrand(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASBrandServiceExceptionCreate json object list dependencies for this Brand document.- Throws:
ASBrandServiceException
-
executeParsingForDocument
void executeParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data) throws ASBrandServiceException
Save transferred document by its own type.- Throws:
ASBrandServiceException
-
executeQueryOnAllObjects
net.anotheria.anodoc.query2.QueryResult executeQueryOnAllObjects(net.anotheria.anodoc.query2.DocumentQuery query) throws ASBrandServiceExceptionExecutes a query on all data objects (documents, vo) which are part of this module and managed by this service.- Throws:
ASBrandServiceException
-
exportToXML
net.anotheria.util.xml.XMLNode exportToXML() throws ASBrandServiceExceptioncreates an xml element with all contained data.- Throws:
ASBrandServiceException
-
-