1 5 package org.exoplatform.services.portal.model; 6 12 public class PortalConfig extends Component { 13 private String owner ; 14 private String locale ; 15 private String viewPermission ; 16 private String editPermission ; 17 18 private Container portalLayout ; 19 private Container mobilePortalLayout ; 20 transient private boolean sharedLayout = false ; 21 22 public String getOwner() { return owner ; } 23 public void setOwner(String s) { owner = s ; } 24 25 public String getLocale() { return locale ; } 26 public void setLocale(String s) { locale = s ; } 27 28 public String getViewPermission() { return viewPermission ; } 29 public void setViewPermission(String s) { viewPermission = s ; } 30 31 public String getEditPermission() { return editPermission ; } 32 public void setEditPermission(String 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 |