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.List<UserData>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.XMLNodeexportToXML()creates an xml element with all contained data.net.anotheria.util.xml.XMLNodeexportUserDatasToXML()net.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.UserDatagetUserData(String id)Returns the UserData object with the specified id.List<UserData>getUserDatas()Returns all UserDatas objects stored.List<UserData>getUserDatas(net.anotheria.util.slicer.Segment aSegment)Returns UserData objects segment.List<UserData>getUserDatas(net.anotheria.util.sorter.SortType sortType)Returns all UserDatas objects sorted by given sortType.List<UserData>getUserDatasByProperty(String propertyName, Object value)Returns all UserData objects, where property with given name equals object.List<UserData>getUserDatasByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType)Returns all UserData objects, where property with given name equals object, sorted.List<UserData>getUserDatasByProperty(net.anotheria.anodoc.query2.QueryProperty... properties)Returns all UserData objects, where property matches.List<UserData>getUserDatasByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property)Returns UserData objects segment, where property matched.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.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.List<UserData>importUserDatas(List<UserData> list)Imports multiple new UserData object.voidreset()UserDataupdateUserData(UserData userdata)Updates a UserData object.List<UserData>updateUserDatas(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 List<UserData> getUserDatas() throws AnoAccessApplicationDataServiceException
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
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(String id) throws AnoAccessApplicationDataServiceException
Description copied from interface:IAnoAccessApplicationDataServiceDeletes a UserData object by id.- Specified by:
deleteUserDatain interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
deleteUserDatas
public void deleteUserDatas(List<UserData> list) throws AnoAccessApplicationDataServiceException
Deletes multiple UserData objects.- Specified by:
deleteUserDatasin interfaceIAnoAccessApplicationDataService- Throws:
AnoAccessApplicationDataServiceException
-
getUserData
public UserData getUserData(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 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
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 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
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 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 AnoAccessApplicationDataServiceExceptionExecutes 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
public int getUserDatasCount() throws AnoAccessApplicationDataServiceExceptionReturns 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
public net.anotheria.util.xml.XMLNode exportUserDatasToXML(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(String[] languages)
-
exportUserDatasToXML
public net.anotheria.util.xml.XMLNode exportUserDatasToXML(String[] languages, List<UserData> list)
-
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
-
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
-
-