1 23 24 package org.infoglue.cms.applications.structuretool.actions; 25 26 import org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction; 27 import org.infoglue.cms.controllers.kernel.impl.simple.SiteNodeController; 28 import org.infoglue.cms.entities.structure.SiteNodeVO; 29 30 31 36 37 public class ViewStructureToolStartPageAction extends InfoGlueAbstractAction 38 { 39 private static final long serialVersionUID = 1L; 40 41 private Integer repositoryId; 42 43 public String doExecute() throws Exception 44 { 45 return "success"; 46 } 47 48 public void setRepositoryId(Integer repositoryId) 49 { 50 this.repositoryId = repositoryId; 51 } 52 53 public Integer getRootSiteNodeId() 54 { 55 try 56 { 57 if(this.repositoryId != null && this.repositoryId.intValue() > -1) 58 { 59 SiteNodeVO siteNodeVO = SiteNodeController.getController().getRootSiteNodeVO(this.repositoryId); 60 if(siteNodeVO != null) 61 return siteNodeVO.getSiteNodeId(); 62 } 63 } 64 catch(Exception e) 65 { 66 e.printStackTrace(); 67 } 68 69 return null; 70 } 71 72 } 73 | Popular Tags |