List of usage examples for javax.ejb FinderException printStackTrace
public void printStackTrace()
From source file:com.idega.builder.business.BuilderLogic.java
public boolean changePageUriByTitle(String parentId, ICPage page, String pageTitle, int domainId) { if (page == null || pageTitle == null) { return false; }// www. ja v a 2s. c om ICPage parentPage = null; String pageUri = null; if (parentId != null) { try { parentPage = getIBPageHelper().getICPageHome().findByPrimaryKey(parentId); } catch (FinderException e) { e.printStackTrace(); return false; } PageUrl pUrl = new PageUrl(parentPage, pageTitle, domainId); pageUri = pUrl.getGeneratedUrlFromName(); } else { PageUrl pUrl = new PageUrl(pageTitle); pageUri = pUrl.getGeneratedUrlFromName(); } if (pageUri != null) { page.setDefaultPageURI(pageUri); page.store(); } return true; }