com.groiss.org
Interface RightCheck


public interface RightCheck

This interface is designed to provide non-standard permission control for objects. By implementing this interface your classes may specialize how permissions are checked/implemented (e.g. depending on the state of an instance).


Method Summary
 boolean hasRight(User user, Right right)
          Checks if the passed user has the passed right for this object
 

Method Detail

hasRight

boolean hasRight(User user,
                 Right right)
Checks if the passed user has the passed right for this object

Parameters:
user - the user
right - the right
Returns:
true if the user is authorized, false otherwise


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.