public AssetRenderer getAssetRenderer(long classPK, int type) throws PortalException, SystemException { JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK); return new JournalFolderAssetRenderer(folder); }
@Override public boolean hasPermission(PermissionChecker permissionChecker, long classPK, String actionId) throws Exception { JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK); return JournalFolderPermission.contains(permissionChecker, folder, actionId); }
@Override public int getTrashContainerModelsCount(long classPK) throws PortalException, SystemException { JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK); return JournalFolderLocalServiceUtil.getFoldersCount( folder.getGroupId(), classPK, WorkflowConstants.STATUS_IN_TRASH); }
@Override public JournalFolder getParentFolder() throws PortalException { if (getParentFolderId() == JournalFolderConstants.DEFAULT_PARENT_FOLDER_ID) { return null; } return JournalFolderLocalServiceUtil.getFolder(getParentFolderId()); }
@Override public boolean hasPermission( PermissionChecker permissionChecker, String entryClassName, long entryClassPK, String actionId) throws Exception { JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(entryClassPK); return JournalFolderPermission.contains(permissionChecker, folder, ActionKeys.VIEW); }
@Override public List<TrashRenderer> getTrashContainerModelTrashRenderers(long classPK, int start, int end) throws PortalException, SystemException { List<TrashRenderer> trashRenderers = new ArrayList<TrashRenderer>(); JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK); List<JournalFolder> folders = JournalFolderLocalServiceUtil.getFolders( folder.getGroupId(), classPK, WorkflowConstants.STATUS_IN_TRASH, start, end); for (JournalFolder curFolder : folders) { TrashHandler trashHandler = TrashHandlerRegistryUtil.getTrashHandler(JournalFolder.class.getName()); TrashRenderer trashRenderer = trashHandler.getTrashRenderer(curFolder.getPrimaryKey()); trashRenderers.add(trashRenderer); } return trashRenderers; }
@Override protected void doReindex(String className, long classPK) throws Exception { JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK); doReindex(folder); }
@Override public ContainerModel getContainerModel(long containerModelId) throws PortalException, SystemException { return JournalFolderLocalServiceUtil.getFolder(containerModelId); }