Class GetPreferences
- java.lang.Object
-
- com.google.gerrit.server.restapi.config.GetPreferences
-
- All Implemented Interfaces:
RestReadView<ConfigResource>
,RestView<ConfigResource>
public class GetPreferences extends Object implements RestReadView<ConfigResource>
-
-
Constructor Summary
Constructors Constructor Description GetPreferences(GitRepositoryManager gitMgr, AllUsersName allUsersName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneralPreferencesInfo
apply(ConfigResource rsrc)
Process the view operation by reading from the resource.
-
-
-
Constructor Detail
-
GetPreferences
@Inject public GetPreferences(GitRepositoryManager gitMgr, AllUsersName allUsersName)
-
-
Method Detail
-
apply
public GeneralPreferencesInfo apply(ConfigResource rsrc) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from interface:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<ConfigResource>
- Parameters:
rsrc
- resource to read.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-