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

net.anotheria.access.Permission Maven / Gradle / Ivy

The newest version!
package net.anotheria.access;

import java.io.Serializable;

/**
 * Permission interface.
 * 
 * @author Leon Rosenberg
 */
public interface Permission extends Serializable {

	/**
	 * Check is permission allowed for the user.
	 * 
	 * @param action
	 *            - action
	 * @return {@link PermissionReply}
	 */
	PermissionReply isAllowed(String action);

	/**
	 * Returns permission name.
	 * 
	 * @return {@link String}
	 */
	String getName();

	/**
	 * Invoke permission update.
	 */
	void firePermissionUpdate();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy