View Javadoc
1   /*
2    * Licensed to The Apereo Foundation under one or more contributor license
3    * agreements. See the NOTICE file distributed with this work for additional
4    * information regarding copyright ownership.
5    *
6    *
7    * The Apereo Foundation licenses this file to you under the Educational
8    * Community License, Version 2.0 (the "License"); you may not use this file
9    * except in compliance with the License. You may obtain a copy of the License
10   * at:
11   *
12   *   http://opensource.org/licenses/ecl2.txt
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, WITHOUT
16   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
17   * License for the specific language governing permissions and limitations under
18   * the License.
19   *
20   */
21  
22  package org.opencastproject.series.api;
23  
24  import org.opencastproject.metadata.dublincore.DublinCoreCatalog;
25  
26  import java.util.Date;
27  
28  
29  /**
30   * An Opencast series.
31   */
32  public class Series {
33    /** The ID of this series */
34    private String id;
35  
36    /** The organization this series belongs to */
37    private String organization;
38  
39    /** Serialized dublin core metadata catalogue */
40    private DublinCoreCatalog dublinCore;
41  
42    /** Serialized access control lists */
43    private String accessControl;
44  
45    /** Date of the last time anything about this series was modified */
46    private Date modifiedDate;
47  
48    /**
49     * Date of the last time this series was deleted, or {@code null} if it is not currently deleted.
50     */
51    private Date deletionDate;
52  
53    /** The creator of this series */
54    private SeriesCreator creator;
55  
56    public String getId() {
57      return this.id;
58    }
59  
60    public void setId(String id) {
61      this.id = id;
62    }
63  
64    public String getOrganization() {
65      return this.organization;
66    }
67  
68    public void setOrganization(String organization) {
69      this.organization = organization;
70    }
71  
72    public DublinCoreCatalog getDublinCore() {
73      return this.dublinCore;
74    }
75  
76    public void setDublinCore(DublinCoreCatalog dublinCore) {
77      this.dublinCore = dublinCore;
78    }
79  
80    public String getAccessControl() {
81      return this.accessControl;
82    }
83  
84    public void setAccessControl(String accessControl) {
85      this.accessControl = accessControl;
86    }
87  
88    public Date getModifiedDate() {
89      return this.modifiedDate;
90    }
91  
92    public void setModifiedDate(Date modifiedDate) {
93      this.modifiedDate = modifiedDate;
94    }
95  
96    public Date getDeletionDate() {
97      return this.deletionDate;
98    }
99  
100   public void setDeletionDate(Date deletionDate) {
101     this.deletionDate = deletionDate;
102   }
103 
104   /** Returns whether or not this series is currently deleted. */
105   public boolean isDeleted() {
106     return deletionDate != null;
107   }
108 
109   public void setCreator(SeriesCreator creator) {
110     this.creator = creator;
111   }
112 
113   public SeriesCreator getCreator() {
114     return this.creator;
115   }
116 }