1 5 package org.exoplatform.services.portal.model; 6 7 13 public class Page extends Container { 14 final static public String MAXIMIZE_STATE = "maximized" ; 15 final static public String NORMAL_STATE = "normal" ; 16 17 private String owner ; 18 private String name ; 19 private String icon ; 20 private String state ; 21 private String viewPermission ; 22 private String editPermission ; 23 24 public Page() { 25 setId("page") ; 26 } 27 28 public String getOwner() { return owner ; } 29 public void setOwner(String s) { owner = s ; } 30 31 public String getName() { return name ; } 32 public void setName(String s) { name = s ; } 33 34 public String getIcon() { return icon ; } 35 public void setIcon(String s) { icon = s ; } 36 37 public String getState() { return state ; } 38 public void setState(String s) { state = s ; } 39 40 public String getViewPermission() { return viewPermission ; } 41 public void setViewPermission(String s) { viewPermission = s ; } 42 43 public String getEditPermission() { return editPermission ; } 44 public void setEditPermission(String s) { editPermission = s ; } 45 46 public String getPageId() { return owner + ":" + name ; } 47 48 public Page clonePage() throws Exception { 49 return (Page) this.clone() ; 50 } 51 52 public Component softCloneObject() { 53 Page page = new Page() ; 54 page.copyBasicProperties(this) ; 55 page.setOwner(owner) ; 56 page.setName(name) ; 57 page.setTitle(getTitle()) ; 58 page.setIcon(icon) ; 59 page.setState(state) ; 60 page.setViewPermission(viewPermission) ; 61 page.setEditPermission(editPermission) ; 62 page.getChildren().addAll(getChildren()) ; 63 return page ; 64 } 65 } | Popular Tags |