|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.buildforge.services.common.dbo.DBObject
com.buildforge.services.common.dbo.AccessGroupDBO
public class AccessGroupDBO
The database information representing an access group (level).
Field Summary | |
---|---|
static char |
DEFAULT_NO
|
static char |
DEFAULT_YES
|
static int |
FIRST_USER_LEVEL_ID
Access groups with level less than this are built-in and may not be deleted. |
static char |
FLAG_DIRECT
|
static java.lang.String |
TYPE_KEY
|
Constructor Summary | |
---|---|
AccessGroupDBO()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Checks for equivilance with another access group. |
AccessGroupDBO |
fromArray(java.lang.Object[] data)
Deserialize the database object's settings from a request array. |
int |
getControlLevel()
|
boolean |
getDefault()
|
java.lang.String |
getLdapDN()
|
java.lang.String |
getLdapKey()
|
int |
getLevel()
|
java.lang.String |
getName()
|
java.lang.String |
getTypeKey()
Retrieve the key that should be used to look up the display name for a data type. |
int |
hashCode()
Overridden to be consistent with equals. |
boolean |
isLive()
Checks whether or not the object is live. |
void |
setControlLevel(int controlLevel)
|
void |
setDefault(boolean def)
|
void |
setLdapDN(java.lang.String dn)
|
void |
setLdapKey(java.lang.String ldapKey)
|
void |
setLevel(int level)
|
void |
setName(java.lang.String name)
|
java.lang.Object[] |
toArray()
Serializes this database object as an array of objects. |
java.lang.String |
toString()
|
Methods inherited from class com.buildforge.services.common.dbo.DBObject |
---|
badId, badName, checkDead, checkLive, collision, collision |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE_KEY
public static final char FLAG_DIRECT
public static final char DEFAULT_YES
public static final char DEFAULT_NO
public static final int FIRST_USER_LEVEL_ID
Constructor Detail |
---|
public AccessGroupDBO()
Method Detail |
---|
public java.lang.String getTypeKey()
DBObject
getTypeKey
in class DBObject
public boolean isLive()
DBObject
isLive
in class DBObject
public int getControlLevel()
public boolean getDefault()
public java.lang.String getLdapKey()
public java.lang.String getLdapDN()
public int getLevel()
public java.lang.String getName()
public void setLevel(int level)
public void setName(java.lang.String name)
public void setDefault(boolean def)
public void setLdapKey(java.lang.String ldapKey)
public void setLdapDN(java.lang.String dn)
public void setControlLevel(int controlLevel)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare with
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object[] toArray()
DBObject
Protocol
, all supported
protocols transfer database objects in this form.
toArray
in class DBObject
public AccessGroupDBO fromArray(java.lang.Object[] data) throws APIException
DBObject
DBObject.toArray()
.
fromArray
in class DBObject
data
- the object list that renders this object
APIException
- if there is something wrong with the
serialized data that interferes with the reconstruction of
the object. The most obvious reason for this would be if
the serialized array contains the wrong number of fields
or otherwise does not match the serialized form for this
type of database object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |