public class GetAccess extends java.lang.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,
GroupControl.Factory groupControlFactory,
AllProjectsName allProjectsName,
ProjectCache projectCache,
MetaDataUpdate.Server metaDataUpdateFactory,
ProjectJson projectJson,
ProjectControl.GenericFactory projectControlFactory,
GroupBackend groupBackend,
GroupJson groupJson) |
| 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, GroupControl.Factory groupControlFactory, AllProjectsName allProjectsName, ProjectCache projectCache, MetaDataUpdate.Server metaDataUpdateFactory, ProjectJson projectJson, ProjectControl.GenericFactory projectControlFactory, GroupBackend groupBackend, GroupJson groupJson)
public ProjectAccessInfo apply(Project.NameKey nameKey) throws ResourceNotFoundException, ResourceConflictException, java.io.IOException, PermissionBackendException, com.google.gwtorm.server.OrmException
ResourceNotFoundExceptionResourceConflictExceptionjava.io.IOExceptionPermissionBackendExceptioncom.google.gwtorm.server.OrmExceptionpublic ProjectAccessInfo apply(ProjectResource rsrc) throws ResourceNotFoundException, ResourceConflictException, java.io.IOException, PermissionBackendException, com.google.gwtorm.server.OrmException
RestReadViewapply 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.ResourceNotFoundExceptionjava.io.IOExceptionPermissionBackendExceptioncom.google.gwtorm.server.OrmException