org.sonatype.nexus.repository.security.ContentPermissionChecker Java Examples

The following examples show how to use org.sonatype.nexus.repository.security.ContentPermissionChecker. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BrowseServiceImpl.java    From nexus-public with Eclipse Public License 1.0 6 votes vote down vote up
@Inject
public BrowseServiceImpl(@Named(GroupType.NAME) final Type groupType,
                         final ComponentEntityAdapter componentEntityAdapter,
                         final VariableResolverAdapterManager variableResolverAdapterManager,
                         final ContentPermissionChecker contentPermissionChecker,
                         final AssetEntityAdapter assetEntityAdapter,
                         final BrowseAssetIterableFactory browseAssetIterableFactory,
                         final BrowseAssetsSqlBuilder browseAssetsSqlBuilder,
                         final BrowseComponentsSqlBuilder browseComponentsSqlBuilder,
                         final BucketStore bucketStore,
                         final RepositoryManager repositoryManager)
{
  this.groupType = checkNotNull(groupType);
  this.componentEntityAdapter = checkNotNull(componentEntityAdapter);
  this.variableResolverAdapterManager = checkNotNull(variableResolverAdapterManager);
  this.contentPermissionChecker = checkNotNull(contentPermissionChecker);
  this.assetEntityAdapter = checkNotNull(assetEntityAdapter);
  this.browseAssetIterableFactory = checkNotNull(browseAssetIterableFactory);
  this.browseAssetsSqlBuilder = checkNotNull(browseAssetsSqlBuilder);
  this.browseComponentsSqlBuilder = checkNotNull(browseComponentsSqlBuilder);
  this.bucketStore = checkNotNull(bucketStore);
  this.repositoryManager = checkNotNull(repositoryManager);
}
 
Example #2
Source File: MavenUploadHandler.java    From nexus-public with Eclipse Public License 1.0 6 votes vote down vote up
@Inject
public MavenUploadHandler(
    final Maven2MavenPathParser parser,
    @Named(Maven2Format.NAME) final VariableResolverAdapter variableResolverAdapter,
    final ContentPermissionChecker contentPermissionChecker,
    final VersionPolicyValidator versionPolicyValidator,
    final MavenPomGenerator mavenPomGenerator,
    final Set<UploadDefinitionExtension> uploadDefinitionExtensions)
{
  super(uploadDefinitionExtensions);
  this.parser = parser;
  this.variableResolverAdapter = variableResolverAdapter;
  this.contentPermissionChecker = contentPermissionChecker;
  this.versionPolicyValidator = versionPolicyValidator;
  this.mavenPomGenerator = mavenPomGenerator;
}
 
Example #3
Source File: DeleteFolderServiceImpl.java    From nexus-public with Eclipse Public License 1.0 6 votes vote down vote up
@Inject
public DeleteFolderServiceImpl(
    final BrowseNodeStore<EntityId> browseNodeStore,
    final BrowseNodeConfiguration configuration,
    final AssetStore assetStore,
    final ContentPermissionChecker contentPermissionChecker,
    final VariableResolverAdapterManager variableResolverAdapterManager,
    final SecurityHelper securityHelper)
{
  this.browseNodeStore = checkNotNull(browseNodeStore);
  this.configuration = checkNotNull(configuration);
  this.assetStore = checkNotNull(assetStore);
  this.contentPermissionChecker = checkNotNull(contentPermissionChecker);
  this.variableResolverAdapterManager = checkNotNull(variableResolverAdapterManager);
  this.securityHelper = checkNotNull(securityHelper);
}
 
Example #4
Source File: CocoapodsSecurityFacet.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public CocoapodsSecurityFacet(final CocoapodsFormatSecurityContributor securityResource,
                              @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                              final ContentPermissionChecker contentPermissionChecker)
{
  super(securityResource, variableResolverAdapter, contentPermissionChecker);
}
 
Example #5
Source File: RawSecurityFacet.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public RawSecurityFacet(final RawFormatSecurityContributor securityContributor,
                        @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                        final ContentPermissionChecker contentPermissionChecker)
{
  super(securityContributor, variableResolverAdapter, contentPermissionChecker);
}
 
Example #6
Source File: RawUploadHandler.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public RawUploadHandler(final ContentPermissionChecker contentPermissionChecker,
                        @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                        final Set<UploadDefinitionExtension> uploadDefinitionExtensions)
{
  super(contentPermissionChecker, variableResolverAdapter, uploadDefinitionExtensions);
}
 
Example #7
Source File: ComposerSecurityFacet.java    From nexus-repository-composer with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ComposerSecurityFacet(final ComposerFormatSecurityContributor securityContributor,
                          @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                          final ContentPermissionChecker contentPermissionChecker)
{
  super(securityContributor, variableResolverAdapter, contentPermissionChecker);
}
 
Example #8
Source File: RawUploadHandlerTest.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected UploadHandler newRawUploadHandler(final ContentPermissionChecker contentPermissionChecker,
                                            final VariableResolverAdapter variableResolverAdapter,
                                            final Set<UploadDefinitionExtension> uploadDefinitionExtensions)
{
  return new RawUploadHandler(contentPermissionChecker, variableResolverAdapter, uploadDefinitionExtensions);
}
 
Example #9
Source File: GolangSecurityFacet.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public GolangSecurityFacet(final GolangFormatSecurityContributor securityResource,
                           @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                           final ContentPermissionChecker contentPermissionChecker)
{
  super(securityResource, variableResolverAdapter, contentPermissionChecker);
}
 
Example #10
Source File: ExampleSecurityFacet.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ExampleSecurityFacet(final ExampleFormatSecurityContributor securityContributor,
                            @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                            final ContentPermissionChecker contentPermissionChecker)
{
  super(securityContributor, variableResolverAdapter, contentPermissionChecker);
}
 
Example #11
Source File: MavenSecurityFacet.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public MavenSecurityFacet(final MavenFormatSecurityContributor securityContributor,
                          @Named(Maven2Format.NAME) final VariableResolverAdapter variableResolverAdapter,
                          final ContentPermissionChecker contentPermissionChecker)
{
  super(securityContributor, variableResolverAdapter, contentPermissionChecker);
}
 
Example #12
Source File: AptUploadHandler.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public AptUploadHandler(@Named("simple") final VariableResolverAdapter variableResolverAdapter,
                        final ContentPermissionChecker contentPermissionChecker,
                        final Set<UploadDefinitionExtension> uploadDefinitionExtensions)
{
  super(uploadDefinitionExtensions);
  this.variableResolverAdapter = variableResolverAdapter;
  this.contentPermissionChecker = contentPermissionChecker;
}
 
Example #13
Source File: AptSecurityFacet.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public AptSecurityFacet(
                        final AptFormatSecurityContributor securityResource,
                        @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                        final ContentPermissionChecker contentPermissionChecker) {
  super(securityResource, variableResolverAdapter, contentPermissionChecker);
}
 
Example #14
Source File: RawUploadHandlerTest.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected UploadHandler newRawUploadHandler(final ContentPermissionChecker contentPermissionChecker,
                                            final VariableResolverAdapter variableResolverAdapter,
                                            final Set<UploadDefinitionExtension> uploadDefinitionExtensions)
{
  return new RawUploadHandler(contentPermissionChecker, variableResolverAdapter, uploadDefinitionExtensions);
}
 
Example #15
Source File: OrientContentAuthHelper.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public OrientContentAuthHelper(final VariableResolverAdapterManager variableResolverAdapterManager,
                               final ContentPermissionChecker contentPermissionChecker)
{
  this.variableResolverAdapterManager = checkNotNull(variableResolverAdapterManager);
  this.contentPermissionChecker = checkNotNull(contentPermissionChecker);
}
 
Example #16
Source File: MaintenanceServiceImpl.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public MaintenanceServiceImpl(final ContentPermissionChecker contentPermissionChecker,
                              final VariableResolverAdapterManager variableResolverAdapterManager,
                              final DeleteFolderService deleteFolderService,
                              final RepositoryPermissionChecker repositoryPermissionChecker)
{
  this.contentPermissionChecker = checkNotNull(contentPermissionChecker);
  this.variableResolverAdapterManager = checkNotNull(variableResolverAdapterManager);
  this.deleteFolderService = checkNotNull(deleteFolderService);
  this.repositoryPermissionChecker = checkNotNull(repositoryPermissionChecker);
  this.executorService = NexusExecutorService.forCurrentSubject(Executors.newSingleThreadExecutor(
          new NexusThreadFactory("delete-path", "Delete path in Tree Browse View", Thread.MIN_PRIORITY)));
}
 
Example #17
Source File: DefaultSearchResultComponentGenerator.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public DefaultSearchResultComponentGenerator(final VariableResolverAdapterManager variableResolverAdapterManager,
                                             final RepositoryManager repositoryManager,
                                             final ContentPermissionChecker contentPermissionChecker)
{
  super(variableResolverAdapterManager, repositoryManager, contentPermissionChecker);
}
 
Example #18
Source File: SearchResultComponentGeneratorSupport.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
public SearchResultComponentGeneratorSupport(final VariableResolverAdapterManager variableResolverAdapterManager,
                                             final RepositoryManager repositoryManager,
                                             final ContentPermissionChecker contentPermissionChecker)
{
  this.variableResolverAdapterManager = checkNotNull(variableResolverAdapterManager);
  this.repositoryManager = checkNotNull(repositoryManager);
  this.contentPermissionChecker = checkNotNull(contentPermissionChecker);
}
 
Example #19
Source File: ContentAuthPluginLocator.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ContentAuthPluginLocator(final ContentPermissionChecker contentPermissionChecker,
                                final VariableResolverAdapterManager variableResolverAdapterManager,
                                final SearchSubjectHelper searchSubjectHelper,
                                final RepositoryManager repositoryManager,
                                @Named("${nexus.elasticsearch.contentAuthSleep:-false}") final boolean contentAuthSleep)
{
  ContentAuthPlugin.setDependencies(contentPermissionChecker, variableResolverAdapterManager,
      searchSubjectHelper, repositoryManager, contentAuthSleep);
}
 
Example #20
Source File: ContentAuthPlugin.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
public static void setDependencies(final ContentPermissionChecker contentPermissionChecker,
                                   final VariableResolverAdapterManager variableResolverAdapterManager,
                                   final SearchSubjectHelper searchSubjectHelper,
                                   final RepositoryManager repositoryManager,
                                   final boolean contentAuthSleep)
{
  ContentAuthPlugin.contentPermissionChecker = checkNotNull(contentPermissionChecker);
  ContentAuthPlugin.variableResolverAdapterManager = checkNotNull(variableResolverAdapterManager);
  ContentAuthPlugin.searchSubjectHelper = checkNotNull(searchSubjectHelper);
  ContentAuthPlugin.repositoryManager = checkNotNull(repositoryManager);
  ContentAuthPlugin.contentAuthSleep = contentAuthSleep;
}
 
Example #21
Source File: ContentAuthPluginScript.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
public ContentAuthPluginScript(final Subject subject,
                               final ContentPermissionChecker contentPermissionChecker,
                               final VariableResolverAdapterManager variableResolverAdapterManager,
                               final RepositoryManager repositoryManager,
                               final boolean contentAuthSleep)
{
  this.subject = checkNotNull(subject);
  this.contentPermissionChecker = checkNotNull(contentPermissionChecker);
  this.variableResolverAdapterManager = checkNotNull(variableResolverAdapterManager);
  this.repositoryManager = checkNotNull(repositoryManager);
  this.contentAuthSleep = contentAuthSleep;
}
 
Example #22
Source File: DatastoreContentAuthHelper.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public DatastoreContentAuthHelper(final VariableResolverAdapterManager variableResolverAdapterManager,
                               final ContentPermissionChecker contentPermissionChecker)
{
  this.variableResolverAdapterManager = checkNotNull(variableResolverAdapterManager);
  this.contentPermissionChecker = checkNotNull(contentPermissionChecker);
}
 
Example #23
Source File: CondaSecurityFacet.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public CondaSecurityFacet(final CondaFormatSecurityContributor securityResource,
                          @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                          final ContentPermissionChecker contentPermissionChecker)
{
  super(securityResource, variableResolverAdapter, contentPermissionChecker);
}
 
Example #24
Source File: P2SecurityFacet.java    From nexus-repository-p2 with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public P2SecurityFacet(final P2FormatSecurityContributor securityResource,
                      @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                      final ContentPermissionChecker contentPermissionChecker)
{
  super(securityResource, variableResolverAdapter, contentPermissionChecker);
}
 
Example #25
Source File: HelmSecurityFacet.java    From nexus-repository-helm with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public HelmSecurityFacet(
    final HelmFormatSecurityContributor securityResource,
    @Named("simple") final VariableResolverAdapter variableResolverAdapter,
    final ContentPermissionChecker contentPermissionChecker)
{
  super(securityResource, variableResolverAdapter, contentPermissionChecker);
}
 
Example #26
Source File: HelmUploadHandler.java    From nexus-repository-helm with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public HelmUploadHandler(
    final ContentPermissionChecker contentPermissionChecker,
    final HelmAttributeParser helmPackageParser,
    @Named("simple") final VariableResolverAdapter variableResolverAdapter,
    final Set<UploadDefinitionExtension> uploadDefinitionExtensions)
{
  super(uploadDefinitionExtensions);
  this.contentPermissionChecker = contentPermissionChecker;
  this.variableResolverAdapter = variableResolverAdapter;
  this.helmPackageParser = helmPackageParser;
}
 
Example #27
Source File: RSecurityFacet.java    From nexus-repository-r with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public RSecurityFacet(final RFormatSecurityContributor securityResource,
                      @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                      final ContentPermissionChecker contentPermissionChecker)
{
  super(securityResource, variableResolverAdapter, contentPermissionChecker);
}
 
Example #28
Source File: RUploadHandler.java    From nexus-repository-r with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public RUploadHandler(@Named("simple") final VariableResolverAdapter variableResolverAdapter,
                      final ContentPermissionChecker contentPermissionChecker,
                      final Set<UploadDefinitionExtension> uploadDefinitionExtensions)
{
  super(uploadDefinitionExtensions);
  this.variableResolverAdapter = variableResolverAdapter;
  this.contentPermissionChecker = contentPermissionChecker;
}
 
Example #29
Source File: ConanSecurityFacet.java    From nexus-repository-conan with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public ConanSecurityFacet(final ConanFormatSecurityContributor securityResource,
                          @Named("simple") final VariableResolverAdapter variableResolverAdapter,
                          final ContentPermissionChecker contentPermissionChecker)
{
  super(securityResource, variableResolverAdapter, contentPermissionChecker);
}
 
Example #30
Source File: AptUploadHandler.java    From nexus-repository-apt with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public AptUploadHandler(@Named("simple") final VariableResolverAdapter variableResolverAdapter,
                        final ContentPermissionChecker contentPermissionChecker,
                        final Set<UploadDefinitionExtension> uploadDefinitionExtensions)
{
  super(uploadDefinitionExtensions);
  this.variableResolverAdapter = variableResolverAdapter;
  this.contentPermissionChecker = contentPermissionChecker;
}