KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portal > model > PortalConfig


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.model;
6 /**
7  * May 13, 2004
8  * @author: Tuan Nguyen
9  * @email: tuan08@users.sourceforge.net
10  * @version: $Id: PortalConfig.java,v 1.7 2004/08/06 03:02:29 tuan08 Exp $
11  **/

12 public class PortalConfig extends Component {
13     private String JavaDoc owner ;
14   private String JavaDoc locale ;
15   private String JavaDoc viewPermission ;
16   private String JavaDoc editPermission ;
17   
18   private Container portalLayout ;
19   private Container mobilePortalLayout ;
20   transient private boolean sharedLayout = false ;
21   
22   public String JavaDoc getOwner() { return owner ; }
23   public void setOwner(String JavaDoc s) { owner = s ; }
24  
25   public String JavaDoc getLocale() { return locale ; }
26   public void setLocale(String JavaDoc s) { locale = s ; }
27   
28   public String JavaDoc getViewPermission() { return viewPermission ; }
29   public void setViewPermission(String JavaDoc s) { viewPermission = s ; }
30   
31   public String JavaDoc getEditPermission() { return editPermission ; }
32   public void setEditPermission(String JavaDoc s) { editPermission = s ; }
33   
34   public Container getLayout() { return portalLayout ; }
35   public void setLayout(Container layout) { portalLayout = layout; }
36   
37   public Container getMobilePortalLayout() { return mobilePortalLayout ; }
38   public void setMobilePortalLayout(Container layout) { mobilePortalLayout = layout; }
39   
40   public boolean isSharedLayout() { return sharedLayout ; }
41   public void setSharedLayout(boolean b) { sharedLayout = b ;}
42   
43   public Component softCloneObject() {
44     PortalConfig config = new PortalConfig() ;
45     config.copyBasicProperties(this) ;
46     config.setOwner(owner) ;
47     config.setLocale(locale) ;
48     config.setViewPermission(viewPermission) ;
49     config.setLayout(portalLayout) ;
50     return config ;
51   }
52 }
Popular Tags