Ejemplo n.º 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);
  }
Ejemplo n.º 2
0
  public RuleServiceFileUploadAdminClient(String backEndUrl, String sessionCookie)
      throws AxisFault {

    String endPoint = backEndUrl + serviceName;
    ruleServiceFileUploadAdminStub = new RuleServiceFileUploadAdminStub(endPoint);
    AuthenticateStub.authenticateStub(sessionCookie, ruleServiceFileUploadAdminStub);
  }
Ejemplo n.º 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());
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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());
   }
 }
Ejemplo n.º 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);
  }
Ejemplo n.º 7
0
  public ServiceAdminClient(String backEndUrl, String sessionCookie) throws AxisFault {

    String endPoint = backEndUrl + serviceName;
    serviceAdminStub = new ServiceAdminStub(endPoint);
    AuthenticateStub.authenticateStub(sessionCookie, serviceAdminStub);
  }
Ejemplo n.º 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);
 }
Ejemplo n.º 9
0
 public EndpointTemplateAdminServiceClient(String backEndUrl, String sessionCookie)
     throws AxisFault {
   String endPoint = backEndUrl + serviceName;
   endpointTemplateAdminStub = new EndpointTemplateAdminServiceStub(endPoint);
   AuthenticateStub.authenticateStub(sessionCookie, endpointTemplateAdminStub);
 }
Ejemplo n.º 10
0
 public OMElement getLocalEntry(String sessionCookie, String localEntryKey)
     throws LocalEntryAdminException, RemoteException {
   AuthenticateStub.authenticateStub(sessionCookie, localEntryAdminServiceStub);
   return (OMElement) localEntryAdminServiceStub.getEntry(localEntryKey);
 }
Ejemplo n.º 11
0
 public void deleteLocalEntry(String sessionCookie, String localEntryKey)
     throws LocalEntryAdminException, RemoteException {
   AuthenticateStub.authenticateStub(sessionCookie, localEntryAdminServiceStub);
   localEntryAdminServiceStub.deleteEntry(localEntryKey);
 }