Package xregistry.generated.AddOGCEResourceDocument

Examples of xregistry.generated.AddOGCEResourceDocument.AddOGCEResource


        String resourceDesc, String resourceDocument,
        String resourceParentTypedID, String owner)
        throws XRegistryClientException {
      AddOGCEResourceDocument input = AddOGCEResourceDocument.Factory
          .newInstance();
      AddOGCEResource resource = input.addNewAddOGCEResource();
      resource.setResourceID(resourceID);
      resource.setResourceName(resourceName);
      resource.setResourceType(resourceType);
      resource.setResourceDesc(resourceDesc);
      resource.setResourceDocument(resourceDocument);
      if (owner != null && owner != "") {
        resource.setOwner(owner);
      }
      resource.setParentTypedID(resourceParentTypedID);
      xregistryStub.addOGCEResource(input);
    }
View Full Code Here


      String resourceDesc, String resourceDocument,
      String resourceParentTypedID, String owner)
      throws XregistryException {
    AddOGCEResourceDocument input = AddOGCEResourceDocument.Factory
        .newInstance();
    AddOGCEResource resource = input.addNewAddOGCEResource();
    resource.setResourceType(resourceType);
    resource.setResourceDesc(resourceDesc);
    resource.setResourceDocument(resourceDocument);
    resource.setResourceID(resourceID);
    resource.setResourceName(resourceName);
    if (owner != null && owner != "") {
      resource.setOwner(owner);
    }
    resource.setParentTypedID(resourceParentTypedID);
    proxy.addOGCEResource(input);
  }
View Full Code Here

    public XregistryImpl getRegistryImpl() {
        return registryImpl;
    }
    public AddOGCEResourceResponseDocument addOGCEResource(AddOGCEResourceDocument input) throws XregistryException {
        log.info("Request Received " + input.xmlText());
        AddOGCEResource resource = input.getAddOGCEResource();
        String userDN = null;
        if(resource.getOwner() != null && resource.getOwner() != ""){
          userDN = resource.getOwner();
        }else{
          userDN = findUserDN();
        }
        String parentTypedID = resource.getParentTypedID();
        if(parentTypedID == null || parentTypedID.trim() == "" )
        {
          parentTypedID = XregistryConstants.DEFAULTPARENT;
        }
        registryImpl.registerOGCEResource(userDN, resource.getResourceID(),resource.getResourceName(),  resource.getResourceType(),resource.getResourceDesc(), resource.getResourceDocument(), parentTypedID);
        AddOGCEResourceResponseDocument responseDocument = AddOGCEResourceResponseDocument.Factory.newInstance();
        responseDocument.addNewAddOGCEResourceResponse();
        log.info("Response " + responseDocument.xmlText());
        return responseDocument;
    }
View Full Code Here

TOP

Related Classes of xregistry.generated.AddOGCEResourceDocument.AddOGCEResource

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.