View Javadoc
1   /*
2    * Copyright (C) 2003-2010 eXo Platform SAS.
3    *
4    * This program is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Affero General Public License
6    * as published by the Free Software Foundation; either version 3
7    * of the License, or (at your option) any later version.
8    *
9    * This program 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
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program; if not, see<http://www.gnu.org/licenses/>.
16   */
17  package org.exoplatform.wiki.mow.core.api.wiki;
18  
19  import org.chromattic.api.RelationshipType;
20  import org.chromattic.api.annotations.Destroy;
21  import org.chromattic.api.annotations.ManyToOne;
22  import org.chromattic.api.annotations.MappedBy;
23  import org.chromattic.api.annotations.PrimaryType;
24  import org.chromattic.api.annotations.Property;
25  
26  
27  @PrimaryType(name = WikiNodeType.LINK_ENTRY)
28  public abstract class LinkEntry {
29    
30    @Property(name = WikiNodeType.Definition.ALIAS)
31    public abstract String getAlias();
32    public abstract void setAlias(String alias);
33  
34    @Property(name = WikiNodeType.Definition.TITLE)
35    public abstract String getTitle();
36    public abstract void setTitle(String title);
37    
38    @ManyToOne(type = RelationshipType.PATH)
39    @MappedBy(WikiNodeType.Definition.NEW_LINK)
40    public abstract LinkEntry getNewLink();
41    public abstract void setNewLink(LinkEntry linkEntry);
42    
43    @Destroy
44    public abstract void remove();
45  
46  }