1 package org.roller.presentation.weblog.formbeans; 2 3 import org.roller.RollerException; 4 import org.roller.pojos.WeblogCategoryData; 5 import org.roller.presentation.forms.WeblogCategoryForm; 6 7 13 public class WeblogCategoryFormEx extends WeblogCategoryForm 14 { 15 private String mParentId = null; 16 private boolean mMoveContents = false; 17 private String mMoveToWeblogCategoryId = null; 18 19 public WeblogCategoryFormEx() 20 { 21 super(); 22 } 23 24 public WeblogCategoryFormEx(WeblogCategoryData catData, java.util.Locale locale) throws RollerException 25 { 26 super(catData, locale); 27 } 28 29 public String getParentId() 30 { 31 return mParentId; 32 } 33 34 public void setParentId(String parentId) 35 { 36 mParentId = parentId; 37 } 38 39 40 public boolean getMoveContents() 41 { 42 return mMoveContents; 43 } 44 45 public void setMoveContents(boolean flag) 46 { 47 mMoveContents = flag; 48 } 49 50 51 public String getMoveToWeblogCategoryId() 52 { 53 return mMoveToWeblogCategoryId; 54 } 55 56 public void setMoveToWeblogCategoryId(String id) 57 { 58 mMoveToWeblogCategoryId = id; 59 } 60 61 64 public void copyFrom(WeblogCategoryData dataHolder, java.util.Locale locale) throws RollerException 65 { 66 super.copyFrom(dataHolder, locale); 67 try 68 { 69 mParentId = dataHolder.getParent().getId(); 70 } 71 catch (RollerException e) 72 { 73 throw new RuntimeException ("ERROR fetching parent category."); 74 } 75 } 76 77 } 78 | Popular Tags |