View Javadoc
1   package org.exoplatform.forum.service.search;
2   
3   import org.exoplatform.forum.service.Utils;
4   
5   /**
6    * @author <a href="mailto:alain.defrance@exoplatform.com">Alain Defrance</a>
7    */
8   public class PostId {
9     
10    String path;
11  
12    public PostId(String path) {
13      this.path = path;
14    }
15  
16    public String getTopicId() {
17      return Utils.getTopicId(path);
18    }
19  
20    public String getForumId() {
21      return Utils.getForumId(path);
22    }
23  
24    public String getCategoryId() {
25      return Utils.getCategoryId(path);
26    }
27  
28    public String getTopicPath() {
29      return Utils.getTopicPath(path);
30    }
31  }