Class ASActionServiceImpl
- java.lang.Object
-
- net.anotheria.asg.service.AbstractASGService
-
- net.anotheria.anosite.gen.shared.service.BasicService
-
- net.anotheria.anosite.gen.asaction.service.ASActionServiceImpl
-
- All Implemented Interfaces:
net.anotheria.anoprise.metafactory.Service,IASActionService,net.anotheria.asg.service.ASGService
public class ASActionServiceImpl extends BasicService implements IASActionService
-
-
Field Summary
Fields Modifier and Type Field Description static charID_DELIMITERstatic java.lang.StringID_PREFIX_Cstatic java.lang.StringID_PREFIX_G-
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 ActionDefcreateActionDef(ActionDef actiondef)Creates a new ActionDef object.java.util.List<ActionDef>createActionDefs(java.util.List<ActionDef> list)Creates multiple new ActionDef objects.voiddeleteActionDef(java.lang.String id)Deletes a ActionDef object by id.voiddeleteActionDef(ActionDef actiondef)Deletes a ActionDef object.voiddeleteActionDefs(java.util.List<ActionDef> list)Deletes multiple ActionDef objects.voidexecuteParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data)Save transferred document by its own type.net.anotheria.anodoc.query2.QueryResultexecuteQueryOnActionDefs(net.anotheria.anodoc.query2.DocumentQuery query)Executes a query on ActionDefsnet.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.util.xml.XMLNodeexportActionDefsToXML(java.lang.String[] languages, java.util.List<ActionDef> listActionDefs)net.anotheria.util.xml.XMLNodeexportActionDefsToXML(java.util.List<ActionDef> listActionDefs)Creates an xml element with selected contained data.net.anotheria.util.xml.XMLNodeexportToXML()creates an xml element with all contained data.net.anotheria.util.xml.XMLNodeexportToXML(java.lang.String[] languages)voidfetchActionDef(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data)Create json object list dependencies for this ActionDef document.ActionDefgetActionDef(java.lang.String id)Returns the ActionDef object with the specified id.java.util.List<ActionDef>getActionDefs()Returns all ActionDefs objects stored.java.util.List<ActionDef>getActionDefs(net.anotheria.util.slicer.Segment aSegment)Returns ActionDef objects segment.java.util.List<ActionDef>getActionDefs(net.anotheria.util.sorter.SortType sortType)Returns all ActionDefs objects sorted by given sortType.java.util.List<ActionDef>getActionDefsByProperty(java.lang.String propertyName, java.lang.Object value)Returns all ActionDef objects, where property with given name equals object.java.util.List<ActionDef>getActionDefsByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType)Returns all ActionDef objects, where property with given name equals object, sorted.java.util.List<ActionDef>getActionDefsByProperty(net.anotheria.anodoc.query2.QueryProperty... property)Returns all ActionDef objects, where property matches.java.util.List<ActionDef>getActionDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns ActionDef objects segment, where property matched.java.util.List<ActionDef>getActionDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty)Returns ActionDef objects segment, where property matched, sorted.java.util.List<ActionDef>getActionDefsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property)Returns all ActionDef objects, where property matches, sortedintgetActionDefsCount()Returns ActionDef objects count.ActionDefimportActionDef(ActionDef actiondef)Imports a new ActionDef object.java.util.List<ActionDef>importActionDefs(java.util.List<ActionDef> list)Imports multiple new ActionDef object.ActionDefupdateActionDef(ActionDef actiondef)Updates a ActionDef object.java.util.List<ActionDef>updateActionDefs(java.util.List<ActionDef> list)Updates multiple new ActionDef objects.-
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
-
-
-
-
Field Detail
-
ID_DELIMITER
public static final char ID_DELIMITER
- See Also:
- Constant Field Values
-
ID_PREFIX_G
public static final java.lang.String ID_PREFIX_G
- See Also:
- Constant Field Values
-
ID_PREFIX_C
public static final java.lang.String ID_PREFIX_C
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActionDefs
public java.util.List<ActionDef> getActionDefs() throws ASActionServiceException
Description copied from interface:IASActionServiceReturns all ActionDefs objects stored.- Specified by:
getActionDefsin interfaceIASActionService- Throws:
ASActionServiceException
-
getActionDefs
public java.util.List<ActionDef> getActionDefs(net.anotheria.util.sorter.SortType sortType) throws ASActionServiceException
Description copied from interface:IASActionServiceReturns all ActionDefs objects sorted by given sortType.- Specified by:
getActionDefsin interfaceIASActionService- Throws:
ASActionServiceException
-
deleteActionDef
public void deleteActionDef(ActionDef actiondef) throws ASActionServiceException
Description copied from interface:IASActionServiceDeletes a ActionDef object.- Specified by:
deleteActionDefin interfaceIASActionService- Throws:
ASActionServiceException
-
deleteActionDef
public void deleteActionDef(java.lang.String id) throws ASActionServiceExceptionDescription copied from interface:IASActionServiceDeletes a ActionDef object by id.- Specified by:
deleteActionDefin interfaceIASActionService- Throws:
ASActionServiceException
-
deleteActionDefs
public void deleteActionDefs(java.util.List<ActionDef> list) throws ASActionServiceException
Deletes multiple ActionDef objects.- Specified by:
deleteActionDefsin interfaceIASActionService- Throws:
ASActionServiceException
-
getActionDef
public ActionDef getActionDef(java.lang.String id) throws ASActionServiceException
Description copied from interface:IASActionServiceReturns the ActionDef object with the specified id.- Specified by:
getActionDefin interfaceIASActionService- Throws:
ASActionServiceException
-
importActionDef
public ActionDef importActionDef(ActionDef actiondef) throws ASActionServiceException
Description copied from interface:IASActionServiceImports a new ActionDef object. Returns the created version.- Specified by:
importActionDefin interfaceIASActionService- Throws:
ASActionServiceException
-
importActionDefs
public java.util.List<ActionDef> importActionDefs(java.util.List<ActionDef> list) throws ASActionServiceException
Description copied from interface:IASActionServiceImports multiple new ActionDef object. Returns the created versions.- Specified by:
importActionDefsin interfaceIASActionService- Throws:
ASActionServiceException
-
createActionDef
public ActionDef createActionDef(ActionDef actiondef) throws ASActionServiceException
Description copied from interface:IASActionServiceCreates a new ActionDef object. Returns the created version.- Specified by:
createActionDefin interfaceIASActionService- Throws:
ASActionServiceException
-
createActionDefs
public java.util.List<ActionDef> createActionDefs(java.util.List<ActionDef> list) throws ASActionServiceException
Creates multiple new ActionDef objects. Returns the created versions.- Specified by:
createActionDefsin interfaceIASActionService- Throws:
ASActionServiceException
-
updateActionDefs
public java.util.List<ActionDef> updateActionDefs(java.util.List<ActionDef> list) throws ASActionServiceException
Updates multiple new ActionDef objects. Returns the updated versions.- Specified by:
updateActionDefsin interfaceIASActionService- Throws:
ASActionServiceException
-
updateActionDef
public ActionDef updateActionDef(ActionDef actiondef) throws ASActionServiceException
Description copied from interface:IASActionServiceUpdates a ActionDef object. Returns the updated version.- Specified by:
updateActionDefin interfaceIASActionService- Throws:
ASActionServiceException
-
getActionDefsByProperty
public java.util.List<ActionDef> getActionDefsByProperty(java.lang.String propertyName, java.lang.Object value) throws ASActionServiceException
Description copied from interface:IASActionServiceReturns all ActionDef objects, where property with given name equals object.- Specified by:
getActionDefsByPropertyin interfaceIASActionService- Throws:
ASActionServiceException
-
getActionDefsByProperty
public java.util.List<ActionDef> getActionDefsByProperty(java.lang.String propertyName, java.lang.Object value, net.anotheria.util.sorter.SortType sortType) throws ASActionServiceException
Description copied from interface:IASActionServiceReturns all ActionDef objects, where property with given name equals object, sorted.- Specified by:
getActionDefsByPropertyin interfaceIASActionService- Throws:
ASActionServiceException
-
executeQueryOnActionDefs
public net.anotheria.anodoc.query2.QueryResult executeQueryOnActionDefs(net.anotheria.anodoc.query2.DocumentQuery query) throws ASActionServiceExceptionExecutes a query on ActionDefs- Specified by:
executeQueryOnActionDefsin interfaceIASActionService- Throws:
ASActionServiceException
-
getActionDefsByProperty
public java.util.List<ActionDef> getActionDefsByProperty(net.anotheria.anodoc.query2.QueryProperty... property) throws ASActionServiceException
Returns all ActionDef objects, where property matches.- Specified by:
getActionDefsByPropertyin interfaceIASActionService- Throws:
ASActionServiceException
-
getActionDefsByProperty
public java.util.List<ActionDef> getActionDefsByProperty(net.anotheria.util.sorter.SortType sortType, net.anotheria.anodoc.query2.QueryProperty... property) throws ASActionServiceException
Returns all ActionDef objects, where property matches, sorted- Specified by:
getActionDefsByPropertyin interfaceIASActionService- Throws:
ASActionServiceException
-
getActionDefsCount
public int getActionDefsCount() throws ASActionServiceExceptionReturns ActionDef objects count.- Specified by:
getActionDefsCountin interfaceIASActionService- Throws:
ASActionServiceException
-
getActionDefs
public java.util.List<ActionDef> getActionDefs(net.anotheria.util.slicer.Segment aSegment) throws ASActionServiceException
Returns ActionDef objects segment.- Specified by:
getActionDefsin interfaceIASActionService- Throws:
ASActionServiceException
-
getActionDefsByProperty
public java.util.List<ActionDef> getActionDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.anodoc.query2.QueryProperty... aProperty) throws ASActionServiceException
Returns ActionDef objects segment, where property matched.- Specified by:
getActionDefsByPropertyin interfaceIASActionService- Throws:
ASActionServiceException
-
getActionDefsByProperty
public java.util.List<ActionDef> getActionDefsByProperty(net.anotheria.util.slicer.Segment aSegment, net.anotheria.util.sorter.SortType aSortType, net.anotheria.anodoc.query2.QueryProperty... aProperty) throws ASActionServiceException
Returns ActionDef objects segment, where property matched, sorted.- Specified by:
getActionDefsByPropertyin interfaceIASActionService- Throws:
ASActionServiceException
-
exportActionDefsToXML
public net.anotheria.util.xml.XMLNode exportActionDefsToXML(java.util.List<ActionDef> listActionDefs)
Description copied from interface:IASActionServiceCreates an xml element with selected contained data.- Specified by:
exportActionDefsToXMLin interfaceIASActionService
-
exportActionDefsToXML
public net.anotheria.util.xml.XMLNode exportActionDefsToXML(java.lang.String[] languages, java.util.List<ActionDef> listActionDefs) throws ASActionServiceException- Throws:
ASActionServiceException
-
fetchActionDef
public void fetchActionDef(java.lang.String id, java.util.Set<java.lang.String> addedDocuments, org.codehaus.jettison.json.JSONArray data) throws ASActionServiceExceptionDescription copied from interface:IASActionServiceCreate json object list dependencies for this ActionDef document.- Specified by:
fetchActionDefin interfaceIASActionService- Throws:
ASActionServiceException
-
executeParsingForDocument
public void executeParsingForDocument(DocumentName documentName, org.codehaus.jettison.json.JSONObject data) throws ASActionServiceException
Description copied from interface:IASActionServiceSave transferred document by its own type.- Specified by:
executeParsingForDocumentin interfaceIASActionService- Throws:
ASActionServiceException
-
executeQueryOnAllObjects
public net.anotheria.anodoc.query2.QueryResult executeQueryOnAllObjects(net.anotheria.anodoc.query2.DocumentQuery query) throws ASActionServiceExceptionExecutes a query on all data objects (documents, vo) which are part of this module and managed by this service- Specified by:
executeQueryOnAllObjectsin interfaceIASActionService- Throws:
ASActionServiceException
-
exportToXML
public net.anotheria.util.xml.XMLNode exportToXML() throws ASActionServiceExceptionDescription copied from interface:IASActionServicecreates an xml element with all contained data.- Specified by:
exportToXMLin interfaceIASActionService- Throws:
ASActionServiceException
-
exportToXML
public net.anotheria.util.xml.XMLNode exportToXML(java.lang.String[] languages) throws ASActionServiceException- Throws:
ASActionServiceException
-
-