public class BackendUsersResource extends AbstractBackendCollectionResource<User,DbUser> implements UsersResource
Modifier and Type | Class and Description |
---|---|
protected class |
BackendUsersResource.UserIdResolver |
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
Modifier and Type | Field and Description |
---|---|
protected static String |
AD_SEARCH_TEMPLATE |
CASE_SENSITIVE_CONSTRAINT_PARAMETER, FROM_CONSTRAINT_PARAMETER, LOG
ACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollections
backend, httpHeaders, messageBundle, sessionHelper, uriInfo
Constructor and Description |
---|
BackendUsersResource() |
BackendUsersResource(String id,
BackendDomainResource parent) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(User user) |
protected User |
addParents(User user)
Add any parent resource references needed for constructing links.
|
protected String |
getCurrentDomain() |
protected String |
getSearchPattern(String username,
String domain) |
protected List<AdUser> |
getUsersFromDomain() |
UserResource |
getUserSubResource(String id)
Sub-resource locator method, returns individual UserResource on which the
remainder of the URI is dispatched.
|
Users |
list() |
DbUser |
lookupUserById(Guid id) |
protected VdcUser |
map(AdUser adUser) |
protected User |
mapAdUser(AdUser adUser) |
protected Users |
mapDbUserCollection(List<DbUser> entities) |
protected Users |
mapDomainUserCollection(List<AdUser> entities) |
javax.ws.rs.core.Response |
performRemove(String id) |
asString, expectBlocking, getBackendCollection, getBackendCollection, getBackendCollection, getEntity, handleAsynchrony, performCreation, remove, resolveCreated
addLinks, addLinks, addLinks, addLinks, addOrUpdateLink, asCollection, asGuidOr404, asString, awaitCompletion, delay, entityNotFound, getAsynchronousStatus, getMapper, getMappingLocator, getQueryParams, incomplete, inject, injectSearchLinks, linkSubCollections, linkSubResource, map, map, map, map, newModel, notFound, notFound, populate, removeIfExist, setMappingLocator, urlEncode
doAction, doGetEntity, doNonBlockingAction, expectNonBlocking, getBackendCollection, getConfigurationValue, getEntity, getEntity, getEntity, performAction, performAction, performNonBlockingAction
asCollection, asGuid, asGuid, combine, fault, getBackend, getCurrent, getEffectiveLocale, getHttpHeaders, getMessageBundle, getSessionHelper, getUriInfo, handleError, handleError, instantiate, localize, localize, localize, sessionize, sessionize, setBackend, setHttpHeaders, setMessageBundle, setSessionHelper, setUriInfo, validateEnum, validateParameters, validateParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove
protected static final String AD_SEARCH_TEMPLATE
public BackendUsersResource()
public BackendUsersResource(String id, BackendDomainResource parent)
public Users list()
list
in interface UsersResource
public javax.ws.rs.core.Response add(User user)
add
in interface UsersResource
protected String getCurrentDomain()
public javax.ws.rs.core.Response performRemove(String id)
performRemove
in class AbstractBackendCollectionResource<User,DbUser>
public UserResource getUserSubResource(String id)
UsersResource
getUserSubResource
in interface UsersResource
id
- the User IDprotected User addParents(User user)
AbstractBackendResource
addParents
in class AbstractBackendResource<User,DbUser>
Copyright © 2012. All Rights Reserved.