org.sonatype.nexus.proxy.repository.Repository.isUserManaged()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中org.sonatype.nexus.proxy.repository.Repository.isUserManaged方法的一些代码示例,展示了Repository.isUserManaged的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.isUserManaged方法的具体详情如下:
包路径:org.sonatype.nexus.proxy.repository.Repository
类名称:Repository
方法名:isUserManaged

Repository.isUserManaged介绍

[英]If is user managed, the nexus core and nexus core UI handles the store. Thus, for reposes, users are allowed to edit/drop the repository.
[中]如果是用户管理的,nexus core和nexus core UI将处理存储。因此,对于repose,用户可以编辑/删除存储库。

代码示例

代码示例来源:origin: org.sonatype.nexus/nexus-app

public void deleteRepository( String id, boolean force )
  throws NoSuchRepositoryException, IOException, ConfigurationException, AccessDeniedException
{
  Repository repository = repositoryRegistry.getRepository( id );
  if ( !force && !repository.isUserManaged() )
  {
    throw new AccessDeniedException( "Not allowed to delete non-user-managed repository '" + id + "'." );
  }
  // delete the configuration
  nexusConfiguration.deleteRepository( id );
}

代码示例来源:origin: org.sonatype.nexus/nexus-proxy

if ( mapping.getMappedRepositories().contains( repo.getId() ) || !repo.isUserManaged() )
if ( mappedRepository.isUserManaged() )

代码示例来源:origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

if ((allReposes || repository.isUserManaged())
  && (includeGroups || !repository.getRepositoryKind().isFacetAvailable(GroupRepository.class))) {
 repoRes = new RepositoryListResource();
 repoRes.setUserManaged(repository.isUserManaged());

代码示例来源:origin: org.sonatype.nexus/nexus-rest-api

if ( ( allReposes || repository.isUserManaged() )
  && ( includeGroups || !repository.getRepositoryKind().isFacetAvailable( GroupRepository.class ) ) )
  repoRes.setUserManaged( repository.isUserManaged() );

相关文章