001 package org.mycore.access.strategies;
002
003 import org.mycore.access.MCRAccessManager;
004
005 public interface MCRAccessCheckStrategy {
006
007 /**
008 * determines whether the current user has the permission to perform a
009 * certain action.
010 *
011 * @param id
012 * the MCRObjectID of the object
013 * @param permission
014 * the access permission for the rule
015 * @return true if the access is allowed otherwise it return
016 * @see MCRAccessManager#checkPermission(String, String)
017 */
018 public abstract boolean checkPermission(String id, String permission);
019
020 }