Class ASFeatureServiceImpl
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.asfeature.service.ASFeatureServiceImpl
- All Implemented Interfaces:
net.anotheria.anoprise.metafactory.Service,IASFeatureService,net.anotheria.asg.service.ASGService,net.anotheria.asg.util.listener.IModuleListener
public class ASFeatureServiceImpl
extends BasicCMSService
implements IASFeatureService, 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 TypeMethodDescriptioncreateBrandFeature(BrandFeature brandfeature) Creates a new BrandFeature object.createBrandFeatures(List<BrandFeature> list) Creates multiple new BrandFeature objects.createFeature(Feature feature) Creates a new Feature object.createFeatures(List<Feature> list) Creates multiple new Feature objects.voidDeletes a BrandFeature object by id.voiddeleteBrandFeature(BrandFeature brandfeature) Deletes a BrandFeature object.voiddeleteBrandFeatures(List<BrandFeature> list) Deletes multiple BrandFeature object.voiddeleteFeature(String id) Deletes a Feature object by id.voiddeleteFeature(Feature feature) Deletes a Feature object.voiddeleteFeatures(List<Feature> list) Deletes multiple Feature 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.QueryResultexecuteQueryOnBrandFeatures(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query on BrandFeaturesnet.anotheria.anodoc.query2.QueryResultexecuteQueryOnFeatures(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query on Featuresnet.anotheria.util.xml.XMLNodenet.anotheria.util.xml.XMLNodeCreates an xml element with selected contained data.net.anotheria.util.xml.XMLNodenet.anotheria.util.xml.XMLNodeexportFeaturesToXML(List<Feature> list) Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodecreates an xml element with all contained data.voidfetchBrandFeature(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) Create json object list dependencies for this BrandFeature document.voidfetchFeature(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) Create json object list dependencies for this Feature document.Returns the BrandFeature object with the specified id.Returns all BrandFeatures objects stored.getBrandFeatures(List<String> ids) Returns the BrandFeature objects with the specified ids.getBrandFeatures(List<String> ids, net.anotheria.util.sorter.SortType sortType) Returns the BrandFeature objects with the specified ids, sorted by given sorttype.getBrandFeatures(net.anotheria.util.slicer.Segment aSegment) Returns BrandFeature objects segment.getBrandFeatures(net.anotheria.util.sorter.SortType sortType) Returns all BrandFeatures objects sorted by given sortType.getBrandFeaturesByProperty(String propertyName, Object value) Returns all BrandFeature objects, where property with given name equals object.getBrandFeaturesByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Returns all BrandFeature objects, where property with given name equals object, sorted.getBrandFeaturesByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all BrandFeature objects, where property matches.getBrandFeaturesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns BrandFeature objects segment, where property matched.getBrandFeaturesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns BrandFeature objects segment, where property matched, sorted.getBrandFeaturesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all BrandFeature objects, where property matches, sortedintReturns BrandFeature objects count.getFeature(String id) Returns the Feature object with the specified id.Returns all Features objects stored.getFeatures(List<String> ids) Returns the Feature objects with the specified ids.getFeatures(List<String> ids, net.anotheria.util.sorter.SortType sortType) Returns the Feature objects with the specified ids, sorted by given sorttype.getFeatures(net.anotheria.util.slicer.Segment aSegment) Returns Feature objects segment.getFeatures(net.anotheria.util.sorter.SortType sortType) Returns all Features objects sorted by given sortType.getFeaturesByProperty(String propertyName, Object value) Returns all Feature objects, where property with given name equals object.getFeaturesByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Returns all Feature objects, where property with given name equals object, sorted.getFeaturesByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all Feature objects, where property matches.getFeaturesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns Feature objects segment, where property matched.getFeaturesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns Feature objects segment, where property matched, sorted.getFeaturesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all Feature objects, where property matches, sortedintReturns Feature objects count.importBrandFeature(BrandFeature brandfeature) Imports a new BrandFeature object.importBrandFeatures(List<BrandFeature> list) Imports multiple new BrandFeature object.importFeature(Feature feature) Imports a new Feature object.importFeatures(List<Feature> list) Imports multiple new Feature object.voidmoduleLoaded(net.anotheria.anodoc.data.Module module) updateBrandFeature(BrandFeature brandfeature) Updates a BrandFeature object.updateBrandFeatures(List<BrandFeature> list) Updates multiple BrandFeature objects.updateFeature(Feature feature) Updates a Feature object.updateFeatures(List<Feature> list) Updates multiple Feature 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
-
getFeatures
Description copied from interface:IASFeatureServiceReturns all Features objects stored.- Specified by:
getFeaturesin interfaceIASFeatureService
-
getFeatures
Description copied from interface:IASFeatureServiceReturns all Features objects sorted by given sortType.- Specified by:
getFeaturesin interfaceIASFeatureService
-
getFeatures
Returns the Feature objects with the specified ids. -
getFeatures
Returns the Feature objects with the specified ids, sorted by given sorttype. -
deleteFeature
Description copied from interface:IASFeatureServiceDeletes a Feature object.- Specified by:
deleteFeaturein interfaceIASFeatureService
-
deleteFeature
Description copied from interface:IASFeatureServiceDeletes a Feature object by id.- Specified by:
deleteFeaturein interfaceIASFeatureService
-
deleteFeatures
Description copied from interface:IASFeatureServiceDeletes multiple Feature object.- Specified by:
deleteFeaturesin interfaceIASFeatureService
-
getFeature
Description copied from interface:IASFeatureServiceReturns the Feature object with the specified id.- Specified by:
getFeaturein interfaceIASFeatureService
-
importFeature
Description copied from interface:IASFeatureServiceImports a new Feature object. Returns the created version.- Specified by:
importFeaturein interfaceIASFeatureService
-
importFeatures
Description copied from interface:IASFeatureServiceImports multiple new Feature object. Returns the created versions.- Specified by:
importFeaturesin interfaceIASFeatureService
-
createFeature
Description copied from interface:IASFeatureServiceCreates a new Feature object. Returns the created version.- Specified by:
createFeaturein interfaceIASFeatureService
-
createFeatures
Description copied from interface:IASFeatureServiceCreates multiple new Feature objects. Returns the created versions.- Specified by:
createFeaturesin interfaceIASFeatureService
-
updateFeature
Description copied from interface:IASFeatureServiceUpdates a Feature object. Returns the updated version.- Specified by:
updateFeaturein interfaceIASFeatureService
-
updateFeatures
Description copied from interface:IASFeatureServiceUpdates multiple Feature objects. Returns the updated versions.- Specified by:
updateFeaturesin interfaceIASFeatureService
-
getFeaturesByProperty
Description copied from interface:IASFeatureServiceReturns all Feature objects, where property with given name equals object.- Specified by:
getFeaturesByPropertyin interfaceIASFeatureService
-
getFeaturesByProperty
public List<Feature> getFeaturesByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Description copied from interface:IASFeatureServiceReturns all Feature objects, where property with given name equals object, sorted.- Specified by:
getFeaturesByPropertyin interfaceIASFeatureService
-
executeQueryOnFeatures
public net.anotheria.anodoc.query2.QueryResult executeQueryOnFeatures(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query on Features- Specified by:
executeQueryOnFeaturesin interfaceIASFeatureService
-
getFeaturesByProperty
Returns all Feature objects, where property matches.- Specified by:
getFeaturesByPropertyin interfaceIASFeatureService
-
getFeaturesByProperty
public List<Feature> getFeaturesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all Feature objects, where property matches, sorted- Specified by:
getFeaturesByPropertyin interfaceIASFeatureService
-
getFeaturesCount
public int getFeaturesCount()Returns Feature objects count.- Specified by:
getFeaturesCountin interfaceIASFeatureService
-
getFeatures
Returns Feature objects segment.- Specified by:
getFeaturesin interfaceIASFeatureService
-
getFeaturesByProperty
public List<Feature> getFeaturesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns Feature objects segment, where property matched.- Specified by:
getFeaturesByPropertyin interfaceIASFeatureService
-
getFeaturesByProperty
public List<Feature> getFeaturesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns Feature objects segment, where property matched, sorted.- Specified by:
getFeaturesByPropertyin interfaceIASFeatureService
-
fetchFeature
public void fetchFeature(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASFeatureServiceException Description copied from interface:IASFeatureServiceCreate json object list dependencies for this Feature document.- Specified by:
fetchFeaturein interfaceIASFeatureService- Throws:
ASFeatureServiceException
-
getBrandFeatures
Description copied from interface:IASFeatureServiceReturns all BrandFeatures objects stored.- Specified by:
getBrandFeaturesin interfaceIASFeatureService
-
getBrandFeatures
Description copied from interface:IASFeatureServiceReturns all BrandFeatures objects sorted by given sortType.- Specified by:
getBrandFeaturesin interfaceIASFeatureService
-
getBrandFeatures
Returns the BrandFeature objects with the specified ids. -
getBrandFeatures
public List<BrandFeature> getBrandFeatures(List<String> ids, net.anotheria.util.sorter.SortType sortType) Returns the BrandFeature objects with the specified ids, sorted by given sorttype. -
deleteBrandFeature
Description copied from interface:IASFeatureServiceDeletes a BrandFeature object.- Specified by:
deleteBrandFeaturein interfaceIASFeatureService
-
deleteBrandFeature
Description copied from interface:IASFeatureServiceDeletes a BrandFeature object by id.- Specified by:
deleteBrandFeaturein interfaceIASFeatureService
-
deleteBrandFeatures
Description copied from interface:IASFeatureServiceDeletes multiple BrandFeature object.- Specified by:
deleteBrandFeaturesin interfaceIASFeatureService
-
getBrandFeature
Description copied from interface:IASFeatureServiceReturns the BrandFeature object with the specified id.- Specified by:
getBrandFeaturein interfaceIASFeatureService
-
importBrandFeature
Description copied from interface:IASFeatureServiceImports a new BrandFeature object. Returns the created version.- Specified by:
importBrandFeaturein interfaceIASFeatureService
-
importBrandFeatures
Description copied from interface:IASFeatureServiceImports multiple new BrandFeature object. Returns the created versions.- Specified by:
importBrandFeaturesin interfaceIASFeatureService
-
createBrandFeature
Description copied from interface:IASFeatureServiceCreates a new BrandFeature object. Returns the created version.- Specified by:
createBrandFeaturein interfaceIASFeatureService
-
createBrandFeatures
Description copied from interface:IASFeatureServiceCreates multiple new BrandFeature objects. Returns the created versions.- Specified by:
createBrandFeaturesin interfaceIASFeatureService
-
updateBrandFeature
Description copied from interface:IASFeatureServiceUpdates a BrandFeature object. Returns the updated version.- Specified by:
updateBrandFeaturein interfaceIASFeatureService
-
updateBrandFeatures
Description copied from interface:IASFeatureServiceUpdates multiple BrandFeature objects. Returns the updated versions.- Specified by:
updateBrandFeaturesin interfaceIASFeatureService
-
getBrandFeaturesByProperty
Description copied from interface:IASFeatureServiceReturns all BrandFeature objects, where property with given name equals object.- Specified by:
getBrandFeaturesByPropertyin interfaceIASFeatureService
-
getBrandFeaturesByProperty
public List<BrandFeature> getBrandFeaturesByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Description copied from interface:IASFeatureServiceReturns all BrandFeature objects, where property with given name equals object, sorted.- Specified by:
getBrandFeaturesByPropertyin interfaceIASFeatureService
-
executeQueryOnBrandFeatures
public net.anotheria.anodoc.query2.QueryResult executeQueryOnBrandFeatures(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query on BrandFeatures- Specified by:
executeQueryOnBrandFeaturesin interfaceIASFeatureService
-
getBrandFeaturesByProperty
public List<BrandFeature> getBrandFeaturesByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all BrandFeature objects, where property matches.- Specified by:
getBrandFeaturesByPropertyin interfaceIASFeatureService
-
getBrandFeaturesByProperty
public List<BrandFeature> getBrandFeaturesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all BrandFeature objects, where property matches, sorted- Specified by:
getBrandFeaturesByPropertyin interfaceIASFeatureService
-
getBrandFeaturesCount
public int getBrandFeaturesCount()Returns BrandFeature objects count.- Specified by:
getBrandFeaturesCountin interfaceIASFeatureService
-
getBrandFeatures
Returns BrandFeature objects segment.- Specified by:
getBrandFeaturesin interfaceIASFeatureService
-
getBrandFeaturesByProperty
public List<BrandFeature> getBrandFeaturesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns BrandFeature objects segment, where property matched.- Specified by:
getBrandFeaturesByPropertyin interfaceIASFeatureService
-
getBrandFeaturesByProperty
public List<BrandFeature> getBrandFeaturesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns BrandFeature objects segment, where property matched, sorted.- Specified by:
getBrandFeaturesByPropertyin interfaceIASFeatureService
-
fetchBrandFeature
public void fetchBrandFeature(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASFeatureServiceException Description copied from interface:IASFeatureServiceCreate json object list dependencies for this BrandFeature document.- Specified by:
fetchBrandFeaturein interfaceIASFeatureService- Throws:
ASFeatureServiceException
-
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 interfaceIASFeatureService
-
exportFeaturesToXML
public net.anotheria.util.xml.XMLNode exportFeaturesToXML() -
exportFeaturesToXML
Description copied from interface:IASFeatureServiceCreates an xml element with selected contained data.- Specified by:
exportFeaturesToXMLin interfaceIASFeatureService
-
exportBrandFeaturesToXML
public net.anotheria.util.xml.XMLNode exportBrandFeaturesToXML() -
exportBrandFeaturesToXML
Description copied from interface:IASFeatureServiceCreates an xml element with selected contained data.- Specified by:
exportBrandFeaturesToXMLin interfaceIASFeatureService
-
exportToXML
public net.anotheria.util.xml.XMLNode exportToXML()Description copied from interface:IASFeatureServicecreates an xml element with all contained data.- Specified by:
exportToXMLin interfaceIASFeatureService
-