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

ru.curs.celesta.dbutils.IPermissionManager Maven / Gradle / Ivy

The newest version!
package ru.curs.celesta.dbutils;

import ru.curs.celesta.CallContext;
import ru.curs.celesta.score.GrainElement;

public interface IPermissionManager {
    /**
     * Role name that has rights to edit all tables.
     */
    String EDITOR = "editor";
    /**
     * Role name that has rights to read from all tables.
     */
    String READER = "reader";

    /**
     * Whether the action is allowed.
     *
     * @param c  call context
     * @param t  table
     * @param a  action type
     * @return
     */
    boolean isActionAllowed(CallContext c, GrainElement t, Action a);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy