本文整理了Java中org.sonatype.nexus.proxy.repository.Repository.isUserManaged
方法的一些代码示例,展示了Repository.isUserManaged
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.isUserManaged
方法的具体详情如下:
包路径:org.sonatype.nexus.proxy.repository.Repository
类名称: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() );
内容来源于网络,如有侵权,请联系作者删除!