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

com.enonic.xp.content.ResolvePublishDependenciesResult Maven / Gradle / Ivy

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

import com.enonic.xp.annotation.PublicApi;

@PublicApi
public class ResolvePublishDependenciesResult
{
    private final CompareContentResults compareContents;

    private ResolvePublishDependenciesResult( final Builder builder )
    {
        this.compareContents = builder.results.build();
    }

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

    public ContentIds contentIds()
    {
        return compareContents.contentIds();
    }

    public CompareContentResults getCompareContents()
    {
        return compareContents;
    }

    public static final class Builder
    {
        private final CompareContentResults.Builder results = CompareContentResults.create();

        private Builder()
        {
        }

        public Builder add( final CompareContentResult result )
        {
            this.results.add( result );
            return this;
        }

        public Builder addAll( final CompareContentResults compareContentResults )
        {
            this.results.addAll( compareContentResults );
            return this;
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy