Package xregistry.generated.GetCapabilityDocument

Examples of xregistry.generated.GetCapabilityDocument.GetCapability


    }

    public GetCapabilityResponseDocument getCapability(GetCapabilityDocument input)
            throws XregistryException {
        log.info("Request Received " + input.xmlText());
        GetCapability capabilityData = input.getGetCapability();
        CapabilityToken[] capabilities = registryImpl.getCapability(findUserDN(), capabilityData
                .getResourceID(), capabilityData.getUser(), capabilityData.getActorType(),
                capabilityData.getAction());

        GetCapabilityResponseDocument responseDocument = GetCapabilityResponseDocument.Factory
                .newInstance();
        GetCapabilityResponse capabilityResponse = responseDocument.addNewGetCapabilityResponse();
        if (capabilities != null) {
View Full Code Here


       * @throws XRegistryClientException
       */
     
      public CapabilityToken[] findCapability(String resourceID, String actor, boolean actorType, String action) throws XRegistryClientException {
          GetCapabilityDocument document = GetCapabilityDocument.Factory.newInstance();
          GetCapability getCapability = document.addNewGetCapability();
          if(resourceID != null || actor != null){
              getCapability.setUser(actor);
              getCapability.setResourceID(resourceID);
              getCapability.setActorType(actorType);
              getCapability.setAction(action);
              GetCapabilityResponseDocument capabilityResponse = xregistryStub.getCapability(document);
              return capabilityResponse.getGetCapabilityResponse().getTokenArray();
          }else{
              throw new XRegistryClientException("one of the resourceID or actor must present");
          }
View Full Code Here

     * @throws XregistryException
     */
   
    public CapabilityToken[] findCapability(String resourceID, String actor, boolean actorType, String action) throws XregistryException {
        GetCapabilityDocument document = GetCapabilityDocument.Factory.newInstance();
        GetCapability getCapability = document.addNewGetCapability();
        if(resourceID != null || actor != null){
            getCapability.setUser(actor);
            getCapability.setResourceID(resourceID);
            getCapability.setActorType(actorType);
            getCapability.setAction(action);
            GetCapabilityResponseDocument capabilityResponse = proxy.getCapability(document);
            return capabilityResponse.getGetCapabilityResponse().getTokenArray();
        }else{
            throw new XregistryException("one of the resourceID or actor must present");
        }
View Full Code Here

TOP

Related Classes of xregistry.generated.GetCapabilityDocument.GetCapability

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.