planetj.dataengine.security
Class DESecurityManager

java.lang.Object
  |
  +--planetj.dataengine.security.DESecurityManager

public class DESecurityManager
extends Object

!!DA (6/3/2003 10:51:01 AM)

Author:
PlanetJ Corp.

Field Summary
static String className
           
 
Constructor Summary
DESecurityManager()
           
 
Method Summary
static boolean checkExecute(IUser user, Operation operation)
          Deprecated. - replaced by checkExecute(Operation, ExecutingContext) cannot use operation based security with this method
static boolean checkExecute(Operation operation, ExecutingContext pEc)
          Check to see if the given principal is allowed to view the given operation.
static int deleteDEUser2Group(String system, int owner, int user, int group)
           
static DEAuthorization getAuthorization(IUser user, Operation operation)
          Check to see if the given principal is allowed to view the given operation.
static RowCollection getAuthorizations(IUser user)
          Check to see if the given principal is allowed to view the given operation.
static DEGroup2Authorization getDEGroup2Authorization(String system, int owner, int group, int authorization)
           
static DEUser2Group getDEUser2Group(String system, int owner, int user, int group)
           
static int getSecurityLevel(Object securityLevel)
          Returns the security level of the row as an int.
static Row secureRow(IUser user, Row row)
          Check to see if the given principal is allowed to view the given operation.
static RowCollection secureRowCollection(IUser user, RowCollection rc)
          Gets a RowCollection stripped of any secured objects from the given RowCollection that the IUser does not have permission to.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

public static final String className
Constructor Detail

DESecurityManager

public DESecurityManager()
Method Detail

checkExecute

public static boolean checkExecute(Operation operation,
                                   ExecutingContext pEc)
Check to see if the given principal is allowed to view the given operation.

Parameters:
operation -
Returns:
boolean

checkExecute

public static boolean checkExecute(IUser user,
                                   Operation operation)
Deprecated. - replaced by checkExecute(Operation, ExecutingContext) cannot use operation based security with this method

Check to see if the given principal is allowed to view the given operation.

Parameters:
user -
operation -
Returns:
boolean

deleteDEUser2Group

public static int deleteDEUser2Group(String system,
                                     int owner,
                                     int user,
                                     int group)
                              throws CMException
CMException

getAuthorization

public static DEAuthorization getAuthorization(IUser user,
                                               Operation operation)
Check to see if the given principal is allowed to view the given operation.

Parameters:
user -
operation -
Returns:
boolean

getAuthorizations

public static RowCollection getAuthorizations(IUser user)
Check to see if the given principal is allowed to view the given operation.

Parameters:
user -
Returns:
boolean

getDEGroup2Authorization

public static DEGroup2Authorization getDEGroup2Authorization(String system,
                                                             int owner,
                                                             int group,
                                                             int authorization)
                                                      throws CMException
CMException

getDEUser2Group

public static DEUser2Group getDEUser2Group(String system,
                                           int owner,
                                           int user,
                                           int group)
                                    throws CMException
CMException

getSecurityLevel

public static final int getSecurityLevel(Object securityLevel)
Returns the security level of the row as an int. If the row does not have a security level, 0 is returned


secureRow

public static Row secureRow(IUser user,
                            Row row)
Check to see if the given principal is allowed to view the given operation.

Parameters:
user -
Returns:
boolean

secureRowCollection

public static RowCollection secureRowCollection(IUser user,
                                                RowCollection rc)
Gets a RowCollection stripped of any secured objects from the given RowCollection that the IUser does not have permission to.

Parameters:
user -
rc -
Returns:
secure RowCollection