예제 #1
0
  public RuleServiceFileUploadAdminClient(String backEndUrl, String userName, String password)
      throws AxisFault {

    String endPoint = backEndUrl + serviceName;
    ruleServiceFileUploadAdminStub = new RuleServiceFileUploadAdminStub(endPoint);
    AuthenticateStub.authenticateStub(userName, password, ruleServiceFileUploadAdminStub);
  }
예제 #2
0
  public RuleServiceFileUploadAdminClient(String backEndUrl, String sessionCookie)
      throws AxisFault {

    String endPoint = backEndUrl + serviceName;
    ruleServiceFileUploadAdminStub = new RuleServiceFileUploadAdminStub(endPoint);
    AuthenticateStub.authenticateStub(sessionCookie, ruleServiceFileUploadAdminStub);
  }
예제 #3
0
 public void addLocalEntry(String sessionCookie, DataHandler dh)
     throws LocalEntryAdminException, IOException, XMLStreamException {
   AuthenticateStub.authenticateStub(sessionCookie, localEntryAdminServiceStub);
   XMLStreamReader parser =
       XMLInputFactory.newInstance().createXMLStreamReader(dh.getInputStream());
   // create the builder
   StAXOMBuilder builder = new StAXOMBuilder(parser);
   OMElement localEntryElem = builder.getDocumentElement();
   localEntryAdminServiceStub.addEntry(localEntryElem.toString());
 }
예제 #4
0
 public SAMLSSOConfigServiceClient(String backEndUrl, String userName, String password)
     throws RemoteException {
   this.endPoint = backEndUrl + serviceName;
   try {
     identitySAMLSSOConfigServiceStub = new IdentitySAMLSSOConfigServiceStub(endPoint);
   } catch (AxisFault axisFault) {
     log.error("Error on initializing stub : " + axisFault.getMessage());
     throw new RemoteException("Error on initializing stub : ", axisFault);
   }
   AuthenticateStub.authenticateStub(userName, password, identitySAMLSSOConfigServiceStub);
 }
예제 #5
0
 public JaggeryApplicationUploaderClient(String backEndUrl, String sessionCookie)
     throws AxisFault {
   String endPoint = backEndUrl + serviceName;
   try {
     jaggeryAppAdminStub = new JaggeryAppAdminStub(endPoint);
     AuthenticateStub.authenticateStub(sessionCookie, jaggeryAppAdminStub);
   } catch (AxisFault axisFault) {
     log.error("JaggeryAppAdminStub Initialization fail " + axisFault.getMessage());
     throw new AxisFault("JaggeryAppAdminStub Initialization fail " + axisFault.getMessage());
   }
 }
예제 #6
0
  public ServiceAdminClient(String backEndUrl, String userName, String password) throws AxisFault {

    String endPoint = backEndUrl + serviceName;
    serviceAdminStub = new ServiceAdminStub(endPoint);
    AuthenticateStub.authenticateStub(userName, password, serviceAdminStub);
  }
예제 #7
0
  public ServiceAdminClient(String backEndUrl, String sessionCookie) throws AxisFault {

    String endPoint = backEndUrl + serviceName;
    serviceAdminStub = new ServiceAdminStub(endPoint);
    AuthenticateStub.authenticateStub(sessionCookie, serviceAdminStub);
  }
예제 #8
0
 public EndpointTemplateAdminServiceClient(String backEndUrl, String userName, String password)
     throws AxisFault {
   String endPoint = backEndUrl + serviceName;
   endpointTemplateAdminStub = new EndpointTemplateAdminServiceStub(endPoint);
   AuthenticateStub.authenticateStub(userName, password, endpointTemplateAdminStub);
 }
예제 #9
0
 public EndpointTemplateAdminServiceClient(String backEndUrl, String sessionCookie)
     throws AxisFault {
   String endPoint = backEndUrl + serviceName;
   endpointTemplateAdminStub = new EndpointTemplateAdminServiceStub(endPoint);
   AuthenticateStub.authenticateStub(sessionCookie, endpointTemplateAdminStub);
 }
예제 #10
0
 public OMElement getLocalEntry(String sessionCookie, String localEntryKey)
     throws LocalEntryAdminException, RemoteException {
   AuthenticateStub.authenticateStub(sessionCookie, localEntryAdminServiceStub);
   return (OMElement) localEntryAdminServiceStub.getEntry(localEntryKey);
 }
예제 #11
0
 public void deleteLocalEntry(String sessionCookie, String localEntryKey)
     throws LocalEntryAdminException, RemoteException {
   AuthenticateStub.authenticateStub(sessionCookie, localEntryAdminServiceStub);
   localEntryAdminServiceStub.deleteEntry(localEntryKey);
 }