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
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 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.XMLNodeexportToXML()creates an xml element with all contained data.net.anotheria.util.xml.XMLNodeexportUserDatasToXML()net.anotheria.util.xml.XMLNodeexportUserDatasToXML(java.lang.String[] languages)net.anotheria.util.xml.XMLNodeexportUserDatasToXML(java.lang.String[] languages, java.util.List<UserData> list)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(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... properties)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.voidreset()UserDataupdateUserData(UserData userdata)Updates a UserData object.java.util.List<UserData>updateUserDatas(java.util.List<UserData> list)Updates multiple new UserData objects.-
Methods inherited from class net.anotheria.asg.service.AbstractASGService
addServiceListener, fireObjectCreatedEvent, fireObjectDeletedEvent, fireObjectImportedEvent, fireObjectUpdatedEvent, firePersistenceChangedEvent, hasServiceListeners, removeServiceListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
reset
public void reset()
- Specified by:
resetin interfacenet.anotheria.asg.service.IFixtureService
-
getUserDatas
public java.util.List<UserData> getUserDatas() throws AnoAccessApplicationDataServiceException
Description copied from interface:IAnoAccessApplicationDataServiceReturns all UserDatas objects stored.- Specified by:
getUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatas
public java.util.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
public void deleteUserData(UserData userdata) throws AnoAccessApplicationDataServiceException
Description copied from interface:IAnoAccessApplicationDataServiceDeletes a UserData object.- Specified by:
deleteUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
deleteUserData
public void deleteUserData(java.lang.String id) throws AnoAccessApplicationDataServiceExceptionDescription copied from interface:IAnoAccessApplicationDataServiceDeletes a UserData object by id.- Specified by:
deleteUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
deleteUserDatas
public void deleteUserDatas(java.util.List<UserData> list) throws AnoAccessApplicationDataServiceException
Deletes multiple UserData objects.- Specified by:
deleteUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserData
public UserData getUserData(java.lang.String id) throws AnoAccessApplicationDataServiceException
Description copied from interface:IAnoAccessApplicationDataServiceReturns the UserData object with the specified id.- Specified by:
getUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
importUserData
public UserData importUserData(UserData userdata) throws AnoAccessApplicationDataServiceException
Description copied from interface:IAnoAccessApplicationDataServiceImports a new UserData object. Returns the created version.- Specified by:
importUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
importUserDatas
public java.util.List<UserData> importUserDatas(java.util.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
public UserData createUserData(UserData userdata) throws AnoAccessApplicationDataServiceException
Description copied from interface:IAnoAccessApplicationDataServiceCreates a new UserData object. Returns the created version.- Specified by:
createUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
createUserDatas
public java.util.List<UserData> createUserDatas(java.util.List<UserData> list) throws AnoAccessApplicationDataServiceException
Creates multiple new UserData objects. Returns the created versions.- Specified by:
createUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
updateUserDatas
public java.util.List<UserData> updateUserDatas(java.util.List<UserData> list) throws AnoAccessApplicationDataServiceException
Updates multiple new UserData objects. Returns the updated versions.- Specified by:
updateUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
updateUserData
public UserData updateUserData(UserData userdata) throws AnoAccessApplicationDataServiceException
Description copied from interface:IAnoAccessApplicationDataServiceUpdates a UserData object. Returns the updated version.- Specified by:
updateUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatasByProperty
public java.util.List<UserData> getUserDatasByProperty(java.lang.String propertyName, java.lang.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 java.util.List<UserData> getUserDatasByProperty(java.lang.String propertyName, java.lang.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 AnoAccessApplicationDataServiceExceptionExecutes a query on UserDatas- Specified by:
executeQueryOnUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatasByProperty
public java.util.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 java.util.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
public int getUserDatasCount() throws AnoAccessApplicationDataServiceExceptionReturns UserData objects count.- Specified by:
getUserDatasCountin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserDatas
public java.util.List<UserData> getUserDatas(net.anotheria.util.slicer.Segment aSegment) throws AnoAccessApplicationDataServiceException
Returns UserData objects segment.- Specified by:
getUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
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
-
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
-
exportUserDatasToXML
public net.anotheria.util.xml.XMLNode exportUserDatasToXML(java.lang.String[] languages)
-
exportUserDatasToXML
public net.anotheria.util.xml.XMLNode exportUserDatasToXML(java.lang.String[] languages, java.util.List<UserData> list)
-
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) throws AnoAccessApplicationDataServiceExceptionExecutes 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
-
-