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, serviceFields inherited from class net.anotheria.anosite.gen.shared.service.BasicService
log -
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 servicenet.anotheria.anodoc.query2.QueryResultexecuteQueryOnBrands(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query on Brandsnet.anotheria.util.xml.XMLNodenet.anotheria.util.xml.XMLNodeexportBrandsToXML(List<Brand> list) 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.Returns the Brand objects with the specified ids.Returns the Brand objects with the specified ids, sorted by given sorttype.getBrands(net.anotheria.util.slicer.Segment aSegment) Returns Brand 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... property) Returns Brand objects segment, where property matched.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.getBrandsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all Brand objects, where property matches, sortedintReturns Brand objects count.importBrand(Brand brand) Imports a new Brand object.importBrands(List<Brand> list) Imports multiple new Brand object.voidmoduleLoaded(net.anotheria.anodoc.data.Module module) updateBrand(Brand brand) Updates a Brand object.updateBrands(List<Brand> list) Updates multiple Brand objects.Methods inherited from class net.anotheria.anosite.gen.shared.service.BasicCMSService
addModuleListener, getModule, updateModuleMethods 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, getImagesServiceMethods inherited from class net.anotheria.asg.service.AbstractASGService
addServiceListener, fireObjectCreatedEvent, fireObjectDeletedEvent, fireObjectImportedEvent, fireObjectUpdatedEvent, firePersistenceChangedEvent, hasServiceListeners, removeServiceListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.anotheria.asg.service.ASGService
addServiceListener, hasServiceListeners, removeServiceListener
-
Method Details
-
moduleLoaded
public void moduleLoaded(net.anotheria.anodoc.data.Module module) - Specified by:
moduleLoadedin interfacenet.anotheria.asg.util.listener.IModuleListener
-
getBrands
Description copied from interface:IASBrandServiceReturns all Brands objects stored.- Specified by:
getBrandsin interfaceIASBrandService
-
getBrands
Description copied from interface:IASBrandServiceReturns all Brands objects sorted by given sortType.- Specified by:
getBrandsin interfaceIASBrandService
-
getBrands
Returns the Brand objects with the specified ids. -
getBrands
Returns the Brand objects with the specified ids, sorted by given sorttype. -
deleteBrand
Description copied from interface:IASBrandServiceDeletes a Brand object.- Specified by:
deleteBrandin interfaceIASBrandService
-
deleteBrand
Description copied from interface:IASBrandServiceDeletes a Brand object by id.- Specified by:
deleteBrandin interfaceIASBrandService
-
deleteBrands
Description copied from interface:IASBrandServiceDeletes multiple Brand object.- Specified by:
deleteBrandsin interfaceIASBrandService
-
getBrand
Description copied from interface:IASBrandServiceReturns the Brand object with the specified id.- Specified by:
getBrandin interfaceIASBrandService
-
importBrand
Description copied from interface:IASBrandServiceImports a new Brand object. Returns the created version.- Specified by:
importBrandin interfaceIASBrandService
-
importBrands
Description copied from interface:IASBrandServiceImports multiple new Brand object. Returns the created versions.- Specified by:
importBrandsin interfaceIASBrandService
-
createBrand
Description copied from interface:IASBrandServiceCreates a new Brand object. Returns the created version.- Specified by:
createBrandin interfaceIASBrandService
-
createBrands
Description copied from interface:IASBrandServiceCreates multiple new Brand objects. Returns the created versions.- Specified by:
createBrandsin interfaceIASBrandService
-
updateBrand
Description copied from interface:IASBrandServiceUpdates a Brand object. Returns the updated version.- Specified by:
updateBrandin interfaceIASBrandService
-
updateBrands
Description copied from interface:IASBrandServiceUpdates multiple Brand objects. Returns the updated versions.- Specified by:
updateBrandsin interfaceIASBrandService
-
getBrandsByProperty
Description copied from interface:IASBrandServiceReturns all Brand objects, where property with given name equals object.- Specified by:
getBrandsByPropertyin interfaceIASBrandService
-
getBrandsByProperty
public List<Brand> getBrandsByProperty(String propertyName, 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
Returns all Brand objects, where property matches.- Specified by:
getBrandsByPropertyin interfaceIASBrandService
-
getBrandsByProperty
public 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
Returns Brand objects segment.- Specified by:
getBrandsin interfaceIASBrandService
-
getBrandsByProperty
public 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 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(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASBrandServiceException Description copied from interface:IASBrandServiceCreate json object list dependencies for this Brand document.- Specified by:
fetchBrandin 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
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
-