View Javadoc
1   /*
2    * Copyright (C) 2003-2009 eXo Platform SAS.
3    *
4    * This is free software; you can redistribute it and/or modify it
5    * under the terms of the GNU Lesser General Public License as
6    * published by the Free Software Foundation; either version 2.1 of
7    * the License, or (at your option) any later version.
8    *
9    * This software is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12   * Lesser General Public License for more details.
13   *
14   * You should have received a copy of the GNU Lesser General Public
15   * License along with this software; if not, write to the Free
16   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
18   */
19  
20  package org.exoplatform.wiki.mow.core.api.wiki;
21  
22  import java.util.Date;
23  
24  import org.chromattic.api.RelationshipType;
25  import org.chromattic.api.annotations.MixinType;
26  import org.chromattic.api.annotations.OneToOne;
27  import org.chromattic.api.annotations.Property;
28  
29  /**
30   * @version $Revision$
31   */
32  @MixinType(name = "wiki:removed")
33  public abstract class RemovedMixin {
34  
35    @OneToOne(type = RelationshipType.EMBEDDED)
36    public abstract PageImpl getEntity();
37    public abstract void setEntity(PageImpl page);
38  
39    @Property(name = "removedBy")
40    public abstract void setRemovedBy(String by);
41    public abstract String getRemovedBy();
42    
43    @Property(name = "removedDate")
44    public abstract void setRemovedDate(Date date);
45    public abstract Date getRemovedDate();
46    
47    @Property(name = "parentPath")
48    public abstract void setParentPath(String path);
49    public abstract String getParentPath();
50    
51  }