|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bristle.javalib.security.SecurableObject
public class SecurableObject
This class is a simple object that implements the Securable interface.
Usage:
- The typical scenarios for using this class are:
- To create a Securable from a set of properties that describe it:
Securable securable = new SecurableObject
(strDataSource, intClassId, intId);
Assumptions:
Effects:
- None.
Anticipated Changes:
Notes:
Implementation Notes:
Portability Issues:
Revision History:
$Log$
| Constructor Summary | |
|---|---|
SecurableObject()
Constructor. |
|
SecurableObject(String strDataSource,
int intClassId,
int intId)
Constructor. |
|
| 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. |
static int |
getDefaultNullClassId()
Get the default value for NullClassId. |
static int |
getDefaultNullId()
Get the default value for NullId. |
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()
|
static SecurableObject |
getStaticCLASS_OF_OBJECTS()
Get the special instance that indicates the class of objects instead of any one particular instance, without requiring an instance to be created. |
void |
setClassId(int intVal)
Set the id of the class of objects. |
void |
setDataSource(String strVal)
Set the data source, typically a DB table name, of the object. |
void |
setId(int intVal)
Set the id. |
void |
setNullClassId(int intVal)
Set the value that indicates a null id of the class of objects. |
void |
setNullId(int intVal)
Set the value that indicates a null id. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurableObject()
public SecurableObject(String strDataSource,
int intClassId,
int intId)
strDataSource - The data sourceintClassId - The class idintId - The object id| Method Detail |
|---|
public static SecurableObject getStaticCLASS_OF_OBJECTS()
public Securable getSecurableCLASS_OF_OBJECTS()
getSecurableCLASS_OF_OBJECTS in interface SecurableSecurable.getSecurableCLASS_OF_OBJECTS()public String getDataSource()
Securable
getDataSource in interface SecurableSecurable.getDataSource()public void setDataSource(String strVal)
strVal - The value to set.public int getClassId()
Securable
getClassId in interface SecurableSecurable.getClassId()public void setClassId(int intVal)
intVal - The value to set.public int getNullClassId()
Securable
getNullClassId in interface SecurableSecurable.getNullClassId()public void setNullClassId(int intVal)
intVal - The value to set.public static int getDefaultNullClassId()
public int getId()
Securable
getId in interface SecurableSecurable.getId()public void setId(int intVal)
intVal - The value to set.public int getNullId()
Securable
getNullId in interface SecurableSecurable.getNullId()public void setNullId(int intVal)
intVal - The value to set.public static int getDefaultNullId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||