Examples of XMLDispatcherUserException


Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherUserException

    throws XMLDispatcherUserException, XMLDispatcherAppException
  {
    SessionData sess = (SessionData)xdCtx.getSession();
    if (sess == null)
    {
      throw new XMLDispatcherUserException("not logged on");
    }
    else
    {
      if (!sess.getUserId().equals("TOTO"))
      {
        throw new XMLDispatcherUserException("wrong userId in session");
      }
      else
      {
        // ok
      }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherUserException

public class ServerInfo
{
  protected static void _exceptionWithAccent() throws XMLDispatcherUserException, XMLDispatcherAppException
  {
    throw new XMLDispatcherUserException("h°llo");
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherUserException

    objRef.setObjId(rqst.getUserId());
    objRef.setObjClass(SObjRef.class.getName());
    SUser user = bc.query(xdCtx, objRef);
    if (user == null) {
      if (logcat.isDebugEnabled()) logcat.debug("Bad user ID given : " + rqst.getUserId());
      throw new XMLDispatcherUserException("User with ID " + rqst.getUserId() + " does not exist in the database");     
     
    }
   
    /* Assign the primary key*/  
    IJobDAO dao = JobDAOFactory.getJobDAOInstance();
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherUserException

    if (instrument == null) {
      /*
       * instrument does not exist in the database...
       */
      if (logcat.isDebugEnabled()) logcat.debug("Bad instrument ID given : " + rqst.getInstrument().getObjId());
      throw new XMLDispatcherUserException("Instrument with ID " + rqst.getInstrument().getObjId() + " does not exist in the database");     
    }
    else {
      setInstrumentId(rqst.getInstrument().getObjId())
    }
   
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherUserException

  {
    if (rqst == null)
    {
      if (!canBeNull)
      {
        throw new XMLDispatcherUserException("Missing rqst","XDE_VAL_RQST_MISSING");
      }
    }
    else
    {
      if (mustBeValidated)
      {
        ErrorBag eb = new ErrorBag();
        if (!rqst.xsValidate(eb,"rqst"))
        {
          throw new XMLDispatcherUserException(eb.toString(),"XDE_VAL_RQST_INV");
        }
      }
    }
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherUserException

          sessionDataObject.expire.month, sessionDataObject.expire.day,
          sessionDataObject.expire.hours, sessionDataObject.expire.mins,
          sessionDataObject.expire.secs);
      if (gcal.before(new GregorianCalendar()))
      {
        throw new XMLDispatcherUserException("Session expired", "XDE_SES_EXPIRED");
      }
      return sessionDataObject.session;
    }
    else
    {
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherUserException

      }
    }
    if(fallBackMethod != null) {
      return fallBackMethod;
    }
    throw new XMLDispatcherUserException("Method " + methodName + " not found in class " + o.getClass().getName(),"XDE_DSP_NOT_A_METHOD");
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherUserException

  private static void checkRqstParameterType(Object rqst, Class type)
    throws XMLDispatcherUserException
  {
    if (rqst != null && !type.isInstance(rqst))
    {
      throw new XMLDispatcherUserException("Unexpected rqst type (got " +
                                           rqst.getClass() + ", expecting " + type + ")",
                                           "XDE_VAL_RQST_INV_TYPE");
    }
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherUserException

      if (publicMethods[i].equals(methodName))
      {
        return;
      }
    }
    throw new XMLDispatcherUserException("Method " + methodName + " is not a public " + categoryDescr + " of class " + className,"XDE_DSP_NOT_A_METHOD");
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.interfaces.XMLDispatcherUserException

                                         pUserRoleChecker,
                                         className,
                                         methodName,
                                         stateName))
      {
        throw new XMLDispatcherUserException("Access denied by XMLDispatcher role-based security","XDE_RBS_ACCESS_DENIED");
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.