public class RestHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Modifier and Type | Method and Description |
---|---|
static void |
addPermission(String idOrPath,
String username,
String permission) |
static void |
addUserToDelete(String userName) |
static void |
cleanup() |
static void |
cleanupDocuments() |
static void |
cleanupGroups() |
static void |
cleanupUsers() |
static String |
createDocument(String idOrPath,
String type,
String title,
String description) |
static void |
createGroup(String name,
String label) |
static void |
createGroup(String name,
String label,
String[] members,
String[] subGroups) |
static String |
createUser(String username,
String password) |
static String |
createUser(String username,
String password,
String firstName,
String lastName,
String company,
String email,
String group) |
static void |
deleteDocument(String idOrPath) |
static void |
deleteGroup(String name) |
static void |
deleteUser(String username) |
static void |
logOnServer(String level,
String message) |
static void |
removePermissions(String idOrPath,
String username) |
static void |
removeUserToDelete(String userName) |
protected static final org.apache.commons.logging.Log log
public static void cleanup()
public static void cleanupDocuments()
public static void cleanupUsers()
public static void cleanupGroups()
public static String createUser(String username, String password)
public static String createUser(String username, String password, String firstName, String lastName, String company, String email, String group)
public static void addUserToDelete(String userName)
public static void removeUserToDelete(String userName)
public static void deleteUser(String username)
public static void createGroup(String name, String label)
public static void createGroup(String name, String label, String[] members, String[] subGroups)
public static void deleteGroup(String name)
public static String createDocument(String idOrPath, String type, String title, String description)
public static void deleteDocument(String idOrPath)
public static void addPermission(String idOrPath, String username, String permission)
public static void removePermissions(String idOrPath, String username)
public static void logOnServer(String level, String message)
Copyright © 2016 Nuxeo SA. All rights reserved.