Package com.odb.core.dao.dto

Examples of com.odb.core.dao.dto.SubscriberInfo


   */
  public String loginAction(HttpServletRequest request, HttpServletResponse response) {

    String username = request.getParameter("username");
    String password = request.getParameter("password");
    SubscriberInfo subscriberInfo;
    try {
      subscriberInfo = odbCore.subscriberLogin(username, Utilities.encrypt(password));
      request.getSession().setAttribute("subscriberInfo", subscriberInfo);
    } catch (InvalidAuthenticationException e) {
      log.error("", e);
View Full Code Here


    return dsConfig;
  }

  public ArrayList<DataSourceConfiguration> getCurrentSubscriptions() {
    ArrayList<DataSourceConfiguration> dsConfigList = null;
    SubscriberInfo subscriberInfo = (SubscriberInfo) getThreadLocalRequest().getSession().getAttribute("subscriberInfo");
    String subscriberID = Utilities.getClientSubscriberInfo(subscriberInfo).getSubscriberID();
    try {
      ArrayList<DataSourceInfo> subDS = odbCore.getAllDataSourceBySubscriber(subscriberID);
      dsConfigList = new ArrayList<DataSourceConfiguration>(subDS.size());
      for (DataSourceInfo ds : subDS) {
View Full Code Here

    }
    return dataSourceList;
  }

  public void addSubscription(String dsID, String graphID) {
    SubscriberInfo subscriberInfo = (SubscriberInfo) getThreadLocalRequest().getSession().getAttribute("subscriberInfo");
    odbCore.addSubscription(subscriberInfo.getSubscriberID(), dsID, graphID, subscriberInfo.getSubscriberID() + "_"+dsID);
  }
View Full Code Here

   * @see org.springframework.jdbc.core.ResultSetExtractor#extractData(java.sql.ResultSet)
   */
  public SubscriberInfo extractData(ResultSet rs) throws SQLException,
      DataAccessException {
   
    SubscriberInfo subInfo = null;
    if(rs.next()){
      subInfo = new SubscriberInfo();
      subInfo.setSubscriberID(rs.getString("SUBSCRIBER_ID"));
      subInfo.setSubscriberName(rs.getString("SUBSCRIBER_NAME"));
      subInfo.setSubscriberPassword(rs.getString("SUBSCRIBER_PASSWORD"));
    }
    return subInfo;
  }
View Full Code Here

   * @param password
   *            the password
   * @return the subscriber info
   */
  public SubscriberInfo subscriberLogin(String username, String password) throws InvalidAuthenticationException {
    SubscriberInfo subInfo = null;
    try {
      subInfo = odbDAO.subscriberLogin(username, password);
      if (subInfo == null)
        throw new InvalidAuthenticationException("Invalid Credentials");
    } catch (SQLException e) {
View Full Code Here

TOP

Related Classes of com.odb.core.dao.dto.SubscriberInfo

Copyright © 2018 www.massapicom. 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.