1 23 24 package org.infoglue.cms.applications.contenttool.actions; 25 26 import org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction; 27 import org.infoglue.cms.controllers.kernel.impl.simple.ContentController; 28 29 34 35 public class ViewContentToolStartPageAction extends InfoGlueAbstractAction 36 { 37 private static final long serialVersionUID = 1L; 38 39 private Integer repositoryId; 40 41 public String doExecute() throws Exception 42 { 43 return "success"; 44 } 45 46 public void setRepositoryId(Integer repositoryId) 47 { 48 this.repositoryId = repositoryId; 49 } 50 51 public Integer getRootContentId() 52 { 53 try 54 { 55 if(this.repositoryId != null && this.repositoryId.intValue() != -1) 56 return ContentController.getContentController().getRootContentVO(this.repositoryId, this.getInfoGluePrincipal().getName()).getContentId(); 57 } 58 catch(Exception e) 59 { 60 e.printStackTrace(); 61 } 62 63 return null; 64 } 65 } 66 | Popular Tags |