public class CKANUser extends CKAN
| Modifier and Type | Class and Description |
|---|---|
static class |
CKANUser.Role |
| Modifier and Type | Field and Description |
|---|---|
static String |
ABOUT |
static String |
ADD_USER_TO_GROUP |
static String |
DISPLAY_NAME |
static String |
EMAIL |
static String |
FULL_NAME |
static String |
NAME |
static String |
PASSWORD |
protected PortalUser |
portalUser |
protected CKANUser.Role |
role |
static String |
USER_CREATE |
static String |
USER_DELETE |
static String |
USER_LIST |
static String |
USER_SHOW |
static String |
USER_UPDATE |
apiKey, AUTH_CKAN_HEADER, AUTHORIZATION_ERROR, CKAN_API_PATH, CREATE, DELETE, ERROR_KEY, ERROR_TYPE_KEY, ID_KEY, LIMIT_KEY, LIST, mapper, MESSAGE_KEY, name, NAME_KEY, NAME_REGEX, nameRegex, NOT_FOUND_ERROR, OFFSET_KEY, OWNER_ORG_KEY, PATCH, PURGE, READ, result, RESULT_KEY, SUCCESS_KEY, UPDATE, uriInfo, VALIDATION_ERROR| Constructor and Description |
|---|
CKANUser() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToGroup(String groupName) |
void |
addUserToOrganization() |
void |
addUserToOrganization(String organizationName) |
protected void |
addUserToOrganization(String organizationName,
String ckanUsername,
String role) |
String |
create() |
void |
delete(boolean purge) |
static String |
getCKANUsername() |
protected static String |
getCKANUsername(String username) |
PortalUser |
getPortalUser() |
CKANUser.Role |
getRole() |
protected void |
parseResult() |
String |
read() |
protected void |
retrieve() |
protected boolean |
updateProfileIfNeeded()
Update the user profile on CKAN if the got got informations differs from the portal information
|
checkName, checkName, create, createJsonNodeWithID, createJsonNodeWithNameAsID, delete, getApiKey, getAsJsonNode, getAsString, getGXHTTPStringRequest, getJsonNodeResult, getMapper, getMapWithID, getMapWithNameAsID, getName, getResultAndValidate, list, patch, purge, sendGetRequest, sendPostRequest, sendPostRequest, setApiKey, setName, setUriInfo, update, validateCKANResponsepublic static final String USER_LIST
public static final String USER_CREATE
public static final String USER_SHOW
public static final String USER_UPDATE
public static final String USER_DELETE
public static final String ADD_USER_TO_GROUP
public static final String NAME
public static final String DISPLAY_NAME
public static final String FULL_NAME
public static final String ABOUT
public static final String EMAIL
public static final String PASSWORD
protected PortalUser portalUser
protected CKANUser.Role role
public String create()
protected boolean updateProfileIfNeeded()
protected void retrieve()
protected void parseResult()
public static String getCKANUsername()
protected void addUserToOrganization(String organizationName, String ckanUsername, String role)
public CKANUser.Role getRole()
public void addUserToOrganization(String organizationName)
public void addUserToOrganization()
public void addToGroup(String groupName) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionpublic PortalUser getPortalUser()
Copyright © 2020. All Rights Reserved.