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

com.enonic.xp.page.GetDefaultPageTemplateParams Maven / Gradle / Ivy

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


import com.enonic.xp.annotation.PublicApi;
import com.enonic.xp.content.ContentId;
import com.enonic.xp.content.ContentPath;
import com.enonic.xp.schema.content.ContentTypeName;

@PublicApi
public class GetDefaultPageTemplateParams
{
    private final ContentId site;

    private final ContentPath sitePath;

    private final ContentTypeName contentType;

    public GetDefaultPageTemplateParams( final Builder builder )
    {
        site = builder.site;
        sitePath = builder.sitePath;
        contentType = builder.contentType;
    }

    public ContentId getSite()
    {
        return site;
    }

    public ContentPath getSitePath()
    {
        return sitePath;
    }

    public ContentTypeName getContentType()
    {
        return contentType;
    }

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

    public static class Builder
    {
        private ContentId site;

        private ContentPath sitePath;

        private ContentTypeName contentType;

        public Builder site( final ContentId site )
        {
            this.site = site;
            return this;
        }

        public Builder sitePath( final ContentPath sitePath )
        {
            this.sitePath = sitePath;
            return this;
        }

        public Builder contentType( final ContentTypeName contentType )
        {
            this.contentType = contentType;
            return this;
        }

        public GetDefaultPageTemplateParams build()
        {
            return new GetDefaultPageTemplateParams( this );
        }

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy