view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/ManagedFacet.java @ 694:68c6c75a6f7c facets-slt

Add index and description of facets to collections describe document. flys-artifacts/branches/facets-slt@2136 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 16 Jun 2011 14:10:49 +0000
parents 16161de47662
children 59ae2a823e73
line wrap: on
line source
package de.intevation.flys.artifacts.model;

import de.intevation.artifactdatabase.state.DefaultFacet;


public class ManagedFacet extends DefaultFacet {

    /** The uuid of the owner artifact.*/
    protected String uuid;

    /** The index.*/
    protected int index;

    /** A property that determines the position of this facet.*/
    protected int position;

    /** A property that determines if this facet is active or not.*/
    protected int active;


    public ManagedFacet(
        String  name,
        int     index,
        String  desc,
        String  uuid,
        int     pos,
        int     active)
    {
        super(index, name, desc);

        this.uuid     = uuid;
        this.position = pos;
        this.active   = active;
    }


    public void setPosition(int pos) {
        this.position = pos;
    }


    public int getPosition() {
        return position;
    }


    public void setActive(int active) {
        this.active = active;
    }


    public int getActive() {
        return active;
    }


    public String getArtifact() {
        return uuid;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org