All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enonic.xp.issue.CreatePublishRequestIssueParams Maven / Gradle / Ivy

There is a newer version: 7.14.4
Show newest version
package com.enonic.xp.issue;

public class CreatePublishRequestIssueParams
    extends CreateIssueParams
{
    private final PublishRequestIssueSchedule schedule;

    protected CreatePublishRequestIssueParams( final Builder builder )
    {
        super( builder );
        this.schedule = builder.schedule;
    }

    public PublishRequestIssueSchedule getSchedule()
    {
        return schedule;
    }

    public static Builder create()
    {
        return new Builder();
    }

    public static class Builder
        extends CreateIssueParams.Builder
    {
        private PublishRequestIssueSchedule schedule;

        public Builder()
        {
            super();
            this.issueType = IssueType.PUBLISH_REQUEST;
        }

        public Builder schedule( final PublishRequestIssueSchedule schedule )
        {
            this.schedule = schedule;
            return this;
        }

        @Override
        public CreatePublishRequestIssueParams build()
        {
            return new CreatePublishRequestIssueParams( this );
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy