planetj.dataengine.security
Interface IGuarded

All Known Implementing Classes:
Field, Row

public interface IGuarded

This interface contains contants used for security as well as required methods for any IGuarded Object.

Author:
PlanetJ Corporation

Field Summary
static int TYPE_ID_UNKNOWN
           
static String TYPE_NAME_FIELD
           
static String TYPE_NAME_SQLOPERATION
           
static int TYPE_SECURED_BY_LEVEL
           
static int TYPE_SECURED_BY_OPERATION
           
static int TYPE_UNSECURED
           
 
Method Summary
 int getSecuredTypeId()
          Gets the id of the secured entity.
 String getSecuredTypeName()
          Gets the secured type name for the secured object.
 int getSecurityType()
          Gets the type of security being used.
 boolean isGuarded()
          Checks to see if the object is secured.
 

Field Detail

TYPE_UNSECURED

public static final int TYPE_UNSECURED
See Also:
Constant Field Values

TYPE_SECURED_BY_LEVEL

public static final int TYPE_SECURED_BY_LEVEL
See Also:
Constant Field Values

TYPE_SECURED_BY_OPERATION

public static final int TYPE_SECURED_BY_OPERATION
See Also:
Constant Field Values

TYPE_ID_UNKNOWN

public static final int TYPE_ID_UNKNOWN
See Also:
Constant Field Values

TYPE_NAME_SQLOPERATION

public static final String TYPE_NAME_SQLOPERATION
See Also:
Constant Field Values

TYPE_NAME_FIELD

public static final String TYPE_NAME_FIELD
See Also:
Constant Field Values
Method Detail

getSecuredTypeId

public int getSecuredTypeId()
Gets the id of the secured entity.


getSecuredTypeName

public String getSecuredTypeName()
Gets the secured type name for the secured object.


getSecurityType

public int getSecurityType()
Gets the type of security being used. Below is a list of possible securities.

0 - Unsecured 1 - Secured 2 - Admins Only 3 - PJ Admins Only

Returns:
security type

isGuarded

public boolean isGuarded()
Checks to see if the object is secured. An object is secured if its security type is anything other than IGuarded.TYPE_UNSECURED.

Returns:
true if object is secured.