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

org.randombits.supplier.confluence.content.AbstractSpaceContentSupplier Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package org.randombits.supplier.confluence.content;

import com.atlassian.confluence.core.SpaceContentEntityObject;
import com.atlassian.confluence.spaces.Space;
import org.randombits.supplier.core.annotate.KeyValue;
import org.randombits.supplier.core.annotate.SupplierKey;
import org.randombits.utils.lang.API;

@API("1.0.0")
public abstract class AbstractSpaceContentSupplier extends AbstractContentSupplier {

    private static final String SPACE_KEY = "space";

    /**
     * Constructs an annotated supplier.
     */
    public AbstractSpaceContentSupplier() {
    }

    @SupplierKey(SPACE_KEY)
    @API("1.0.0")
    public Space getSpaceKey(@KeyValue T entity) {
        return entity.getSpace();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy