com.bristle.javalib.security
Interface Securable

All Known Implementing Classes:
AbstractSecurableStandardTableBackedObject, SecurableObject

public interface Securable

This interface acts as a flag that the implementing class is securable via the Bristle Software access control scheme, and requires the implementing class to provide methods in support of that.

Usage:
   - The typical usage is to declare a class that implements this interface,
     and pass it to the Bristle Software access control classes.

Assumptions:
Effects:
       - None.
Anticipated Changes:
Notes:
Implementation Notes:
Portability Issues:
Revision History:
   $Log$


Method Summary
 int getClassId()
          Get the unique id of the class of objects
 String getDataSource()
          Get the data source, typically a DB table name, of the object, for use in determining whether the current user has access to it.
 int getId()
          Get the unique id
 int getNullClassId()
          Get the value that indicates a null class id
 int getNullId()
          Get the value that indicates a null id
 Securable getSecurableCLASS_OF_OBJECTS()
           
 

Method Detail

getDataSource

String getDataSource()
Get the data source, typically a DB table name, of the object, for use in determining whether the current user has access to it.

Returns:
The data source

getId

int getId()
Get the unique id

Returns:
The unique id

getNullId

int getNullId()
Get the value that indicates a null id

Returns:
The null id

getClassId

int getClassId()
Get the unique id of the class of objects

Returns:
The unique class id

getNullClassId

int getNullClassId()
Get the value that indicates a null class id

Returns:
The null class id

getSecurableCLASS_OF_OBJECTS

Securable getSecurableCLASS_OF_OBJECTS()
See Also:
AbstractStandardTableBackedObject.getCLASS_OF_OBJECTS()