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, 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 BrandFeaturecreateBrandFeature(BrandFeature brandfeature)Creates a new BrandFeature object.java.util.List<BrandFeature>createBrandFeatures(java.util.List<BrandFeature> list)Creates multiple new BrandFeature objects.FeaturecreateFeature(Feature feature)Creates a new Feature object.java.util.List<Feature>createFeatures(java.util.List<Feature> list)Creates multiple new Feature objects.voiddeleteBrandFeature(java.lang.String id)Deletes a BrandFeature object by id.voiddeleteBrandFeature(BrandFeature brandfeature)Deletes a BrandFeature object.voiddeleteBrandFeatures(java.util.List<BrandFeature> list)Deletes multiple BrandFeature object.voiddeleteFeature(java.lang.String id)Deletes a Feature object by id.voiddeleteFeature(Feature feature)Deletes a Feature object.voiddeleteFeatures(java.util.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.XMLNodeexportBrandFeaturesToXML()net.anotheria.util.xml.XMLNodeexportBrandFeaturesToXML(java.util.List<BrandFeature> list)Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodeexportFeaturesToXML()net.anotheria.util.xml.XMLNodeexportFeaturesToXML(java.util.List<Feature> list)Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodeexportToXML()creates an xml element with all contained data.voidfetchBrandFeature(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this BrandFeature document.voidfetchFeature(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this Feature document.BrandFeaturegetBrandFeature(java.lang.String id)Returns the BrandFeature object with the specified id.java.util.List<BrandFeature>getBrandFeatures()Returns all BrandFeatures objects stored.java.util.List<BrandFeature>getBrandFeatures(java.util.List<java.lang.String> ids)Returns the BrandFeature objects with the specified ids.java.util.List<BrandFeature>getBrandFeatures(java.util.List<java.lang.String> ids, net.anotheria.util.sorter.SortType sortType)Returns the BrandFeature objects with the specified ids, sorted by given sorttype.java.util.List<BrandFeature>getBrandFeatures(net.anotheria.util.slicer.Segment aSegment)Returns BrandFeature objects segment.java.util.List<BrandFeature>getBrandFeatures(net.anotheria.util.sorter.SortType sortType)Returns all BrandFeatures objects sorted by given sortType.java.util.List<BrandFeature>getBrandFeaturesByProperty(java.lang.String propertyName, java.lang.Object value)Returns all BrandFeature objects, where property with given name equals object.java.util.List<BrandFeature>getBrandFeaturesByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)Returns all BrandFeature objects, where property with given name equals object, sorted.java.util.List<BrandFeature>getBrandFeaturesByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all BrandFeature objects, where property matches.java.util.List<BrandFeature>getBrandFeaturesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)Returns BrandFeature objects segment, where property matched.java.util.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.java.util.List<BrandFeature>getBrandFeaturesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all BrandFeature objects, where property matches, sortedintgetBrandFeaturesCount()Returns BrandFeature objects count.FeaturegetFeature(java.lang.String id)Returns the Feature object with the specified id.java.util.List<Feature>getFeatures()Returns all Features objects stored.java.util.List<Feature>getFeatures(java.util.List<java.lang.String> ids)Returns the Feature objects with the specified ids.java.util.List<Feature>getFeatures(java.util.List<java.lang.String> ids, net.anotheria.util.sorter.SortType sortType)Returns the Feature objects with the specified ids, sorted by given sorttype.java.util.List<Feature>getFeatures(net.anotheria.util.slicer.Segment aSegment)Returns Feature objects segment.java.util.List<Feature>getFeatures(net.anotheria.util.sorter.SortType sortType)Returns all Features objects sorted by given sortType.java.util.List<Feature>getFeaturesByProperty(java.lang.String propertyName, java.lang.Object value)Returns all Feature objects, where property with given name equals object.java.util.List<Feature>getFeaturesByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)Returns all Feature objects, where property with given name equals object, sorted.java.util.List<Feature>getFeaturesByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all Feature objects, where property matches.java.util.List<Feature>getFeaturesByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)Returns Feature objects segment, where property matched.java.util.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.java.util.List<Feature>getFeaturesByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all Feature objects, where property matches, sortedintgetFeaturesCount()Returns Feature objects count.BrandFeatureimportBrandFeature(BrandFeature brandfeature)Imports a new BrandFeature object.java.util.List<BrandFeature>importBrandFeatures(java.util.List<BrandFeature> list)Imports multiple new BrandFeature object.FeatureimportFeature(Feature feature)Imports a new Feature object.java.util.List<Feature>importFeatures(java.util.List<Feature> list)Imports multiple new Feature object.voidmoduleLoaded(net.anotheria.anodoc.data.Module module)BrandFeatureupdateBrandFeature(BrandFeature brandfeature)Updates a BrandFeature object.java.util.List<BrandFeature>updateBrandFeatures(java.util.List<BrandFeature> list)Updates multiple BrandFeature objects.FeatureupdateFeature(Feature feature)Updates a Feature object.java.util.List<Feature>updateFeatures(java.util.List<Feature> list)Updates multiple Feature 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
-
getFeatures
public java.util.List<Feature> getFeatures()
Description copied from interface:IASFeatureServiceReturns all Features objects stored.- Specified by:
getFeaturesin interfaceIASFeatureService
-
getFeatures
public java.util.List<Feature> getFeatures(net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASFeatureServiceReturns all Features objects sorted by given sortType.- Specified by:
getFeaturesin interfaceIASFeatureService
-
getFeatures
public java.util.List<Feature> getFeatures(java.util.List<java.lang.String> ids)
Returns the Feature objects with the specified ids.
-
getFeatures
public java.util.List<Feature> getFeatures(java.util.List<java.lang.String> ids, net.anotheria.util.sorter.SortType sortType)
Returns the Feature objects with the specified ids, sorted by given sorttype.
-
deleteFeature
public void deleteFeature(Feature feature)
Description copied from interface:IASFeatureServiceDeletes a Feature object.- Specified by:
deleteFeaturein interfaceIASFeatureService
-
deleteFeature
public void deleteFeature(java.lang.String id)
Description copied from interface:IASFeatureServiceDeletes a Feature object by id.- Specified by:
deleteFeaturein interfaceIASFeatureService
-
deleteFeatures
public void deleteFeatures(java.util.List<Feature> list)
Description copied from interface:IASFeatureServiceDeletes multiple Feature object.- Specified by:
deleteFeaturesin interfaceIASFeatureService
-
getFeature
public Feature getFeature(java.lang.String id)
Description copied from interface:IASFeatureServiceReturns the Feature object with the specified id.- Specified by:
getFeaturein interfaceIASFeatureService
-
importFeature
public Feature importFeature(Feature feature)
Description copied from interface:IASFeatureServiceImports a new Feature object. Returns the created version.- Specified by:
importFeaturein interfaceIASFeatureService
-
importFeatures
public java.util.List<Feature> importFeatures(java.util.List<Feature> list)
Description copied from interface:IASFeatureServiceImports multiple new Feature object. Returns the created versions.- Specified by:
importFeaturesin interfaceIASFeatureService
-
createFeature
public Feature createFeature(Feature feature)
Description copied from interface:IASFeatureServiceCreates a new Feature object. Returns the created version.- Specified by:
createFeaturein interfaceIASFeatureService
-
createFeatures
public java.util.List<Feature> createFeatures(java.util.List<Feature> list)
Description copied from interface:IASFeatureServiceCreates multiple new Feature objects. Returns the created versions.- Specified by:
createFeaturesin interfaceIASFeatureService
-
updateFeature
public Feature updateFeature(Feature feature)
Description copied from interface:IASFeatureServiceUpdates a Feature object. Returns the updated version.- Specified by:
updateFeaturein interfaceIASFeatureService
-
updateFeatures
public java.util.List<Feature> updateFeatures(java.util.List<Feature> list)
Description copied from interface:IASFeatureServiceUpdates multiple Feature objects. Returns the updated versions.- Specified by:
updateFeaturesin interfaceIASFeatureService
-
getFeaturesByProperty
public java.util.List<Feature> getFeaturesByProperty(java.lang.String propertyName, java.lang.Object value)
Description copied from interface:IASFeatureServiceReturns all Feature objects, where property with given name equals object.- Specified by:
getFeaturesByPropertyin interfaceIASFeatureService
-
getFeaturesByProperty
public java.util.List<Feature> getFeaturesByProperty(java.lang.String propertyName, java.lang.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
public java.util.List<Feature> getFeaturesByProperty(net.anotheria.anodoc.query2.QueryProperty... property)
Returns all Feature objects, where property matches.- Specified by:
getFeaturesByPropertyin interfaceIASFeatureService
-
getFeaturesByProperty
public java.util.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
public java.util.List<Feature> getFeatures(net.anotheria.util.slicer.Segment aSegment)
Returns Feature objects segment.- Specified by:
getFeaturesin interfaceIASFeatureService
-
getFeaturesByProperty
public java.util.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 java.util.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(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASFeatureServiceExceptionDescription copied from interface:IASFeatureServiceCreate json object list dependencies for this Feature document.- Specified by:
fetchFeaturein interfaceIASFeatureService- Throws:
ASFeatureServiceException
-
getBrandFeatures
public java.util.List<BrandFeature> getBrandFeatures()
Description copied from interface:IASFeatureServiceReturns all BrandFeatures objects stored.- Specified by:
getBrandFeaturesin interfaceIASFeatureService
-
getBrandFeatures
public java.util.List<BrandFeature> getBrandFeatures(net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IASFeatureServiceReturns all BrandFeatures objects sorted by given sortType.- Specified by:
getBrandFeaturesin interfaceIASFeatureService
-
getBrandFeatures
public java.util.List<BrandFeature> getBrandFeatures(java.util.List<java.lang.String> ids)
Returns the BrandFeature objects with the specified ids.
-
getBrandFeatures
public java.util.List<BrandFeature> getBrandFeatures(java.util.List<java.lang.String> ids, net.anotheria.util.sorter.SortType sortType)
Returns the BrandFeature objects with the specified ids, sorted by given sorttype.
-
deleteBrandFeature
public void deleteBrandFeature(BrandFeature brandfeature)
Description copied from interface:IASFeatureServiceDeletes a BrandFeature object.- Specified by:
deleteBrandFeaturein interfaceIASFeatureService
-
deleteBrandFeature
public void deleteBrandFeature(java.lang.String id)
Description copied from interface:IASFeatureServiceDeletes a BrandFeature object by id.- Specified by:
deleteBrandFeaturein interfaceIASFeatureService
-
deleteBrandFeatures
public void deleteBrandFeatures(java.util.List<BrandFeature> list)
Description copied from interface:IASFeatureServiceDeletes multiple BrandFeature object.- Specified by:
deleteBrandFeaturesin interfaceIASFeatureService
-
getBrandFeature
public BrandFeature getBrandFeature(java.lang.String id)
Description copied from interface:IASFeatureServiceReturns the BrandFeature object with the specified id.- Specified by:
getBrandFeaturein interfaceIASFeatureService
-
importBrandFeature
public BrandFeature importBrandFeature(BrandFeature brandfeature)
Description copied from interface:IASFeatureServiceImports a new BrandFeature object. Returns the created version.- Specified by:
importBrandFeaturein interfaceIASFeatureService
-
importBrandFeatures
public java.util.List<BrandFeature> importBrandFeatures(java.util.List<BrandFeature> list)
Description copied from interface:IASFeatureServiceImports multiple new BrandFeature object. Returns the created versions.- Specified by:
importBrandFeaturesin interfaceIASFeatureService
-
createBrandFeature
public BrandFeature createBrandFeature(BrandFeature brandfeature)
Description copied from interface:IASFeatureServiceCreates a new BrandFeature object. Returns the created version.- Specified by:
createBrandFeaturein interfaceIASFeatureService
-
createBrandFeatures
public java.util.List<BrandFeature> createBrandFeatures(java.util.List<BrandFeature> list)
Description copied from interface:IASFeatureServiceCreates multiple new BrandFeature objects. Returns the created versions.- Specified by:
createBrandFeaturesin interfaceIASFeatureService
-
updateBrandFeature
public BrandFeature updateBrandFeature(BrandFeature brandfeature)
Description copied from interface:IASFeatureServiceUpdates a BrandFeature object. Returns the updated version.- Specified by:
updateBrandFeaturein interfaceIASFeatureService
-
updateBrandFeatures
public java.util.List<BrandFeature> updateBrandFeatures(java.util.List<BrandFeature> list)
Description copied from interface:IASFeatureServiceUpdates multiple BrandFeature objects. Returns the updated versions.- Specified by:
updateBrandFeaturesin interfaceIASFeatureService
-
getBrandFeaturesByProperty
public java.util.List<BrandFeature> getBrandFeaturesByProperty(java.lang.String propertyName, java.lang.Object value)
Description copied from interface:IASFeatureServiceReturns all BrandFeature objects, where property with given name equals object.- Specified by:
getBrandFeaturesByPropertyin interfaceIASFeatureService
-
getBrandFeaturesByProperty
public java.util.List<BrandFeature> getBrandFeaturesByProperty(java.lang.String propertyName, java.lang.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 java.util.List<BrandFeature> getBrandFeaturesByProperty(net.anotheria.anodoc.query2.QueryProperty... property)
Returns all BrandFeature objects, where property matches.- Specified by:
getBrandFeaturesByPropertyin interfaceIASFeatureService
-
getBrandFeaturesByProperty
public java.util.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
public java.util.List<BrandFeature> getBrandFeatures(net.anotheria.util.slicer.Segment aSegment)
Returns BrandFeature objects segment.- Specified by:
getBrandFeaturesin interfaceIASFeatureService
-
getBrandFeaturesByProperty
public java.util.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 java.util.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(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASFeatureServiceExceptionDescription copied from interface:IASFeatureServiceCreate json object list dependencies for this BrandFeature document.- Specified by:
fetchBrandFeaturein interfaceIASFeatureService- Throws:
ASFeatureServiceException
-
executeParsingForDocument
public void executeParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data) throws ASFeatureServiceException
Description copied from interface:IASFeatureServiceSave transferred document by its own type.- Specified by:
executeParsingForDocumentin 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
public net.anotheria.util.xml.XMLNode exportFeaturesToXML(java.util.List<Feature> list)
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
public net.anotheria.util.xml.XMLNode exportBrandFeaturesToXML(java.util.List<BrandFeature> list)
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
-
-