container/src/main/java/com/streamsets/datacollector/cli/sch/SchAdmin.java
public static void disableDPM(String username, String password, String organizationId, Context context) throws IOException {
    String dpmBaseURL = normalizeDpmBaseURL(context.configuration.get(RemoteSSOService.DPM_BASE_URL_CONFIG, ""));
    String userToken = retrieveUserToken(dpmBaseURL, username, password);
    try {
      disableDPM(userToken, organizationId, context);
    } finally {
      logout(dpmBaseURL, userToken);
    }
  }
public static void disableDPM(String username, String password, String organizationId, Context context) throws IOException {
    String dpmBaseURL = normalizeDpmBaseURL(context.configuration.get(RemoteSSOService.DPM_BASE_URL_CONFIG, ""));
    String userToken = retrieveUserToken(dpmBaseURL, username, password);
    try {
      disableDPM(userToken, organizationId, context);
    } finally {
      logout(dpmBaseURL, userToken);
    }
  }
public static void disableDPM ( String username , String password , String organizationId , Context context ) throws IOException { String dpmBaseURL = normalizeDpmBaseURL ( context . configuration . get ( RemoteSSOService . DPM_BASE_URL_CONFIG , "" ) ) ; String userToken = retrieveUserToken ( dpmBaseURL , username , password ) ; try { disableDPM ( userToken , organizationId , context ) ; } finally { logout ( dpmBaseURL , userToken ) ; } }
Disable Control Hub on this Data Collector - with explicit login.
Disable Control Hub on this Data Collector - with explicit login .