com.cc.framework.security
Interface Principal


public interface Principal

This interface is implemented by an object, whose access should be protected. After that, the object must be registered using the SecurityUtil.registerPrincipal() method.

Since:
1.0
Version:
$Revision: 1.15 $
Author:
Harald Schulz

Method Summary
 boolean hasRight(java.lang.String right)
          Checks if the object has the specified right.
 boolean isInRole(java.lang.String role)
          Checks if the object has the specified permission.
 

Method Detail

isInRole

public boolean isInRole(java.lang.String role)
Checks if the object has the specified permission.

Parameters:
role - The symbolic name for the role to check.
Returns:
boolean

hasRight

public boolean hasRight(java.lang.String right)
Checks if the object has the specified right.

Parameters:
right - The symbolic name for the right to check.
Returns:
boolean


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.