Package io.jenkins.plugins.prism
Class PermissionDeniedViewModel
java.lang.Object
io.jenkins.plugins.prism.PermissionDeniedViewModel
- All Implemented Interfaces:
ModelObject
View model shown when a user does not have permission to view source code.
- Author:
- Akash Manna
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionDeniedViewModel(Run<?, ?> owner, String fileName) Creates a new instance ofPermissionDeniedViewModel. -
Method Summary
-
Constructor Details
-
PermissionDeniedViewModel
Creates a new instance ofPermissionDeniedViewModel.- Parameters:
owner- the current build as the owner of this viewfileName- the file name that was requested
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-
getOwner
Returns the build as the owner of this view.- Returns:
- the build
-
getFileName
Returns the requested file name.- Returns:
- the file name
-
getRequiredPermission
Returns the permission required to view source code.- Returns:
- the permission name
-