Class ASBrandServiceImpl
- java.lang.Object
-
- net.anotheria.asg.service.AbstractASGService
-
- net.anotheria.anosite.gen.shared.service.BasicService
-
- net.anotheria.anosite.gen.shared.service.BasicCMSService
-
- net.anotheria.anosite.gen.asbrand.service.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
-
-
Field Summary
-
Fields inherited from class net.anotheria.anosite.gen.shared.service.BasicCMSService
MY_OWNER_ID, service
-
Fields inherited from class net.anotheria.anosite.gen.shared.service.BasicService
log
-
-
Method Summary
All Methods Instance Methods Concrete 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 servicenet.anotheria.anodoc.query2.QueryResultexecuteQueryOnBrands(net.anotheria.anodoc.query2.DocumentQuery query)Executes a query on Brandsnet.anotheria.util.xml.XMLNodeexportBrandsToXML()net.anotheria.util.xml.XMLNodeexportBrandsToXML(java.util.List<Brand> list)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(java.util.List<java.lang.String> ids)Returns the Brand objects with the specified ids.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.java.util.List<Brand>getBrands(net.anotheria.util.slicer.Segment aSegment)Returns Brand 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... property)Returns Brand objects segment, where property matched.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.java.util.List<Brand>getBrandsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all Brand objects, where property matches, sortedintgetBrandsCount()Returns Brand objects count.BrandimportBrand(Brand brand)Imports a new Brand object.java.util.List<Brand>importBrands(java.util.List<Brand> list)Imports multiple new Brand object.voidmoduleLoaded(net.anotheria.anodoc.data.Module module)BrandupdateBrand(Brand brand)Updates a Brand object.java.util.List<Brand>updateBrands(java.util.List<Brand> list)Updates multiple Brand objects.-
Methods inherited from class net.anotheria.anosite.gen.shared.service.BasicCMSService
addModuleListener, getModule, updateModule
-
Methods inherited from class net.anotheria.anosite.gen.shared.service.BasicService
getAnoAccessApplicationDataService, getAnoAccessConfigurationService, getASActionService, getASBrandService, getASCustomActionService, getASCustomDataService, getASExperimentService, getASFeatureService, getASFederatedDataService, getASGenericActionService, getASGenericDataService, getASLayoutDataService, getASResourceDataService, getASSiteConfigService, getASSiteDataService, getASUserDataService, getASWebDataService, getASWizardDataService, getImagesService
-
Methods inherited from class net.anotheria.asg.service.AbstractASGService
addServiceListener, fireObjectCreatedEvent, fireObjectDeletedEvent, fireObjectImportedEvent, fireObjectUpdatedEvent, firePersistenceChangedEvent, hasServiceListeners, removeServiceListener
-
-
-
-
Method Detail
-
moduleLoaded
public void moduleLoaded(net.anotheria.anodoc.data.Module module)
- Specified by:
moduleLoadedin interfacenet.anotheria.asg.util.listener.IModuleListener
-
getBrands
public java.util.List<Brand> getBrands()
Description copied from interface:IASBrandServiceReturns all Brands objects stored.- Specified by:
getBrandsin interfaceIASBrandService
-
getBrands
public java.util.List<Brand> getBrands(net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASBrandServiceReturns all Brands objects sorted by given sortType.- Specified by:
getBrandsin interfaceIASBrandService
-
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.
-
deleteBrand
public void deleteBrand(Brand brand)
Description copied from interface:IASBrandServiceDeletes a Brand object.- Specified by:
deleteBrandin interfaceIASBrandService
-
deleteBrand
public void deleteBrand(java.lang.String id)
Description copied from interface:IASBrandServiceDeletes a Brand object by id.- Specified by:
deleteBrandin interfaceIASBrandService
-
deleteBrands
public void deleteBrands(java.util.List<Brand> list)
Description copied from interface:IASBrandServiceDeletes multiple Brand object.- Specified by:
deleteBrandsin interfaceIASBrandService
-
getBrand
public Brand getBrand(java.lang.String id)
Description copied from interface:IASBrandServiceReturns the Brand object with the specified id.- Specified by:
getBrandin interfaceIASBrandService
-
importBrand
public Brand importBrand(Brand brand)
Description copied from interface:IASBrandServiceImports a new Brand object. Returns the created version.- Specified by:
importBrandin interfaceIASBrandService
-
importBrands
public java.util.List<Brand> importBrands(java.util.List<Brand> list)
Description copied from interface:IASBrandServiceImports multiple new Brand object. Returns the created versions.- Specified by:
importBrandsin interfaceIASBrandService
-
createBrand
public Brand createBrand(Brand brand)
Description copied from interface:IASBrandServiceCreates a new Brand object. Returns the created version.- Specified by:
createBrandin interfaceIASBrandService
-
createBrands
public java.util.List<Brand> createBrands(java.util.List<Brand> list)
Description copied from interface:IASBrandServiceCreates multiple new Brand objects. Returns the created versions.- Specified by:
createBrandsin interfaceIASBrandService
-
updateBrand
public Brand updateBrand(Brand brand)
Description copied from interface:IASBrandServiceUpdates a Brand object. Returns the updated version.- Specified by:
updateBrandin interfaceIASBrandService
-
updateBrands
public java.util.List<Brand> updateBrands(java.util.List<Brand> list)
Description copied from interface:IASBrandServiceUpdates multiple Brand objects. Returns the updated versions.- Specified by:
updateBrandsin interfaceIASBrandService
-
getBrandsByProperty
public java.util.List<Brand> getBrandsByProperty(java.lang.String propertyName, java.lang.Object value)
Description copied from interface:IASBrandServiceReturns all Brand objects, where property with given name equals object.- Specified by:
getBrandsByPropertyin interfaceIASBrandService
-
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:IASBrandServiceReturns all Brand objects, where property with given name equals object, sorted.- Specified by:
getBrandsByPropertyin interfaceIASBrandService
-
executeQueryOnBrands
public net.anotheria.anodoc.query2.QueryResult executeQueryOnBrands(net.anotheria.anodoc.query2.DocumentQuery query)
Executes a query on Brands- Specified by:
executeQueryOnBrandsin interfaceIASBrandService
-
getBrandsByProperty
public java.util.List<Brand> getBrandsByProperty(net.anotheria.anodoc.query2.QueryProperty... property)
Returns all Brand objects, where property matches.- Specified by:
getBrandsByPropertyin interfaceIASBrandService
-
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:
getBrandsByPropertyin interfaceIASBrandService
-
getBrandsCount
public int getBrandsCount()
Returns Brand objects count.- Specified by:
getBrandsCountin interfaceIASBrandService
-
getBrands
public java.util.List<Brand> getBrands(net.anotheria.util.slicer.Segment aSegment)
Returns Brand objects segment.- Specified by:
getBrandsin interfaceIASBrandService
-
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:
getBrandsByPropertyin interfaceIASBrandService
-
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:
getBrandsByPropertyin interfaceIASBrandService
-
fetchBrand
public void fetchBrand(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASBrandServiceExceptionDescription copied from interface:IASBrandServiceCreate json object list dependencies for this Brand document.- Specified by:
fetchBrandin interfaceIASBrandService- Throws:
ASBrandServiceException
-
executeParsingForDocument
public void executeParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data) throws ASBrandServiceException
Description copied from interface:IASBrandServiceSave transferred document by its own type.- Specified by:
executeParsingForDocumentin interfaceIASBrandService- Throws:
ASBrandServiceException
-
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:
executeQueryOnAllObjectsin interfaceIASBrandService
-
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:IASBrandServiceCreates an xml element with selected contained data.- Specified by:
exportBrandsToXMLin interfaceIASBrandService
-
exportToXML
public net.anotheria.util.xml.XMLNode exportToXML()
Description copied from interface:IASBrandServicecreates an xml element with all contained data.- Specified by:
exportToXMLin interfaceIASBrandService
-
-