public class BackendGroupsResource extends AbstractBackendCollectionResource<Group,ad_groups> implements GroupsResource
Modifier and Type | Class and Description |
---|---|
protected class |
BackendGroupsResource.GroupIdResolver |
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 |
---|
BackendGroupsResource() |
BackendGroupsResource(String id,
BackendDomainResource parent) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(Group group) |
protected Group |
addParents(Group group)
Add any parent resource references needed for constructing links.
|
protected ad_groups |
getAdGroup(Group group) |
protected List<DbUser> |
getGroupsCollection(SearchType searchType,
String constraint) |
protected List<ad_groups> |
getGroupsFromDomain() |
GroupResource |
getGroupSubResource(String id)
Sub-resource locator method, returns individual GroupResource on which
the remainder of the URI is dispatched.
|
protected String |
getSearchPattern(String param) |
Groups |
list() |
ad_groups |
lookupGroupById(Guid id) |
protected Group |
mapAdGroup(ad_groups entity) |
protected Groups |
mapDbGroupsCollection(List<DbUser> entities) |
protected Group |
mapDbUser(DbUser entity) |
protected Groups |
mapDomainGroupsCollection(List<ad_groups> 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 BackendGroupsResource()
public BackendGroupsResource(String id, BackendDomainResource parent)
public Groups list()
list
in interface GroupsResource
public javax.ws.rs.core.Response add(Group group)
add
in interface GroupsResource
public javax.ws.rs.core.Response performRemove(String id)
performRemove
in class AbstractBackendCollectionResource<Group,ad_groups>
public GroupResource getGroupSubResource(String id)
GroupsResource
getGroupSubResource
in interface GroupsResource
id
- the Group IDprotected Group addParents(Group group)
AbstractBackendResource
addParents
in class AbstractBackendResource<Group,ad_groups>
protected List<DbUser> getGroupsCollection(SearchType searchType, String constraint)
Copyright © 2012. All Rights Reserved.