Examples of PublisherInfo


Examples of com.odb.collector.PublisherInfo

    if (ps.getPublisherID() == null) {
      System.out.println("Publisher ID does not exist in configuration... requesting publisherID from server");
      return false;
    }

    PublisherInfo pInfo;
    pInfo = inqWS.getPublisherInfo(ps.getPublisherID());
    if (pInfo != null) {
      log.info("Publisher already registered with server with publisherID=" + pInfo.getPublisherID());
      return true;
    }
    return false;
  }
View Full Code Here

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

    }
    return null;
  }

  public PublisherInfo getPublisherInfo(String publisherID) throws RemoteException {
    PublisherInfo pInfo = null;
    try {
      pInfo = odbCore.getPublisher(publisherID);
    } catch (SQLException e) {
      log.error("error while getPublisherInfo for publisherID: " + publisherID, e);
    }
View Full Code Here

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

  /* (non-Javadoc)
   * @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
   */
  public PublisherInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
    PublisherInfo pInfo = new PublisherInfo();
    pInfo.setPublisherID(rs.getString("PUBLISHER_ID"));
    pInfo.setPublisherName(rs.getString("PUBLISHER_NAME"));
    return pInfo;
  }
View Full Code Here

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


public class PublisherInfoResultSetExtractor implements ResultSetExtractor<PublisherInfo> {

  public PublisherInfo extractData(ResultSet rs) throws SQLException, DataAccessException {
    PublisherInfo pInfo = new PublisherInfo();
    pInfo.setPublisherID(rs.getString("PUBLISHER_ID"));
    pInfo.setPublisherName(rs.getString("PUBLISHER_NAME"));
    return pInfo;
  }
View Full Code Here

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

   * @return the string publisher Id
   * @throws SQLException
   *             the sQL exception
   */
  public String registerPublisher(String pubName) throws SQLException {
    PublisherInfo pInfo = new PublisherInfo();
    String pubID = pubName + "_" + System.currentTimeMillis();
    pInfo.setPublisherID(pubID);
    pInfo.setPublisherName(pubName);
    odbDAO.addPublisher(pInfo);
    return pubID;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.response.PublisherInfo

    PublisherList list = new PublisherList();
    list.setGeneric("1.0");
    list.setOperator("jUDDI.org");
    list.setTruncated(false);
    list.addPublisherInfo(new PublisherInfo("sviens","Steve Viens"));
    list.addPublisherInfo(new PublisherInfo("jdoe","John Doe"));

    System.out.println();

    RegistryObject regObject = list;
    handler.marshal(regObject,parent);
View Full Code Here

Examples of org.apache.juddi.datatype.response.PublisherInfo

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    PublisherInfo obj = new PublisherInfo();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // Attributes
    obj.setPublisherID(element.getAttribute("publisherID"));

    // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,NameHandler.TAG_NAME);
    if (nodeList.size() > 0)
    {
      handler = maker.lookup(NameHandler.TAG_NAME);
      Name name = (Name )handler.unmarshal((Element)nodeList.elementAt(0));
      if (name != null)
        obj.setName(name);   
    }

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.response.PublisherInfo

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    PublisherInfo info = (PublisherInfo)object;
    String generic = getGeneric(null);
    String namespace = getUDDINamespace(generic);
    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
    AbstractHandler handler = null;

    String publisherID = info.getPublisherID();
    if (publisherID != null)
      element.setAttribute("publisherID",publisherID);

    Name name = info.getName();
    if (name != null)
    {
      handler = maker.lookup(NameHandler.TAG_NAME);
      handler.marshal(name,element);
    }
View Full Code Here

Examples of org.apache.juddi.datatype.response.PublisherInfo

   *
   */
  public PublisherInfo fetchPublisherInfo(String publisherID)
    throws org.apache.juddi.error.RegistryException
  {
    PublisherInfo info = null;

    if ((publisherID != null) && (connection != null))
    {
      try
      {
        Publisher publisher = PublisherTable.select(publisherID,connection);
        info = new PublisherInfo();
        info.setPublisherID(publisherID);
        info.setNameValue(publisher.getName());
      }
      catch(java.sql.SQLException sqlex)
      {
        throw new RegistryException(sqlex);
      }
View Full Code Here

Examples of org.apache.juddi.datatype.response.PublisherInfo

   *
   */
  public PublisherInfo fetchPublisherInfo(String publisherID)
    throws org.apache.juddi.error.RegistryException
  {
    PublisherInfo info = null;

    if ((publisherID != null) && (connection != null))
    {
      try
      {
        Publisher publisher = PublisherTable.select(publisherID,connection);
        info = new PublisherInfo();
        info.setPublisherID(publisherID);
        info.setNameValue(publisher.getName());
      }
      catch(java.sql.SQLException sqlex)
      {
        throw new RegistryException(sqlex);
      }
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.