KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portal > impl > PageDescriptionData


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.portal.impl;
6
7 import org.exoplatform.services.portal.PageDescription;
8 /**
9  * Created by The eXo Platform SARL .
10  * Author : Tuan Nguyen
11  * tuan08@users.sourceforge.net
12  * Date: Jun 14, 2003
13  * Time: 1:12:22 PM
14  *
15  * @hibernate.class table="EXO_PAGE"
16  */

17 public class PageDescriptionData implements PageDescription {
18   protected String JavaDoc id_ ;
19   protected String JavaDoc name_ ;
20   protected String JavaDoc owner_ ;
21   protected String JavaDoc title_ ;
22   protected String JavaDoc viewPermission_ ;
23   protected String JavaDoc editPermission_ ;
24
25   /**
26    * @hibernate.id generator-class="assigned" unsaved-value="null"
27    ***/

28   public String JavaDoc getId() { return id_ ; }
29   public void setId(String JavaDoc id) { id_ = id ; }
30   
31   /**
32    * @hibernate.property
33    ***/

34   public String JavaDoc getName() { return name_ ; }
35   public void setName(String JavaDoc name) { name_ = name ; }
36
37   /**
38    * @hibernate.property
39    ***/

40   public String JavaDoc getOwner() { return owner_ ; }
41   public void setOwner(String JavaDoc owner) { owner_ = owner ; }
42   
43   /**
44    * @hibernate.property
45    ***/

46   public String JavaDoc getTitle() { return title_ ; }
47   public void setTitle(String JavaDoc title) { title_ = title ; }
48
49   /**
50    * @hibernate.property
51    ***/

52   public String JavaDoc getViewPermission() { return viewPermission_ ; }
53   public void setViewPermission(String JavaDoc s) { viewPermission_ = s ; }
54
55   /**
56    * @hibernate.property
57    ***/

58   public String JavaDoc getEditPermission() {
59     if(editPermission_ == null) return "owner";
60     return editPermission_ ;
61   }
62   public void setEditPermission(String JavaDoc s) { editPermission_ = s ; }
63 }
64
Popular Tags