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

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

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

import com.enonic.xp.aggregation.Bucket;
import com.enonic.xp.annotation.PublicApi;
import com.enonic.xp.schema.content.ContentTypeName;

@PublicApi
public class ContentDependenciesAggregation
{
    private final ContentTypeName type;

    private final Long count;

    public ContentDependenciesAggregation( final Bucket bucket )
    {
        this.type = ContentTypeName.from( bucket.getKey() );
        this.count = bucket.getDocCount();
    }

    public ContentDependenciesAggregation( final ContentTypeName type, final Long count )
    {
        this.type = type;
        this.count = count;
    }

    public ContentTypeName getType()
    {
        return type;
    }

    public long getCount()
    {
        return count;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy