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,
PermissionBackend permissionBackend,
AllProjectsName allProjectsName,
ProjectCache projectCache,
MetaDataUpdate.Server metaDataUpdateFactory,
ProjectJson projectJson,
GroupBackend groupBackend,
WebLinks webLinks,
ProjectConfig.Factory projectConfigFactory) |
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, PermissionBackend permissionBackend, AllProjectsName allProjectsName, ProjectCache projectCache, MetaDataUpdate.Server metaDataUpdateFactory, ProjectJson projectJson, GroupBackend groupBackend, WebLinks webLinks, ProjectConfig.Factory projectConfigFactory)
public ProjectAccessInfo apply(Project.NameKey nameKey) throws ResourceNotFoundException, ResourceConflictException, IOException, PermissionBackendException
public ProjectAccessInfo apply(ProjectResource rsrc) throws ResourceNotFoundException, ResourceConflictException, IOException, PermissionBackendException
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
PermissionBackendException