Package hudson.plugins.promoted_builds
Class PromotionPermissionHelper
java.lang.Object
hudson.plugins.promoted_builds.PromotionPermissionHelper
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class PromotionPermissionHelper
extends Object
Used to ensure consistent permission checks for approvals of
ManualCondition
, re-executions of
Status
, and force promotions of PromotionProcess
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkPermission
(AbstractProject<?, ?> target, ManualCondition associatedCondition) static boolean
hasPermission
(AbstractProject<?, ?> target, ManualCondition associatedCondition)
-
Constructor Details
-
PromotionPermissionHelper
public PromotionPermissionHelper()
-
-
Method Details
-
checkPermission
public static void checkPermission(@NonNull AbstractProject<?, ?> target, @CheckForNull ManualCondition associatedCondition) -
hasPermission
public static boolean hasPermission(@NonNull AbstractProject<?, ?> target, @CheckForNull ManualCondition associatedCondition)
-