@Override public String getParentId(String nodeId) throws PortalException { if (mChanMap.containsKey(nodeId) || TRANSIENT_FOLDER_ID.equals(nodeId)) { return null; } return man.getParentId(nodeId); }
/** * A folder is a tab if its parent element is the layout element * * @param ulm User Layout Manager * @param folderId the folder in question * @return <code>true</code> if the folder is a tab, otherwise <code>false</code> */ protected boolean isTab(IUserLayoutManager ulm, String folderId) throws PortalException { // we could be a bit more careful here and actually check the type return ulm.getRootFolderId().equals(ulm.getParentId(folderId)); }
if (!ulm.moveNode(sourceId, ulm.getParentId(destinationId), siblingId)) { logger.warn("Failed to move tab in user layout. moveNode returned false"); response.setStatus(HttpServletResponse.SC_FORBIDDEN);
String target = isInsert ? ulm.getParentId(destinationId) : destinationId;
ulm, sourceId, ulm.getParentId(destinationId), "insertBefore".equals(method) ? destinationId : null);