IDEMPIERE-3534 Webservice error - Cannot Access
This commit is contained in:
parent
f5b85983cd
commit
5dbdbc93aa
|
@ -61,7 +61,7 @@ public final class MRole extends X_AD_Role
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 3608297024439006903L;
|
private static final long serialVersionUID = 8952907008982481439L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Default (Client) Role
|
* Get Default (Client) Role
|
||||||
|
@ -1488,7 +1488,7 @@ public final class MRole extends X_AD_Role
|
||||||
* @param AD_Window_ID window
|
* @param AD_Window_ID window
|
||||||
* @return null in no access, TRUE if r/w and FALSE if r/o
|
* @return null in no access, TRUE if r/w and FALSE if r/o
|
||||||
*/
|
*/
|
||||||
public Boolean getWindowAccess (int AD_Window_ID)
|
public synchronized Boolean getWindowAccess (int AD_Window_ID)
|
||||||
{
|
{
|
||||||
if (m_windowAccess == null)
|
if (m_windowAccess == null)
|
||||||
{
|
{
|
||||||
|
@ -1575,7 +1575,7 @@ public final class MRole extends X_AD_Role
|
||||||
* @param AD_Process_ID process
|
* @param AD_Process_ID process
|
||||||
* @return null in no access, TRUE if r/w and FALSE if r/o
|
* @return null in no access, TRUE if r/w and FALSE if r/o
|
||||||
*/
|
*/
|
||||||
public Boolean getProcessAccess (int AD_Process_ID)
|
public synchronized Boolean getProcessAccess (int AD_Process_ID)
|
||||||
{
|
{
|
||||||
if (m_processAccess == null)
|
if (m_processAccess == null)
|
||||||
{
|
{
|
||||||
|
@ -1657,7 +1657,7 @@ public final class MRole extends X_AD_Role
|
||||||
* @param AD_Task_ID task
|
* @param AD_Task_ID task
|
||||||
* @return null in no access, TRUE if r/w and FALSE if r/o
|
* @return null in no access, TRUE if r/w and FALSE if r/o
|
||||||
*/
|
*/
|
||||||
public Boolean getTaskAccess (int AD_Task_ID)
|
public synchronized Boolean getTaskAccess (int AD_Task_ID)
|
||||||
{
|
{
|
||||||
if (m_taskAccess == null)
|
if (m_taskAccess == null)
|
||||||
{
|
{
|
||||||
|
@ -1737,7 +1737,7 @@ public final class MRole extends X_AD_Role
|
||||||
* @param AD_Form_ID form
|
* @param AD_Form_ID form
|
||||||
* @return null in no access, TRUE if r/w and FALSE if r/o
|
* @return null in no access, TRUE if r/w and FALSE if r/o
|
||||||
*/
|
*/
|
||||||
public Boolean getFormAccess (int AD_Form_ID)
|
public synchronized Boolean getFormAccess (int AD_Form_ID)
|
||||||
{
|
{
|
||||||
if (m_formAccess == null)
|
if (m_formAccess == null)
|
||||||
{
|
{
|
||||||
|
@ -1817,7 +1817,7 @@ public final class MRole extends X_AD_Role
|
||||||
* @param AD_Workflow_ID workflow
|
* @param AD_Workflow_ID workflow
|
||||||
* @return null in no access, TRUE if r/w and FALSE if r/o
|
* @return null in no access, TRUE if r/w and FALSE if r/o
|
||||||
*/
|
*/
|
||||||
public Boolean getWorkflowAccess (int AD_Workflow_ID)
|
public synchronized Boolean getWorkflowAccess (int AD_Workflow_ID)
|
||||||
{
|
{
|
||||||
if (m_workflowAccess == null)
|
if (m_workflowAccess == null)
|
||||||
{
|
{
|
||||||
|
@ -3086,7 +3086,7 @@ public final class MRole extends X_AD_Role
|
||||||
return whereClause.toString();
|
return whereClause.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getInfoAccess(int AD_InfoWindow_ID) {
|
public synchronized Boolean getInfoAccess(int AD_InfoWindow_ID) {
|
||||||
if (m_infoAccess == null)
|
if (m_infoAccess == null)
|
||||||
{
|
{
|
||||||
m_infoAccess = new HashMap<Integer,Boolean>(20);
|
m_infoAccess = new HashMap<Integer,Boolean>(20);
|
||||||
|
|
|
@ -424,6 +424,8 @@ public class ModelADServiceImpl extends AbstractService implements ModelADServic
|
||||||
reqprocess.setADRecordID(modelRunProcess.getADRecordID());
|
reqprocess.setADRecordID(modelRunProcess.getADRecordID());
|
||||||
reqprocess.setDocAction(modelRunProcess.getDocAction());
|
reqprocess.setDocAction(modelRunProcess.getDocAction());
|
||||||
RunProcessResponseDocument response = Process.runProcess(getCompiereService(), docprocess, getRequestCtx(), localTrxName);
|
RunProcessResponseDocument response = Process.runProcess(getCompiereService(), docprocess, getRequestCtx(), localTrxName);
|
||||||
|
if (response != null && response.getRunProcessResponse() != null && response.getRunProcessResponse().getIsError())
|
||||||
|
log.warning("Error running webservice " + serviceType + " -> " + response.getRunProcessResponse().getError());
|
||||||
Map<String, Object> requestCtx = getRequestCtx();
|
Map<String, Object> requestCtx = getRequestCtx();
|
||||||
requestCtx.put(serviceType+"_Summary", response.getRunProcessResponse().getSummary());
|
requestCtx.put(serviceType+"_Summary", response.getRunProcessResponse().getSummary());
|
||||||
return response;
|
return response;
|
||||||
|
|
Loading…
Reference in New Issue