|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.user.MCRUserObject
abstract class MCRUserObject
This is the abstract super class of MCRUser and MCRGroup
MCRUser,
MCRGroup| Field Summary | |
|---|---|
protected static MCRConfiguration |
config
|
protected Timestamp |
creationDate
The date and time of creation of the user object in the MyCoRe system |
protected String |
creator
Specifies the user responsible for the creation of this user object |
protected String |
description
Description of the user object |
static int |
description_len
The maximum length of a decription |
protected String |
ID
The ID of the MyCoRe user object (either user ID or group ID) |
static int |
id_len
The maximum length of user and group names |
protected static Logger |
logger
|
protected Timestamp |
modifiedDate
The date and time of the last modification of this user object |
static int |
password_len
The maximum length of a password |
static int |
privilege_len
The maximum length of a privilege |
| Constructor Summary | |
|---|---|
MCRUserObject()
The constructor for an empty object. |
|
| Method Summary | |
|---|---|
void |
debugDefault()
This method sends debug data to the logger (for the debug mode). |
Timestamp |
getCreationDate()
|
String |
getCreator()
|
String |
getDescription()
|
abstract String |
getID()
This method must be implemented by a subclass and returns the the ID of the object. |
Timestamp |
getModifiedDate()
|
abstract boolean |
isValid()
This method checks if all required fields have been provided. |
void |
setCreationDate()
This method sets the attribute creationDate to the time the method is called. |
void |
setCreationDate(Timestamp time)
This method sets the attribute creationDate to the time provided as a parameter. |
void |
setCreator(String creator)
This method sets the creator. |
void |
setDescription(String value)
|
void |
setModifiedDate()
This method sets the attribute modifiedDate to the time the method is called. |
void |
setModifiedDate(Timestamp time)
This method sets the attribute modifiedDate to the time provided as a parameter. |
abstract Document |
toJDOMDocument()
This method must be implemented by a subclass and then returns the user or group object as a JDOM document. |
abstract Element |
toJDOMElement()
This method must be implemented by a subclass and then returns the user or group object as a JDOM element. |
String |
toString()
This method is only used for providing error messages in the access control component and should be removed later. |
protected static String |
trim(String s)
This helper method replaces null with an empty string and trims whitespace from non-null strings. |
protected static String |
trim(String s,
int len)
This helper method replaces null with an empty string and trims whitespace from non-null strings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static Logger logger
protected static MCRConfiguration config
public static final int id_len
public static final int password_len
public static final int description_len
public static final int privilege_len
protected String ID
protected String creator
protected Timestamp creationDate
protected Timestamp modifiedDate
protected String description
| Constructor Detail |
|---|
public MCRUserObject()
| Method Detail |
|---|
public final void setCreationDate(Timestamp time)
time - Timestamp to set the creation datepublic final void setCreationDate()
public final void setModifiedDate(Timestamp time)
time - Timestamp to set the modified datepublic final void setModifiedDate()
public final void setCreator(String creator)
creator - the creator of a user or grouppublic final Timestamp getCreationDate()
public final Timestamp getModifiedDate()
public final String getCreator()
public final String getDescription()
public final void setDescription(String value)
public abstract Document toJDOMDocument()
throws MCRException
MCRException
public abstract Element toJDOMElement()
throws MCRException
MCRExceptionpublic abstract String getID()
protected static final String trim(String s)
protected static final String trim(String s,
int len)
public abstract boolean isValid()
public final void debugDefault()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||