Class AnoAccessApplicationDataServiceFixtureImpl
java.lang.Object
net.anotheria.asg.service.AbstractASGService
net.anotheria.asg.service.BaseFixtureService
net.anotheria.anosite.gen.anoaccessapplicationdata.service.fixture.AnoAccessApplicationDataServiceFixtureImpl
- All Implemented Interfaces:
net.anotheria.anoprise.metafactory.Service,IAnoAccessApplicationDataService,net.anotheria.asg.service.ASGService,net.anotheria.asg.service.IFixtureService
public class AnoAccessApplicationDataServiceFixtureImpl
extends net.anotheria.asg.service.BaseFixtureService
implements IAnoAccessApplicationDataService, net.anotheria.asg.service.IFixtureService
-
Method Summary
Modifier and TypeMethodDescriptioncreateUserData(UserData userdata) Creates a new UserData object.createUserDatas(List<UserData> list) Creates multiple new UserData objects.voiddeleteUserData(String id) Deletes a UserData object by id.voiddeleteUserData(UserData userdata) Deletes a UserData object.voiddeleteUserDatas(List<UserData> list) Deletes multiple UserData objects.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.XMLNodecreates an xml element with all contained data.net.anotheria.util.xml.XMLNodenet.anotheria.util.xml.XMLNodeexportUserDatasToXML(String[] languages) net.anotheria.util.xml.XMLNodeexportUserDatasToXML(String[] languages, List<UserData> list) net.anotheria.util.xml.XMLNodeexportUserDatasToXML(List<UserData> list) Creates an xml element with selected contained data.voidfetchUserData(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) Create json object list dependencies for this UserData document.getUserData(String id) Returns the UserData object with the specified id.Returns all UserDatas objects stored.getUserDatas(net.anotheria.util.slicer.Segment aSegment) Returns UserData objects segment.getUserDatas(net.anotheria.util.sorter.SortType sortType) Returns all UserDatas objects sorted by given sortType.getUserDatasByProperty(String propertyName, Object value) Returns all UserData objects, where property with given name equals object.getUserDatasByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Returns all UserData objects, where property with given name equals object, sorted.getUserDatasByProperty(net.anotheria.anodoc.query2.QueryProperty... properties) Returns all UserData objects, where property matches.getUserDatasByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns UserData objects segment, where property matched.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.getUserDatasByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all UserData objects, where property matches, sortedintReturns UserData objects count.importUserData(UserData userdata) Imports a new UserData object.importUserDatas(List<UserData> list) Imports multiple new UserData object.voidreset()updateUserData(UserData userdata) Updates a UserData object.updateUserDatas(List<UserData> list) Updates multiple new UserData objects.Methods inherited from class net.anotheria.asg.service.BaseFixtureService
setUp, tearDownMethods 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, removeServiceListenerMethods inherited from interface net.anotheria.asg.service.IFixtureService
setUp, tearDown
-
Method Details
-
reset
public void reset()- Specified by:
resetin interfacenet.anotheria.asg.service.IFixtureService
-
getUserDatas
Description copied from interface:IAnoAccessApplicationDataServiceReturns all UserDatas objects stored.- Specified by:
getUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatas
public List<UserData> getUserDatas(net.anotheria.util.sorter.SortType sortType) throws AnoAccessApplicationDataServiceException Description copied from interface:IAnoAccessApplicationDataServiceReturns all UserDatas objects sorted by given sortType.- Specified by:
getUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
deleteUserData
Description copied from interface:IAnoAccessApplicationDataServiceDeletes a UserData object.- Specified by:
deleteUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
deleteUserData
Description copied from interface:IAnoAccessApplicationDataServiceDeletes a UserData object by id.- Specified by:
deleteUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
deleteUserDatas
Deletes multiple UserData objects.- Specified by:
deleteUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserData
Description copied from interface:IAnoAccessApplicationDataServiceReturns the UserData object with the specified id.- Specified by:
getUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
importUserData
Description copied from interface:IAnoAccessApplicationDataServiceImports a new UserData object. Returns the created version.- Specified by:
importUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
importUserDatas
public List<UserData> importUserDatas(List<UserData> list) throws AnoAccessApplicationDataServiceException Description copied from interface:IAnoAccessApplicationDataServiceImports multiple new UserData object. Returns the created versions.- Specified by:
importUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
createUserData
Description copied from interface:IAnoAccessApplicationDataServiceCreates a new UserData object. Returns the created version.- Specified by:
createUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
createUserDatas
public List<UserData> createUserDatas(List<UserData> list) throws AnoAccessApplicationDataServiceException Creates multiple new UserData objects. Returns the created versions.- Specified by:
createUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
updateUserDatas
public List<UserData> updateUserDatas(List<UserData> list) throws AnoAccessApplicationDataServiceException Updates multiple new UserData objects. Returns the updated versions.- Specified by:
updateUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
updateUserData
Description copied from interface:IAnoAccessApplicationDataServiceUpdates a UserData object. Returns the updated version.- Specified by:
updateUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatasByProperty
public List<UserData> getUserDatasByProperty(String propertyName, Object value) throws AnoAccessApplicationDataServiceException Description copied from interface:IAnoAccessApplicationDataServiceReturns all UserData objects, where property with given name equals object.- Specified by:
getUserDatasByPropertyin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatasByProperty
public List<UserData> getUserDatasByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) throws AnoAccessApplicationDataServiceException Description copied from interface:IAnoAccessApplicationDataServiceReturns all UserData objects, where property with given name equals object, sorted.- Specified by:
getUserDatasByPropertyin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
executeQueryOnUserDatas
public net.anotheria.anodoc.query2.QueryResult executeQueryOnUserDatas(net.anotheria.anodoc.query2.DocumentQuery query) throws AnoAccessApplicationDataServiceException Executes a query on UserDatas- Specified by:
executeQueryOnUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatasByProperty
public List<UserData> getUserDatasByProperty(net.anotheria.anodoc.query2.QueryProperty... properties) throws AnoAccessApplicationDataServiceException Returns all UserData objects, where property matches.- Specified by:
getUserDatasByPropertyin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatasByProperty
public List<UserData> getUserDatasByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) throws AnoAccessApplicationDataServiceException Returns all UserData objects, where property matches, sorted- Specified by:
getUserDatasByPropertyin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatasCount
Returns UserData objects count.- Specified by:
getUserDatasCountin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatas
public List<UserData> getUserDatas(net.anotheria.util.slicer.Segment aSegment) throws AnoAccessApplicationDataServiceException Returns UserData objects segment.- Specified by:
getUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatasByProperty
public 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 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
-
exportUserDatasToXML
public net.anotheria.util.xml.XMLNode exportUserDatasToXML() -
exportUserDatasToXML
Description copied from interface:IAnoAccessApplicationDataServiceCreates an xml element with selected contained data.- Specified by:
exportUserDatasToXMLin interfaceIAnoAccessApplicationDataService
-
exportUserDatasToXML
-
exportUserDatasToXML
-
fetchUserData
public void fetchUserData(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws AnoAccessApplicationDataServiceException Description copied from interface:IAnoAccessApplicationDataServiceCreate json object list dependencies for this UserData document.- Specified by:
fetchUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
executeQueryOnAllObjects
public net.anotheria.anodoc.query2.QueryResult executeQueryOnAllObjects(net.anotheria.anodoc.query2.DocumentQuery query) throws AnoAccessApplicationDataServiceException Executes a query on all data objects (documents, vo) which are part of this module and managed by this service- Specified by:
executeQueryOnAllObjectsin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
exportToXML
public net.anotheria.util.xml.XMLNode exportToXML()Description copied from interface:IAnoAccessApplicationDataServicecreates an xml element with all contained data.- Specified by:
exportToXMLin interfaceIAnoAccessApplicationDataService
-