Package org.apache.juddi.datatype.publisher

Examples of org.apache.juddi.datatype.publisher.Publisher


    if ((publisherID == null) || (publisherID.length() == 0))
      throw new UnknownUserException("publisherID = "+publisherID);

    try
    {
      Publisher publisher = PublisherTable.select(publisherID,connection);
      if (publisher == null)
        throw new UnknownUserException("publisherID = "+publisherID);
      else
        return publisher.isAdmin();
    }
    catch(java.sql.SQLException sqlex)
    {
      log.error(sqlex.getMessage());
      throw new RegistryException(sqlex);
View Full Code Here


    if ((publisherID == null) || (publisherID.length() == 0))
      throw new UnknownUserException("publisherID = "+publisherID);

    try
    {
      Publisher publisher = PublisherTable.select(publisherID,connection);
      if (publisher == null)
        throw new UnknownUserException("publisherID = "+publisherID);
      else
        return publisher.isEnabled();
    }
    catch(java.sql.SQLException sqlex)
    {
      log.error(sqlex.getMessage());
      throw new RegistryException(sqlex);
View Full Code Here

   *
   */
  public Publisher getAuthTokenPublisher(String token)
    throws org.apache.juddi.error.RegistryException
  {
    Publisher publisher = null;

    if (token != null)
    {
      try {
        publisher = AuthTokenTable.selectPublisher(token,connection);
View Full Code Here

    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

    Element child = null;

    AuthInfo authInfo = new AuthInfo();
    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    Publisher publisher = new Publisher();
    publisher.setPublisherID("bcrosby");
    publisher.setName("Bing Crosby");
    publisher.setLastName("Crosby");
    publisher.setFirstName("Bing");
    publisher.setWorkPhone("978.123-4567");
    publisher.setMobilePhone("617-765-9876");
    publisher.setPager("800-123-4655 ID: 501");
    publisher.setEmailAddress("bcrosby@juddi.org");
    publisher.setAdmin(true);

    SavePublisher request = new SavePublisher();
    request.setAuthInfo(authInfo);
    request.addPublisher(publisher);
    request.addPublisher(publisher);
View Full Code Here

    handler = ( PublisherDetailHandler)maker.lookup( PublisherDetailHandler.TAG_NAME);
  }

  private RegistryObject getRegistryObject()
  {
    Publisher publisher = new Publisher();
    publisher.setPublisherID("bcrosby");
    publisher.setName("Bing Crosby");
    publisher.setLastName("Crosby");
    publisher.setFirstName("Bing");
    publisher.setWorkPhone("978.123-4567");
    publisher.setMobilePhone("617-765-9876");
    publisher.setPager("800-123-4655 ID: 501");
    publisher.setEmailAddress("bcrosby@juddi.org");
    publisher.setAdmin(true);

    PublisherDetail object = new PublisherDetail();
    object.setGeneric("1.0");
    object.setOperator("jUDDI.org");
    object.setTruncated(false);
View Full Code Here

      // execute a GetAuthToken request
      AuthToken token = proxy.getAuthToken("juddi", "password");
      AuthInfo authInfo = token.getAuthInfo();

      // create a publisher
      Publisher publisher = new Publisher(name, identifier);

      // put the Publisher object into a Vector
      Vector vector = new Vector(1);
      vector.add(publisher);
View Full Code Here

    handler = ( PublisherHandler)maker.lookup( PublisherHandler.TAG_NAME);
  }

  private RegistryObject getRegistryObject()
  {
    Publisher object = new Publisher();
    object.setPublisherID("bcrosby");
    object.setName("Bing Crosby");
    object.setLastName("Crosby");
    object.setFirstName("Bing");
    object.setWorkPhone("978.123-4567");
    object.setMobilePhone("617-765-9876");
    object.setPager("800-123-4655 ID: 501");
    object.setEmailAddress("bcrosby@juddi.org");
    object.setAdmin(true);
    object.setEnabled(true);

    return object;

  }
View Full Code Here

  {

    AuthInfo authInfo = new AuthInfo();
    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    Publisher publisher = new Publisher();
    publisher.setPublisherID("bcrosby");
    publisher.setName("Bing Crosby");
    publisher.setLastName("Crosby");
    publisher.setFirstName("Bing");
    publisher.setWorkPhone("978.123-4567");
    publisher.setMobilePhone("617-765-9876");
    publisher.setPager("800-123-4655 ID: 501");
    publisher.setEmailAddress("bcrosby@juddi.org");
    publisher.setAdmin(true);

    SavePublisher object = new SavePublisher();
    object.setAuthInfo(authInfo);
    object.addPublisher(publisher);
    object.addPublisher(publisher);
View Full Code Here

      // execute a GetAuthToken request
      AuthToken token = registry.getAuthToken(userID,password);
      AuthInfo authInfo = token.getAuthInfo();

      // create a publisher with administrative privileges
      Publisher publisher = new Publisher("BlueNoteIdentifier", "Blue Note", true);
      publisher.setEnabled(true);
      // create a publisher to remove
      Publisher perisher = new Publisher("removeMe", "Remove Me", false);
      // put the Publisher objects into a Vector
      Vector vector = new Vector(2);
      vector.add(publisher);
      vector.add(perisher);
View Full Code Here

TOP

Related Classes of org.apache.juddi.datatype.publisher.Publisher

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.