public abstract class ProjectAccessHandler<T> extends Handler<T>
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jgit.lib.ObjectId |
base |
protected GroupBackend |
groupBackend |
protected String |
message |
protected com.google.gerrit.reviewdb.client.Project.NameKey |
projectName |
Modifier | Constructor and Description |
---|---|
protected |
ProjectAccessHandler(ProjectControl.Factory projectControlFactory,
GroupBackend groupBackend,
MetaDataUpdate.User metaDataUpdateFactory,
AllProjectsNameProvider allProjects,
com.google.inject.Provider<SetParent> setParent,
com.google.gerrit.reviewdb.client.Project.NameKey projectName,
org.eclipse.jgit.lib.ObjectId base,
List<com.google.gerrit.common.data.AccessSection> sectionList,
com.google.gerrit.reviewdb.client.Project.NameKey parentProjectName,
String message,
boolean checkIfOwner) |
Modifier and Type | Method and Description |
---|---|
T |
call()
Compute the operation result.
|
protected abstract T |
updateProjectConfig(ProjectControl ctl,
ProjectConfig config,
MetaDataUpdate md,
boolean parentProjectUpdate) |
protected final GroupBackend groupBackend
protected final com.google.gerrit.reviewdb.client.Project.NameKey projectName
protected final org.eclipse.jgit.lib.ObjectId base
protected String message
protected ProjectAccessHandler(ProjectControl.Factory projectControlFactory, GroupBackend groupBackend, MetaDataUpdate.User metaDataUpdateFactory, AllProjectsNameProvider allProjects, com.google.inject.Provider<SetParent> setParent, com.google.gerrit.reviewdb.client.Project.NameKey projectName, org.eclipse.jgit.lib.ObjectId base, List<com.google.gerrit.common.data.AccessSection> sectionList, com.google.gerrit.reviewdb.client.Project.NameKey parentProjectName, String message, boolean checkIfOwner)
public final T call() throws NoSuchProjectException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, com.google.gerrit.common.errors.InvalidNameException, com.google.gerrit.common.errors.NoSuchGroupException, com.google.gwtorm.server.OrmException, com.google.gerrit.common.errors.UpdateParentFailedException
Handler
call
in interface Callable<T>
call
in class Handler<T>
VoidResult.INSTANCE
if
there is no meaningful return value for the operation.NoSuchProjectException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
com.google.gerrit.common.errors.InvalidNameException
com.google.gerrit.common.errors.NoSuchGroupException
com.google.gwtorm.server.OrmException
com.google.gerrit.common.errors.UpdateParentFailedException
protected abstract T updateProjectConfig(ProjectControl ctl, ProjectConfig config, MetaDataUpdate md, boolean parentProjectUpdate) throws IOException, NoSuchProjectException, org.eclipse.jgit.errors.ConfigInvalidException, com.google.gwtorm.server.OrmException
IOException
NoSuchProjectException
org.eclipse.jgit.errors.ConfigInvalidException
com.google.gwtorm.server.OrmException