1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.exoplatform.wiki.mow.core.api.wiki;
18
19 import org.chromattic.api.RelationshipType;
20 import org.chromattic.api.annotations.ManyToOne;
21 import org.chromattic.api.annotations.MappedBy;
22 import org.chromattic.api.annotations.PrimaryType;
23 import org.exoplatform.portal.config.model.PortalConfig;
24 import org.exoplatform.wiki.mow.api.WikiType;
25
26
27
28
29 @PrimaryType(name = WikiNodeType.PORTAL_WIKI )
30 public abstract class PortalWiki extends WikiImpl {
31
32 public WikiType getWikiType() {
33 return WikiType.PORTAL;
34 }
35
36 @ManyToOne(type = RelationshipType.REFERENCE)
37 @MappedBy(WikiNodeType.Definition.WIKI_CONTAINER_REFERENCE)
38 public abstract PortalWikiContainer getPortalWikis();
39
40 public abstract void setPortalWikis(PortalWikiContainer pWikiContainer);
41
42 @Override
43 public String getType() {
44 return PortalConfig.PORTAL_TYPE;
45 }
46
47 }