Package hudson.model

Examples of hudson.model.Action


                persist();
            }

            @Override
            public Action remove(int index) {
                Action old = actions.remove(index);
                persist();
                return old;
            }

            @Override
            public Action set(int index, Action element) {
                Action old = actions.set(index, element);
                persist();
                return old;
            }

            @Override
View Full Code Here


    List<Action> getBaseActions(Collection<AbstractBuildParameters> configs, AbstractBuild<?,?> build, TaskListener listener)
            throws IOException, InterruptedException, DontTriggerException {
    List<Action> actions = new ArrayList<Action>();
    ParametersAction params = null;
    for (AbstractBuildParameters config : configs) {
      Action a = config.getAction(build, listener);
      if (a instanceof ParametersAction) {
        params = params == null ? (ParametersAction)a
          : ParameterizedTriggerUtils.mergeParameters(params, (ParametersAction)a);
      } else if (a != null) {
        actions.add(a);
View Full Code Here

     *      can be empty but never null
     * @since 1.341
     */
    public Collection<? extends Action> getProjectActions() {
        // delegate to getJobAction (singular) for backward compatible behavior
        Action a = getProjectAction();
        if (a==null)    return Collections.emptyList();
        return Collections.singletonList(a);
    }
View Full Code Here

        Vector<Action> ta = new Vector<Action>();

        // add the config link
        if (!getApplicablePropertyDescriptors().isEmpty()) {
            // if there's no property descriptor, there's nothing interesting to configure.
            ta.add(new Action() {
                public String getIconFileName() {
                    if (Hudson.getInstance().hasPermission(Hudson.ADMINISTER))
                        return "setting.gif";
                    else
                        return null;
View Full Code Here

        }


        @Override
        public boolean matches(Object argument) {
            Action action = (Action)argument;
            if (action instanceof ParametersAction) {
                for (NameAndValue nv : nameAndValues) {
                    ParameterValue parameterValue = ((ParametersAction)action).getParameter(nv.name);

                    if (parameterValue != null && parameterValue instanceof StringParameterValue) {
View Full Code Here

TOP

Related Classes of hudson.model.Action

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.