|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserAccountable
Interface used to record user accountability with respect to object creation and modification. User ids should be unique.
Field Summary | |
---|---|
static Long |
NULL_USER_ID
Represents an unknown, undefined, or uninitialized user ID. |
Method Summary | |
---|---|
Long |
getCreatedBy()
Returns the ID of the user who created this object. |
Date |
getCreatedOn()
Returns the date on which this object was created. |
Long |
getLastUpdatedBy()
Returns the ID of the user who most recently updated this object. |
Date |
getLastUpdatedOn()
Returns the most recent date on which this object was updated. |
void |
setCreatedBy(Long userId)
Sets the ID of the user who created this object. |
void |
setCreatedOn(Date d)
Sets the date on which this object was created. |
void |
setLastUpdatedBy(Long userId)
Sets the ID of the user who most recently updated this object. |
void |
setLastUpdatedOn(Date d)
Sets the date on which this object was most recently updated. |
Field Detail |
---|
static final Long NULL_USER_ID
Method Detail |
---|
Long getLastUpdatedBy()
If this object does not know the identity of the user who lasted
updated it, the returned ID will be NULL_USER_ID
.
void setLastUpdatedBy(Long userId)
If userId
is null, this object will be updated
not with null but with NULL_USER_ID
instead.
userId
- the ID of the user who most recently updated this object.Long getCreatedBy()
If this object does not know the identity of the user who created
it, the returned ID will be NULL_USER_ID
.
void setCreatedBy(Long userId)
If userId
is null, this object will be updated
not with null but with NULL_USER_ID
instead.
userId
- the ID of the user who most recently updated this object.Date getLastUpdatedOn()
void setLastUpdatedOn(Date d)
If d
is null it will be ignored and this method
will do nothing.
d
- the date on which this object was most recently updated.Date getCreatedOn()
void setCreatedOn(Date d)
If d
is null it will be ignored and this method
will do nothing.
d
- the date on which this object was created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |