public class PerformCreateGroup
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
PerformCreateGroup.Factory |
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.reviewdb.client.AccountGroup |
createGroup()
Creates a new group.
|
public com.google.gerrit.reviewdb.client.AccountGroup createGroup() throws com.google.gwtorm.server.OrmException, com.google.gerrit.common.errors.NameAlreadyUsedException, com.google.gerrit.common.errors.PermissionDeniedException
com.google.gwtorm.server.OrmException
- is thrown in case of any data store read or write
errorcom.google.gerrit.common.errors.NameAlreadyUsedException
- is thrown in case a group with the given
name already existscom.google.gerrit.common.errors.PermissionDeniedException
- user cannot create a group.