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.CategoryNested 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 TypeMethodDescriptionvoidcheckPermission(Permission permission) Check permission, throw exception if no permissionvoiddoConfigure(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 res) Global configuration pageGet the required permission for DingTalk configurationbooleanCheck if the user has DingTalk configuration permissionMethods inherited from class hudson.model.ManagementLink
all, getBadge, getCategoryName, getRequiresConfirmation, getRequiresPOSTMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.RootAction
getBadge, isPrimaryAction
-
Constructor Details
-
DingTalkManagementLink
public DingTalkManagementLink()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classManagementLink
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction- Specified by:
getUrlNamein classManagementLink
-
getDescription
- Overrides:
getDescriptionin classManagementLink
-
getCategory
- Overrides:
getCategoryin 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.ServletExceptionDescriptor.FormExceptionIOException
-
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:
getRequiredPermissionin classManagementLink- Returns:
- configuration permission
-