Package io.jenkins.plugins
Class DingTalkManagementLink
java.lang.Object
hudson.model.ManagementLink
io.jenkins.plugins.DingTalkManagementLink
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,RootAction
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.Category
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.ManagementLink
LIST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPermission
(Permission permission) Check permission, throw exception if no permissionvoid
doConfigure
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) Global configuration pageGet the required permission for DingTalk configurationboolean
Check if the user has DingTalk configuration permissionMethods inherited from class hudson.model.ManagementLink
all, getBadge, getCategoryName, getRequiresConfirmation, getRequiresPOST
-
Constructor Details
-
DingTalkManagementLink
public DingTalkManagementLink()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classManagementLink
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
- Specified by:
getUrlName
in classManagementLink
-
getDescription
- Overrides:
getDescription
in classManagementLink
-
getCategory
- Overrides:
getCategory
in classManagementLink
-
doConfigure
@POST public void doConfigure(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) throws jakarta.servlet.ServletException, Descriptor.FormException, IOException - Throws:
jakarta.servlet.ServletException
Descriptor.FormException
IOException
-
getDingTalkGlobalConfigDescriptor
Global configuration page- Returns:
- DingTalkGlobalConfig
-
hasPermission
public boolean hasPermission()Check if the user has DingTalk configuration permission- Returns:
- whether the user has permission
-
checkPermission
Check permission, throw exception if no permission- Parameters:
permission
- the permission to check
-
getRequiredPermission
Get the required permission for DingTalk configuration- Overrides:
getRequiredPermission
in classManagementLink
- Returns:
- configuration permission
-