Package org.apache.ofbiz.common
Class CommonServices
- java.lang.Object
-
- org.apache.ofbiz.common.CommonServices
-
public class CommonServices extends java.lang.Object
Common Services
-
-
Constructor Summary
Constructors Constructor Description CommonServices()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>
adjustDebugLevels(DispatchContext dctc, java.util.Map<java.lang.String,?> context)
Service for setting debugging levels.static java.util.Map<java.lang.String,java.lang.Object>
blockingTestService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
byteBufferTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
conditionFalseService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Return FALSE Service; ECA Condition Servicestatic java.util.Map<java.lang.String,java.lang.Object>
conditionTrueService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Return TRUE Service; ECA Condition Servicestatic java.util.Map<java.lang.String,java.lang.Object>
createNote(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Create Note Recordstatic java.util.Map<java.lang.String,java.lang.Object>
displayXaDebugInfo(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
echoService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Echo service; returns exactly what was sent.static java.util.Map<java.lang.String,java.lang.Object>
entityFailTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Cause a Referential Integrity Errorstatic java.util.Map<java.lang.String,java.lang.Object>
entitySortTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Test entity sortingstatic java.util.Map<java.lang.String,java.lang.Object>
forceGc(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
getAllMetrics(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
makeALotOfVisits(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
mcaTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
ping(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
resetMetric(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
returnErrorService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Return Error Service; Used for testing error handlingstatic java.util.Map<java.lang.String,java.lang.Object>
simpleMapListTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
streamTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
testCommitListener(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
testRollbackListener(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
static java.util.Map<java.lang.String,java.lang.Object>
testService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Generic Test Servicestatic java.util.Map<java.lang.String,java.lang.Object>
testSOAPService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Generic Test SOAP Servicestatic java.util.Map<java.lang.String,java.lang.Object>
uploadTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
resource
public static final java.lang.String resource
- See Also:
- Constant Field Values
-
-
Method Detail
-
testService
public static java.util.Map<java.lang.String,java.lang.Object> testService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Generic Test Service- Parameters:
dctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
testSOAPService
public static java.util.Map<java.lang.String,java.lang.Object> testSOAPService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Generic Test SOAP Service- Parameters:
dctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
blockingTestService
public static java.util.Map<java.lang.String,java.lang.Object> blockingTestService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
testRollbackListener
public static java.util.Map<java.lang.String,java.lang.Object> testRollbackListener(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
testCommitListener
public static java.util.Map<java.lang.String,java.lang.Object> testCommitListener(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
createNote
public static java.util.Map<java.lang.String,java.lang.Object> createNote(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Create Note Record- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
adjustDebugLevels
public static java.util.Map<java.lang.String,java.lang.Object> adjustDebugLevels(DispatchContext dctc, java.util.Map<java.lang.String,?> context)
Service for setting debugging levels.- Parameters:
dctc
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
forceGc
public static java.util.Map<java.lang.String,java.lang.Object> forceGc(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
echoService
public static java.util.Map<java.lang.String,java.lang.Object> echoService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Echo service; returns exactly what was sent. This service does not have required parameters and does not validate
-
returnErrorService
public static java.util.Map<java.lang.String,java.lang.Object> returnErrorService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Return Error Service; Used for testing error handling
-
conditionTrueService
public static java.util.Map<java.lang.String,java.lang.Object> conditionTrueService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Return TRUE Service; ECA Condition Service
-
conditionFalseService
public static java.util.Map<java.lang.String,java.lang.Object> conditionFalseService(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Return FALSE Service; ECA Condition Service
-
entityFailTest
public static java.util.Map<java.lang.String,java.lang.Object> entityFailTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Cause a Referential Integrity Error
-
entitySortTest
public static java.util.Map<java.lang.String,java.lang.Object> entitySortTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
Test entity sorting
-
makeALotOfVisits
public static java.util.Map<java.lang.String,java.lang.Object> makeALotOfVisits(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
displayXaDebugInfo
public static java.util.Map<java.lang.String,java.lang.Object> displayXaDebugInfo(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
byteBufferTest
public static java.util.Map<java.lang.String,java.lang.Object> byteBufferTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
uploadTest
public static java.util.Map<java.lang.String,java.lang.Object> uploadTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
simpleMapListTest
public static java.util.Map<java.lang.String,java.lang.Object> simpleMapListTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
mcaTest
public static java.util.Map<java.lang.String,java.lang.Object> mcaTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
streamTest
public static java.util.Map<java.lang.String,java.lang.Object> streamTest(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
ping
public static java.util.Map<java.lang.String,java.lang.Object> ping(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
getAllMetrics
public static java.util.Map<java.lang.String,java.lang.Object> getAllMetrics(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
resetMetric
public static java.util.Map<java.lang.String,java.lang.Object> resetMetric(DispatchContext dctx, java.util.Map<java.lang.String,?> context)
-
-