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

com.bazaarvoice.commons.data.model.RightBasedRoleBasedUser Maven / Gradle / Ivy

package com.bazaarvoice.commons.data.model;

import java.util.Collection;

public interface RightBasedRoleBasedUser, R extends UserRight> extends RoleBasedUser {

    /**
     * Whether or not the user has the given right.
     */
    boolean hasRight(R right);

    /**
     * Whether or not the user has one or more of the given rights.
     */
    boolean hasRight(R... rights);

    /**
     * Whether or not the user has one or more of the given rights.
     */
    boolean hasRight(Collection rights);

    /**
     * Whether or not the user has all of the given rights.
     */
    boolean hasAllRights(R... rights);

    /**
     * Whether or not the user has all of the given rights.
     */
    boolean hasAllRights(Collection rights);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy