コード例 #1
0
  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) {
    }
  }
コード例 #2
0
  @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) {
    }
  }