protected void initByRepositoryId(long repositoryId) { _repositoryId = repositoryId; _groupId = repositoryId; try { Repository repository = repositoryService.getRepository(repositoryId); _repositoryId = repository.getRepositoryId(); _groupId = repository.getGroupId(); _dlFolderId = repository.getDlFolderId(); } catch (Exception e) { } }
@Override protected void initByRepositoryId(long repositoryId) { setGroupId(repositoryId); setRepositoryId(repositoryId); try { com.liferay.portal.model.Repository repository = repositoryService.getRepository(repositoryId); setDlFolderId(repository.getDlFolderId()); setGroupId(repository.getGroupId()); setRepositoryId(repository.getRepositoryId()); } catch (Exception e) { } }