public class GetAccess extends Object implements RestReadView<ProjectResource>
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.ImmutableBiMap<PermissionRule.Action,PermissionRuleInfo.Action> |
ACTION_TYPE |
Constructor and Description |
---|
GetAccess(com.google.inject.Provider<CurrentUser> self,
GroupControl.Factory groupControlFactory,
AllProjectsName allProjectsName,
ProjectCache projectCache,
MetaDataUpdate.Server metaDataUpdateFactory,
ProjectJson projectJson,
ProjectControl.GenericFactory projectControlFactory,
GroupBackend groupBackend) |
Modifier and Type | Method and Description |
---|---|
ProjectAccessInfo |
apply(Project.NameKey nameKey) |
ProjectAccessInfo |
apply(ProjectResource rsrc)
Process the view operation by reading from the resource.
|
public static final com.google.common.collect.ImmutableBiMap<PermissionRule.Action,PermissionRuleInfo.Action> ACTION_TYPE
@Inject public GetAccess(com.google.inject.Provider<CurrentUser> self, GroupControl.Factory groupControlFactory, AllProjectsName allProjectsName, ProjectCache projectCache, MetaDataUpdate.Server metaDataUpdateFactory, ProjectJson projectJson, ProjectControl.GenericFactory projectControlFactory, GroupBackend groupBackend)
public ProjectAccessInfo apply(Project.NameKey nameKey) throws ResourceNotFoundException, ResourceConflictException, IOException
public ProjectAccessInfo apply(ProjectResource rsrc) throws ResourceNotFoundException, ResourceConflictException, IOException
RestReadView
apply
in interface RestReadView<ProjectResource>
rsrc
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.ResourceConflictException
- the resource state does not permit this view to make the
changes at this time.ResourceNotFoundException
IOException