コード例 #1
0
  /**
   * Delete user by name or a list of name
   *
   * @param name please only set one of name or nameList
   * @param nameList
   * @throws RemoteException
   */
  public void deleteUsers(String name, String[] nameList) throws RemoteException {
    com.actuate.schemas.DeleteUser deleteUser = new com.actuate.schemas.DeleteUser();
    deleteUser.setName(name);
    deleteUser.setNameList(newArrayOfString(nameList));

    com.actuate.schemas.AdminOperation adminOperation = new com.actuate.schemas.AdminOperation();
    adminOperation.setDeleteUser(deleteUser);

    runAdminOperation(adminOperation);
  }
コード例 #2
0
  /**
   * Send a single administrate message to create a user
   *
   * @param user
   * @return AdministrateResponse
   * @throws RemoteException
   */
  public com.actuate.schemas.AdministrateResponse createUser(com.actuate.schemas.User user)
      throws RemoteException {
    System.out.println("Creating user " + user.getName());

    com.actuate.schemas.CreateUser createUser = new com.actuate.schemas.CreateUser();
    createUser.setUser(user);
    createUser.setIgnoreDup(Boolean.TRUE);

    com.actuate.schemas.AdminOperation adminOperation = new com.actuate.schemas.AdminOperation();
    adminOperation.setCreateUser(createUser);

    return runAdminOperation(adminOperation);
  }
コード例 #3
0
  public com.actuate.schemas.AdministrateResponse createFolder(
      String workingFolderName, String folderName, String folderDescription)
      throws RemoteException {
    System.out.println("Creating folder " + folderName + " in " + workingFolderName);

    com.actuate.schemas.CreateFolder createFolder = new com.actuate.schemas.CreateFolder();
    createFolder.setWorkingFolderName(workingFolderName);
    createFolder.setFolderName(folderName);
    createFolder.setDescription(folderDescription);
    createFolder.setIgnoreDup(Boolean.TRUE);

    com.actuate.schemas.AdminOperation adminOperation = new com.actuate.schemas.AdminOperation();
    adminOperation.setCreateFolder(createFolder);

    return runAdminOperation(adminOperation);
  }