@Override protected StagedModel getStagedModel(String uuid, Group group) { try { return JournalFolderLocalServiceUtil.getJournalFolderByUuidAndGroupId( uuid, group.getGroupId()); } catch (Exception e) { return null; } }
@Override protected void validateImport( Map<String, List<StagedModel>> dependentStagedModelsMap, Group group) throws Exception { List<StagedModel> dependentStagedModels = dependentStagedModelsMap.get(JournalFolder.class.getSimpleName()); Assert.assertEquals(1, dependentStagedModels.size()); JournalFolder folder = (JournalFolder) dependentStagedModels.get(0); JournalFolderLocalServiceUtil.getJournalFolderByUuidAndGroupId( folder.getUuid(), group.getGroupId()); }