Package org.brerp.base.util
Class IdempiereRestAPIClient
java.lang.Object
org.brerp.base.util.IdempiereRestAPIClient
- Direct Known Subclasses:
BilhetagemClient
-
Constructor Summary
ConstructorDescriptionIdempiereRestAPIClient
(String url, String userName, String password) IdempiereRestAPIClient
(String url, String userName, String password, Integer timeout) IdempiereRestAPIClient
(String url, String userName, String password, Integer clientId, Integer roleId, Integer organizationId, Integer warehouseId, String language) IdempiereRestAPIClient
(String url, String userName, String password, Integer clientId, Integer roleId, Integer organizationId, Integer warehouseId, String language, Integer timeout) -
Method Summary
Modifier and TypeMethodDescriptiongetOrgs
(int adClientId, int adRoleId) getRoles
(int adClientId) getWarehouses
(int adClientId, int adRoleId, int adOrgId) void
initSession
(int adClientId, int adRoleId, Integer adOrgId, Integer mWarehouseId, String language) login()
void
void
runProcess
(String processName, Map<String, Object> processBody)
-
Constructor Details
-
IdempiereRestAPIClient
-
IdempiereRestAPIClient
-
IdempiereRestAPIClient
-
IdempiereRestAPIClient
-
-
Method Details
-
login
- Throws:
IOException
-
getRoles
- Throws:
IOException
-
getOrgs
- Throws:
IOException
-
getWarehouses
public WarehousesResponse getWarehouses(int adClientId, int adRoleId, int adOrgId) throws IOException - Throws:
IOException
-
initSession
public void initSession(int adClientId, int adRoleId, Integer adOrgId, Integer mWarehouseId, String language) throws IOException - Throws:
IOException
-
oneStepLogin
- Throws:
IOException
-
refreshToken
- Throws:
IOException
-
runProcess
public ResponseProcessesModel runProcess(String processName, Map<String, Object> processBody) throws IOException- Throws:
IOException
-