01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/profile/tags/sakai_2-4-1/manager-api/src/java/org/sakaiproject/api/common/manager/Persistable.java $
03: * $Id: Persistable.java 8424 2006-04-27 20:23:44Z ggolden@umich.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.api.common.manager;
21:
22: import java.util.Date;
23:
24: /**
25: * @author <a href="mailto:lance@indiana.edu">Lance Speelmon</a>
26: */
27: public interface Persistable {
28: /**
29: * All persistent objects must have a UUID.
30: *
31: * @return Returns the UUID for given object.
32: */
33: public String getUuid();
34:
35: /**
36: * The last Agent that modified the persistent state of this object.
37: *
38: * @return UUID of Agent that made last modification.
39: */
40: public String getLastModifiedBy();
41:
42: /**
43: * The last time this object's persistent state was modified.
44: *
45: * @return
46: */
47: public Date getLastModifiedDate();
48:
49: /**
50: * The Agent that created this persistent object.
51: *
52: * @return UUID of the Agent that created this persistent object.
53: */
54: public String getCreatedBy();
55:
56: /**
57: * The time and date this persistent object was created.
58: *
59: * @return
60: */
61: public Date getCreatedDate();
62: }
|