Class AnoAccessApplicationDataServiceImpl
- 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.anoaccessapplicationdata.service.AnoAccessApplicationDataServiceImpl
-
- All Implemented Interfaces:
net.anotheria.anoprise.metafactory.Service,IAnoAccessApplicationDataService,net.anotheria.asg.service.ASGService,net.anotheria.asg.util.listener.IModuleListener
public class AnoAccessApplicationDataServiceImpl extends BasicCMSService implements IAnoAccessApplicationDataService, 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 UserDatacreateUserData(UserData userdata)Creates a new UserData object.java.util.List<UserData>createUserDatas(java.util.List<UserData> list)Creates multiple new UserData objects.voiddeleteUserData(java.lang.String id)Deletes a UserData object by id.voiddeleteUserData(UserData userdata)Deletes a UserData object.voiddeleteUserDatas(java.util.List<UserData> list)Deletes multiple UserData 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.QueryResultexecuteQueryOnUserDatas(net.anotheria.anodoc.query2.DocumentQuery query)Executes a query on UserDatasnet.anotheria.util.xml.XMLNodeexportToXML()creates an xml element with all contained data.net.anotheria.util.xml.XMLNodeexportUserDatasToXML()net.anotheria.util.xml.XMLNodeexportUserDatasToXML(java.util.List<UserData> list)Creates an xml element with selected contained data.voidfetchUserData(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this UserData document.UserDatagetUserData(java.lang.String id)Returns the UserData object with the specified id.java.util.List<UserData>getUserDatas()Returns all UserDatas objects stored.java.util.List<UserData>getUserDatas(java.util.List<java.lang.String> ids)Returns the UserData objects with the specified ids.java.util.List<UserData>getUserDatas(java.util.List<java.lang.String> ids, net.anotheria.util.sorter.SortType sortType)Returns the UserData objects with the specified ids, sorted by given sorttype.java.util.List<UserData>getUserDatas(net.anotheria.util.slicer.Segment aSegment)Returns UserData objects segment.java.util.List<UserData>getUserDatas(net.anotheria.util.sorter.SortType sortType)Returns all UserDatas objects sorted by given sortType.java.util.List<UserData>getUserDatasByProperty(java.lang.String propertyName, java.lang.Object value)Returns all UserData objects, where property with given name equals object.java.util.List<UserData>getUserDatasByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)Returns all UserData objects, where property with given name equals object, sorted.java.util.List<UserData>getUserDatasByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all UserData objects, where property matches.java.util.List<UserData>getUserDatasByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)Returns UserData objects segment, where property matched.java.util.List<UserData>getUserDatasByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns UserData objects segment, where property matched, sorted.java.util.List<UserData>getUserDatasByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all UserData objects, where property matches, sortedintgetUserDatasCount()Returns UserData objects count.UserDataimportUserData(UserData userdata)Imports a new UserData object.java.util.List<UserData>importUserDatas(java.util.List<UserData> list)Imports multiple new UserData object.voidmoduleLoaded(net.anotheria.anodoc.data.Module module)UserDataupdateUserData(UserData userdata)Updates a UserData object.java.util.List<UserData>updateUserDatas(java.util.List<UserData> list)Updates multiple UserData 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
-
getUserDatas
public java.util.List<UserData> getUserDatas()
Description copied from interface:IAnoAccessApplicationDataServiceReturns all UserDatas objects stored.- Specified by:
getUserDatasin interfaceIAnoAccessApplicationDataService
-
getUserDatas
public java.util.List<UserData> getUserDatas(net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IAnoAccessApplicationDataServiceReturns all UserDatas objects sorted by given sortType.- Specified by:
getUserDatasin interfaceIAnoAccessApplicationDataService
-
getUserDatas
public java.util.List<UserData> getUserDatas(java.util.List<java.lang.String> ids)
Returns the UserData objects with the specified ids.
-
getUserDatas
public java.util.List<UserData> getUserDatas(java.util.List<java.lang.String> ids, net.anotheria.util.sorter.SortType sortType)
Returns the UserData objects with the specified ids, sorted by given sorttype.
-
deleteUserData
public void deleteUserData(UserData userdata)
Description copied from interface:IAnoAccessApplicationDataServiceDeletes a UserData object.- Specified by:
deleteUserDatain interfaceIAnoAccessApplicationDataService
-
deleteUserData
public void deleteUserData(java.lang.String id)
Description copied from interface:IAnoAccessApplicationDataServiceDeletes a UserData object by id.- Specified by:
deleteUserDatain interfaceIAnoAccessApplicationDataService
-
deleteUserDatas
public void deleteUserDatas(java.util.List<UserData> list)
Description copied from interface:IAnoAccessApplicationDataServiceDeletes multiple UserData object.- Specified by:
deleteUserDatasin interfaceIAnoAccessApplicationDataService
-
getUserData
public UserData getUserData(java.lang.String id)
Description copied from interface:IAnoAccessApplicationDataServiceReturns the UserData object with the specified id.- Specified by:
getUserDatain interfaceIAnoAccessApplicationDataService
-
importUserData
public UserData importUserData(UserData userdata)
Description copied from interface:IAnoAccessApplicationDataServiceImports a new UserData object. Returns the created version.- Specified by:
importUserDatain interfaceIAnoAccessApplicationDataService
-
importUserDatas
public java.util.List<UserData> importUserDatas(java.util.List<UserData> list)
Description copied from interface:IAnoAccessApplicationDataServiceImports multiple new UserData object. Returns the created versions.- Specified by:
importUserDatasin interfaceIAnoAccessApplicationDataService
-
createUserData
public UserData createUserData(UserData userdata)
Description copied from interface:IAnoAccessApplicationDataServiceCreates a new UserData object. Returns the created version.- Specified by:
createUserDatain interfaceIAnoAccessApplicationDataService
-
createUserDatas
public java.util.List<UserData> createUserDatas(java.util.List<UserData> list)
Description copied from interface:IAnoAccessApplicationDataServiceCreates multiple new UserData objects. Returns the created versions.- Specified by:
createUserDatasin interfaceIAnoAccessApplicationDataService
-
updateUserData
public UserData updateUserData(UserData userdata)
Description copied from interface:IAnoAccessApplicationDataServiceUpdates a UserData object. Returns the updated version.- Specified by:
updateUserDatain interfaceIAnoAccessApplicationDataService
-
updateUserDatas
public java.util.List<UserData> updateUserDatas(java.util.List<UserData> list)
Description copied from interface:IAnoAccessApplicationDataServiceUpdates multiple UserData objects. Returns the updated versions.- Specified by:
updateUserDatasin interfaceIAnoAccessApplicationDataService
-
getUserDatasByProperty
public java.util.List<UserData> getUserDatasByProperty(java.lang.String propertyName, java.lang.Object value)
Description copied from interface:IAnoAccessApplicationDataServiceReturns all UserData objects, where property with given name equals object.- Specified by:
getUserDatasByPropertyin interfaceIAnoAccessApplicationDataService
-
getUserDatasByProperty
public java.util.List<UserData> getUserDatasByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)
Description copied from interface:IAnoAccessApplicationDataServiceReturns all UserData objects, where property with given name equals object, sorted.- Specified by:
getUserDatasByPropertyin interfaceIAnoAccessApplicationDataService
-
executeQueryOnUserDatas
public net.anotheria.anodoc.query2.QueryResult executeQueryOnUserDatas(net.anotheria.anodoc.query2.DocumentQuery query)
Executes a query on UserDatas- Specified by:
executeQueryOnUserDatasin interfaceIAnoAccessApplicationDataService
-
getUserDatasByProperty
public java.util.List<UserData> getUserDatasByProperty(net.anotheria.anodoc.query2.QueryProperty... property)
Returns all UserData objects, where property matches.- Specified by:
getUserDatasByPropertyin interfaceIAnoAccessApplicationDataService
-
getUserDatasByProperty
public java.util.List<UserData> getUserDatasByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)
Returns all UserData objects, where property matches, sorted- Specified by:
getUserDatasByPropertyin interfaceIAnoAccessApplicationDataService
-
getUserDatasCount
public int getUserDatasCount()
Returns UserData objects count.- Specified by:
getUserDatasCountin interfaceIAnoAccessApplicationDataService
-
getUserDatas
public java.util.List<UserData> getUserDatas(net.anotheria.util.slicer.Segment aSegment)
Returns UserData objects segment.- Specified by:
getUserDatasin interfaceIAnoAccessApplicationDataService
-
getUserDatasByProperty
public java.util.List<UserData> getUserDatasByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)
Returns UserData objects segment, where property matched.- Specified by:
getUserDatasByPropertyin interfaceIAnoAccessApplicationDataService
-
getUserDatasByProperty
public java.util.List<UserData> getUserDatasByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)
Returns UserData objects segment, where property matched, sorted.- Specified by:
getUserDatasByPropertyin interfaceIAnoAccessApplicationDataService
-
fetchUserData
public void fetchUserData(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws AnoAccessApplicationDataServiceExceptionDescription copied from interface:IAnoAccessApplicationDataServiceCreate json object list dependencies for this UserData document.- Specified by:
fetchUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
executeParsingForDocument
public void executeParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data) throws AnoAccessApplicationDataServiceException
Description copied from interface:IAnoAccessApplicationDataServiceSave transferred document by its own type.- Specified by:
executeParsingForDocumentin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
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 interfaceIAnoAccessApplicationDataService
-
exportUserDatasToXML
public net.anotheria.util.xml.XMLNode exportUserDatasToXML()
-
exportUserDatasToXML
public net.anotheria.util.xml.XMLNode exportUserDatasToXML(java.util.List<UserData> list)
Description copied from interface:IAnoAccessApplicationDataServiceCreates an xml element with selected contained data.- Specified by:
exportUserDatasToXMLin interfaceIAnoAccessApplicationDataService
-
exportToXML
public net.anotheria.util.xml.XMLNode exportToXML()
Description copied from interface:IAnoAccessApplicationDataServicecreates an xml element with all contained data.- Specified by:
exportToXMLin interfaceIAnoAccessApplicationDataService
-
-