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

org.nakedobjects.metamodel.consent.Consent Maven / Gradle / Ivy

The newest version!
package org.nakedobjects.metamodel.consent;



public interface Consent {

    /**
     * Returns true if this object is giving permission.
     */
    boolean isAllowed();

    /**
     * Returns true if this object is NOT giving permission.
     */
    boolean isVetoed();

    /**
     * Why consent is being vetoed.
     * 
     * 

* Will be non-null and non-empty if vetoed. Will be null * (not the empty string) if this is consent is is allowed. * *

* Will correspond to the {@link InteractionResult#getReason() reason} in the contained * {@link #getInteractionResult() InteractionResult} (if one was specified). */ String getReason(); /** * Description of the interaction that this consent represents. * *

* May be null. */ String getDescription(); /** * Allows the description of the interaction to which this consent relates to be * specified or refined. * * @param description * @return this consent */ Consent setDescription(String description); /** * The {@link InteractionResult} that created this {@link Consent}. * * @return - may be null if created as a legacy {@link Consent}. * */ public InteractionResult getInteractionResult(); } // Copyright (c) Naked Objects Group Ltd.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy