Class ASUserDataServiceImpl
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.asuserdata.service.ASUserDataServiceImpl
- All Implemented Interfaces:
net.anotheria.anoprise.metafactory.Service,IASUserDataService,net.anotheria.asg.service.ASGService,net.anotheria.asg.util.listener.IModuleListener
public class ASUserDataServiceImpl
extends BasicCMSService
implements IASUserDataService, net.anotheria.asg.util.listener.IModuleListener
-
Field Summary
Fields inherited from class net.anotheria.anosite.gen.shared.service.BasicCMSService
MY_OWNER_ID, serviceFields inherited from class net.anotheria.anosite.gen.shared.service.BasicService
log -
Method Summary
Modifier and TypeMethodDescriptioncreateRoleDef(RoleDef roledef) Creates a new RoleDef object.createRoleDefs(List<RoleDef> list) Creates multiple new RoleDef objects.createUserDef(UserDef userdef) Creates a new UserDef object.createUserDefs(List<UserDef> list) Creates multiple new UserDef objects.voiddeleteRoleDef(String id) Deletes a RoleDef object by id.voiddeleteRoleDef(RoleDef roledef) Deletes a RoleDef object.voiddeleteRoleDefs(List<RoleDef> list) Deletes multiple RoleDef object.voiddeleteUserDef(String id) Deletes a UserDef object by id.voiddeleteUserDef(UserDef userdef) Deletes a UserDef object.voiddeleteUserDefs(List<UserDef> list) Deletes multiple UserDef 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.QueryResultexecuteQueryOnRoleDefs(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query on RoleDefsnet.anotheria.anodoc.query2.QueryResultexecuteQueryOnUserDefs(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query on UserDefsnet.anotheria.util.xml.XMLNodenet.anotheria.util.xml.XMLNodeexportRoleDefsToXML(List<RoleDef> list) Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodecreates an xml element with all contained data.net.anotheria.util.xml.XMLNodenet.anotheria.util.xml.XMLNodeexportUserDefsToXML(List<UserDef> list) Creates an xml element with selected contained data.voidfetchRoleDef(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) Create json object list dependencies for this RoleDef document.voidfetchUserDef(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) Create json object list dependencies for this UserDef document.getRoleDef(String id) Returns the RoleDef object with the specified id.Returns all RoleDefs objects stored.getRoleDefs(List<String> ids) Returns the RoleDef objects with the specified ids.getRoleDefs(List<String> ids, net.anotheria.util.sorter.SortType sortType) Returns the RoleDef objects with the specified ids, sorted by given sorttype.getRoleDefs(net.anotheria.util.slicer.Segment aSegment) Returns RoleDef objects segment.getRoleDefs(net.anotheria.util.sorter.SortType sortType) Returns all RoleDefs objects sorted by given sortType.getRoleDefsByProperty(String propertyName, Object value) Returns all RoleDef objects, where property with given name equals object.getRoleDefsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Returns all RoleDef objects, where property with given name equals object, sorted.getRoleDefsByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all RoleDef objects, where property matches.getRoleDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns RoleDef objects segment, where property matched.getRoleDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns RoleDef objects segment, where property matched, sorted.getRoleDefsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all RoleDef objects, where property matches, sortedintReturns RoleDef objects count.getUserDef(String id) Returns the UserDef object with the specified id.Returns all UserDefs objects stored.getUserDefs(List<String> ids) Returns the UserDef objects with the specified ids.getUserDefs(List<String> ids, net.anotheria.util.sorter.SortType sortType) Returns the UserDef objects with the specified ids, sorted by given sorttype.getUserDefs(net.anotheria.util.slicer.Segment aSegment) Returns UserDef objects segment.getUserDefs(net.anotheria.util.sorter.SortType sortType) Returns all UserDefs objects sorted by given sortType.getUserDefsByProperty(String propertyName, Object value) Returns all UserDef objects, where property with given name equals object.getUserDefsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Returns all UserDef objects, where property with given name equals object, sorted.getUserDefsByProperty(net.anotheria.anodoc.query2.QueryProperty... property) Returns all UserDef objects, where property matches.getUserDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns UserDef objects segment, where property matched.getUserDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns UserDef objects segment, where property matched, sorted.getUserDefsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all UserDef objects, where property matches, sortedintReturns UserDef objects count.importRoleDef(RoleDef roledef) Imports a new RoleDef object.importRoleDefs(List<RoleDef> list) Imports multiple new RoleDef object.importUserDef(UserDef userdef) Imports a new UserDef object.importUserDefs(List<UserDef> list) Imports multiple new UserDef object.voidmoduleLoaded(net.anotheria.anodoc.data.Module module) updateRoleDef(RoleDef roledef) Updates a RoleDef object.updateRoleDefs(List<RoleDef> list) Updates multiple RoleDef objects.updateUserDef(UserDef userdef) Updates a UserDef object.updateUserDefs(List<UserDef> list) Updates multiple UserDef objects.Methods inherited from class net.anotheria.anosite.gen.shared.service.BasicCMSService
addModuleListener, getModule, updateModuleMethods 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, getImagesServiceMethods 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, removeServiceListener
-
Method Details
-
moduleLoaded
public void moduleLoaded(net.anotheria.anodoc.data.Module module) - Specified by:
moduleLoadedin interfacenet.anotheria.asg.util.listener.IModuleListener
-
getUserDefs
Description copied from interface:IASUserDataServiceReturns all UserDefs objects stored.- Specified by:
getUserDefsin interfaceIASUserDataService
-
getUserDefs
Description copied from interface:IASUserDataServiceReturns all UserDefs objects sorted by given sortType.- Specified by:
getUserDefsin interfaceIASUserDataService
-
getUserDefs
Returns the UserDef objects with the specified ids. -
getUserDefs
Returns the UserDef objects with the specified ids, sorted by given sorttype. -
deleteUserDef
Description copied from interface:IASUserDataServiceDeletes a UserDef object.- Specified by:
deleteUserDefin interfaceIASUserDataService
-
deleteUserDef
Description copied from interface:IASUserDataServiceDeletes a UserDef object by id.- Specified by:
deleteUserDefin interfaceIASUserDataService
-
deleteUserDefs
Description copied from interface:IASUserDataServiceDeletes multiple UserDef object.- Specified by:
deleteUserDefsin interfaceIASUserDataService
-
getUserDef
Description copied from interface:IASUserDataServiceReturns the UserDef object with the specified id.- Specified by:
getUserDefin interfaceIASUserDataService
-
importUserDef
Description copied from interface:IASUserDataServiceImports a new UserDef object. Returns the created version.- Specified by:
importUserDefin interfaceIASUserDataService
-
importUserDefs
Description copied from interface:IASUserDataServiceImports multiple new UserDef object. Returns the created versions.- Specified by:
importUserDefsin interfaceIASUserDataService
-
createUserDef
Description copied from interface:IASUserDataServiceCreates a new UserDef object. Returns the created version.- Specified by:
createUserDefin interfaceIASUserDataService
-
createUserDefs
Description copied from interface:IASUserDataServiceCreates multiple new UserDef objects. Returns the created versions.- Specified by:
createUserDefsin interfaceIASUserDataService
-
updateUserDef
Description copied from interface:IASUserDataServiceUpdates a UserDef object. Returns the updated version.- Specified by:
updateUserDefin interfaceIASUserDataService
-
updateUserDefs
Description copied from interface:IASUserDataServiceUpdates multiple UserDef objects. Returns the updated versions.- Specified by:
updateUserDefsin interfaceIASUserDataService
-
getUserDefsByProperty
Description copied from interface:IASUserDataServiceReturns all UserDef objects, where property with given name equals object.- Specified by:
getUserDefsByPropertyin interfaceIASUserDataService
-
getUserDefsByProperty
public List<UserDef> getUserDefsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Description copied from interface:IASUserDataServiceReturns all UserDef objects, where property with given name equals object, sorted.- Specified by:
getUserDefsByPropertyin interfaceIASUserDataService
-
executeQueryOnUserDefs
public net.anotheria.anodoc.query2.QueryResult executeQueryOnUserDefs(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query on UserDefs- Specified by:
executeQueryOnUserDefsin interfaceIASUserDataService
-
getUserDefsByProperty
Returns all UserDef objects, where property matches.- Specified by:
getUserDefsByPropertyin interfaceIASUserDataService
-
getUserDefsByProperty
public List<UserDef> getUserDefsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all UserDef objects, where property matches, sorted- Specified by:
getUserDefsByPropertyin interfaceIASUserDataService
-
getUserDefsCount
public int getUserDefsCount()Returns UserDef objects count.- Specified by:
getUserDefsCountin interfaceIASUserDataService
-
getUserDefs
Returns UserDef objects segment.- Specified by:
getUserDefsin interfaceIASUserDataService
-
getUserDefsByProperty
public List<UserDef> getUserDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns UserDef objects segment, where property matched.- Specified by:
getUserDefsByPropertyin interfaceIASUserDataService
-
getUserDefsByProperty
public List<UserDef> getUserDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns UserDef objects segment, where property matched, sorted.- Specified by:
getUserDefsByPropertyin interfaceIASUserDataService
-
fetchUserDef
public void fetchUserDef(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASUserDataServiceException Description copied from interface:IASUserDataServiceCreate json object list dependencies for this UserDef document.- Specified by:
fetchUserDefin interfaceIASUserDataService- Throws:
ASUserDataServiceException
-
getRoleDefs
Description copied from interface:IASUserDataServiceReturns all RoleDefs objects stored.- Specified by:
getRoleDefsin interfaceIASUserDataService
-
getRoleDefs
Description copied from interface:IASUserDataServiceReturns all RoleDefs objects sorted by given sortType.- Specified by:
getRoleDefsin interfaceIASUserDataService
-
getRoleDefs
Returns the RoleDef objects with the specified ids. -
getRoleDefs
Returns the RoleDef objects with the specified ids, sorted by given sorttype. -
deleteRoleDef
Description copied from interface:IASUserDataServiceDeletes a RoleDef object.- Specified by:
deleteRoleDefin interfaceIASUserDataService
-
deleteRoleDef
Description copied from interface:IASUserDataServiceDeletes a RoleDef object by id.- Specified by:
deleteRoleDefin interfaceIASUserDataService
-
deleteRoleDefs
Description copied from interface:IASUserDataServiceDeletes multiple RoleDef object.- Specified by:
deleteRoleDefsin interfaceIASUserDataService
-
getRoleDef
Description copied from interface:IASUserDataServiceReturns the RoleDef object with the specified id.- Specified by:
getRoleDefin interfaceIASUserDataService
-
importRoleDef
Description copied from interface:IASUserDataServiceImports a new RoleDef object. Returns the created version.- Specified by:
importRoleDefin interfaceIASUserDataService
-
importRoleDefs
Description copied from interface:IASUserDataServiceImports multiple new RoleDef object. Returns the created versions.- Specified by:
importRoleDefsin interfaceIASUserDataService
-
createRoleDef
Description copied from interface:IASUserDataServiceCreates a new RoleDef object. Returns the created version.- Specified by:
createRoleDefin interfaceIASUserDataService
-
createRoleDefs
Description copied from interface:IASUserDataServiceCreates multiple new RoleDef objects. Returns the created versions.- Specified by:
createRoleDefsin interfaceIASUserDataService
-
updateRoleDef
Description copied from interface:IASUserDataServiceUpdates a RoleDef object. Returns the updated version.- Specified by:
updateRoleDefin interfaceIASUserDataService
-
updateRoleDefs
Description copied from interface:IASUserDataServiceUpdates multiple RoleDef objects. Returns the updated versions.- Specified by:
updateRoleDefsin interfaceIASUserDataService
-
getRoleDefsByProperty
Description copied from interface:IASUserDataServiceReturns all RoleDef objects, where property with given name equals object.- Specified by:
getRoleDefsByPropertyin interfaceIASUserDataService
-
getRoleDefsByProperty
public List<RoleDef> getRoleDefsByProperty(String propertyName, Object value, net.anotheria.util.sorter.SortType sortType) Description copied from interface:IASUserDataServiceReturns all RoleDef objects, where property with given name equals object, sorted.- Specified by:
getRoleDefsByPropertyin interfaceIASUserDataService
-
executeQueryOnRoleDefs
public net.anotheria.anodoc.query2.QueryResult executeQueryOnRoleDefs(net.anotheria.anodoc.query2.DocumentQuery query) Executes a query on RoleDefs- Specified by:
executeQueryOnRoleDefsin interfaceIASUserDataService
-
getRoleDefsByProperty
Returns all RoleDef objects, where property matches.- Specified by:
getRoleDefsByPropertyin interfaceIASUserDataService
-
getRoleDefsByProperty
public List<RoleDef> getRoleDefsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) Returns all RoleDef objects, where property matches, sorted- Specified by:
getRoleDefsByPropertyin interfaceIASUserDataService
-
getRoleDefsCount
public int getRoleDefsCount()Returns RoleDef objects count.- Specified by:
getRoleDefsCountin interfaceIASUserDataService
-
getRoleDefs
Returns RoleDef objects segment.- Specified by:
getRoleDefsin interfaceIASUserDataService
-
getRoleDefsByProperty
public List<RoleDef> getRoleDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... property) Returns RoleDef objects segment, where property matched.- Specified by:
getRoleDefsByPropertyin interfaceIASUserDataService
-
getRoleDefsByProperty
public List<RoleDef> getRoleDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) Returns RoleDef objects segment, where property matched, sorted.- Specified by:
getRoleDefsByPropertyin interfaceIASUserDataService
-
fetchRoleDef
public void fetchRoleDef(String id, Set<String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASUserDataServiceException Description copied from interface:IASUserDataServiceCreate json object list dependencies for this RoleDef document.- Specified by:
fetchRoleDefin interfaceIASUserDataService- Throws:
ASUserDataServiceException
-
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 interfaceIASUserDataService
-
exportUserDefsToXML
public net.anotheria.util.xml.XMLNode exportUserDefsToXML() -
exportUserDefsToXML
Description copied from interface:IASUserDataServiceCreates an xml element with selected contained data.- Specified by:
exportUserDefsToXMLin interfaceIASUserDataService
-
exportRoleDefsToXML
public net.anotheria.util.xml.XMLNode exportRoleDefsToXML() -
exportRoleDefsToXML
Description copied from interface:IASUserDataServiceCreates an xml element with selected contained data.- Specified by:
exportRoleDefsToXMLin interfaceIASUserDataService
-
exportToXML
public net.anotheria.util.xml.XMLNode exportToXML()Description copied from interface:IASUserDataServicecreates an xml element with all contained data.- Specified by:
exportToXMLin interfaceIASUserDataService
-