@Inject public ReindexNpmRepositoryTaskDescriptor(final NodeAccess nodeAccess) { super(TYPE_ID, ReindexNpmRepositoryTask.class, "Repair - Reconcile npm /-/v1/search metadata", VISIBLE, EXPOSED, new RepositoryCombobox( REPOSITORY_NAME_FIELD_ID, "Repository", "Select the npm repository to reconcile", true ).includingAnyOfFacets(NpmSearchFacet.class).includeAnEntryForAllRepositories(), nodeAccess.isClustered() ? newMultinodeFormField().withInitialValue(true) : null ); } }
@Inject public P2RepositoryAggregatorCapabilityDescriptor() { formFields = Lists.<FormField>newArrayList( new RepositoryCombobox(REPOSITORY, messages.repositoryLabel(), messages.repositoryHelp(), FormField.MANDATORY) .excludingAnyOfFacets(GroupRepository.class) ); }
@Inject public RebuildBrowseNodesTaskDescriptor(final NodeAccess nodeAccess) { super(TYPE_ID, RebuildBrowseNodesTask.class, "Repair - Rebuild repository browse", VISIBLE, EXPOSED, new RepositoryCombobox(REPOSITORY_NAME_FIELD_ID, "Repository", "Select the repository to rebuild browse tree", true).excludingAnyOfTypes(GroupType.NAME).includeAnEntryForAllRepositories(), nodeAccess.isClustered() ? newLimitNodeFormField() : null); } }
public UnpublishMavenIndexTaskDescriptor() { super(TYPE_ID, UnpublishMavenIndexTask.class, "Maven - Unpublish Maven Indexer files", VISIBLE, EXPOSED, new RepositoryCombobox( REPOSITORY_NAME_FIELD_ID, "Repository", "Select the Maven repository to remove indexes for", true ).includingAnyOfFormats(Maven2Format.NAME).includeAnEntryForAllRepositories() ); } }
@Inject public MergeMetadataCapabilityDescriptor() { formFields = Lists.<FormField>newArrayList( new RepositoryCombobox( REPOSITORY_ID, messages.repositoryLabel(), messages.repositoryHelp(), FormField.MANDATORY ).includingAnyOfFacets(GroupRepository.class) ); }
public RemoveSnapshotsTaskDescriptor() { super(TYPE_ID, RemoveSnapshotsTask.class, "Maven - Delete SNAPSHOT", VISIBLE, EXPOSED, new RepositoryCombobox(REPOSITORY_NAME_FIELD_ID, "Repository", "Select the Maven repository or repository group to remove snapshots from.", true).includingAnyOfFacets(RemoveSnapshotsFacet.class) .excludingAnyOfVersionPolicies(VersionPolicy.RELEASE.name()) .includeAnEntryForAllRepositories(), new NumberTextFormField(MINIMUM_SNAPSHOT_RETAINED_COUNT, "Minimum snapshot count", "Minimum number of snapshots to keep for one GAV.", true).withInitialValue(1).withMinimumValue(-1), new NumberTextFormField(SNAPSHOT_RETENTION_DAYS, "Snapshot retention (days)", "Delete all snapshots older than this, provided we still keep the minimum number specified.", true).withInitialValue(30).withMinimumValue(0), new CheckboxFormField(REMOVE_IF_RELEASED, "Remove if released", "Delete all snapshots that have a corresponding release", false), new NumberTextFormField(GRACE_PERIOD, "Grace period after release (days)", "The grace period during which snapshots with an associated release will not be deleted.", false).withMinimumValue(0)); } }
VISIBLE, EXPOSED, new RepositoryCombobox( REPOSITORY_NAME_FIELD_ID, "Repository", "Select the hosted Maven repository to rebuild metadata", true ).includingAnyOfFormats(Maven2Format.NAME).includingAnyOfTypes(HostedType.NAME) .includeAnEntryForAllRepositories(), new StringTextFormField( GROUPID_FIELD_ID,
public RepositoryAdminPrivilegeDescriptor() { super(TYPE); this.formFields = ImmutableList.of( new StringTextFormField( P_FORMAT, messages.format(), messages.formatHelp(), FormField.MANDATORY ), new RepositoryCombobox( P_REPOSITORY, messages.repository(), messages.repositoryHelp(), true ).includeAnEntryForAllRepositories(), new StringTextFormField( P_ACTIONS, messages.actions(), messages.actionsHelp(), FormField.MANDATORY ) ); }
public RepositoryContentSelectorPrivilegeDescriptor() { super(TYPE); this.formFields = ImmutableList.of( new SelectorComboFormField( P_CONTENT_SELECTOR, messages.contentSelector(), messages.contentSelectorHelp(), FormField.MANDATORY ), new RepositoryCombobox( P_REPOSITORY, messages.repository(), messages.repositoryHelp(), true ).includeEntriesForAllFormats(), new StringTextFormField( P_ACTIONS, messages.actions(), messages.actionsHelp(), FormField.MANDATORY ) ); }
@Inject public ProxyMetadataCapabilityDescriptor() { formFields = Lists.<FormField>newArrayList( new RepositoryCombobox( REPOSITORY_ID, messages.repositoryLabel(), messages.repositoryHelp(), FormField.MANDATORY ).includingAnyOfFacets(MavenProxyRepository.class) ); }
public PublishMavenIndexTaskDescriptor() { super(TYPE_ID, PublishMavenIndexTask.class, "Maven - Publish Maven Indexer files", VISIBLE, EXPOSED, new RepositoryCombobox( REPOSITORY_NAME_FIELD_ID, "Repository", "Select the Maven repository to publish indexer files for", true ).includingAnyOfFormats(Maven2Format.NAME).includeAnEntryForAllRepositories() ); } }
public RepositoryViewPrivilegeDescriptor() { super(TYPE); this.formFields = ImmutableList.of( new StringTextFormField( P_FORMAT, messages.format(), messages.formatHelp(), FormField.MANDATORY ), new RepositoryCombobox( P_REPOSITORY, messages.repository(), messages.repositoryHelp(), true ).includeAnEntryForAllRepositories(), new StringTextFormField( P_ACTIONS, messages.actions(), messages.actionsHelp(), FormField.MANDATORY ) ); }
@Inject public RebuildIndexTaskDescriptor(final NodeAccess nodeAccess) { super(TYPE_ID, RebuildIndexTask.class, "Repair - Rebuild repository search", VISIBLE, EXPOSED, new RepositoryCombobox( REPOSITORY_NAME_FIELD_ID, "Repository", "Select the repository to rebuild index", true ).includingAnyOfFacets(SearchFacet.class).includeAnEntryForAllRepositories(), nodeAccess.isClustered() ? newMultinodeFormField().withInitialValue(true) : null ); } }
@Inject public GenerateMetadataCapabilityDescriptor() { formFields = Lists.<FormField>newArrayList( new RepositoryCombobox( REPOSITORY_ID, messages.repositoryLabel(), messages.repositoryHelp(), FormField.MANDATORY ).includingAnyOfFacets(MavenHostedRepository.class), new TextAreaFormField( GenerateMetadataCapabilityConfiguration.ALIASES,
@Inject public P2MetadataGeneratorCapabilityDescriptor() { formFields = Lists.<FormField>newArrayList( new RepositoryCombobox(REPOSITORY, messages.repositoryLabel(), messages.repositoryHelp(), FormField.MANDATORY) .excludingAnyOfFacets(GroupRepository.class) ); }
public PurgeUnusedTaskDescriptor() { super(TYPE_ID, PurgeUnusedTask.class, TASK_NAME, VISIBLE, EXPOSED, new RepositoryCombobox( REPOSITORY_NAME_FIELD_ID, "Repository", "Select the repository to purge components/assets from", FormField.MANDATORY ).includingAnyOfFacets(PurgeUnusedFacet.class).includeAnEntryForAllRepositories(), new NumberTextFormField( LAST_USED_FIELD_ID, "Last used in days", "Purge all components and assets that were last used before given number of days", FormField.MANDATORY ).withInitialValue(LAST_USED_INIT_VALUE).withMinimumValue(LAST_USED_MIN_VALUE) ); } }
public PurgeMavenUnusedSnapshotsTaskDescriptor() { super(TYPE_ID, PurgeMavenUnusedSnapshotsTask.class, TASK_NAME, VISIBLE, EXPOSED, new RepositoryCombobox( REPOSITORY_NAME_FIELD_ID, "Repository", "Select the repository to delete unused snapshot versions from", FormField.MANDATORY ).includingAnyOfFacets(PurgeUnusedSnapshotsFacet.class).includeAnEntryForAllRepositories(), new NumberTextFormField( LAST_USED_FIELD_ID, "Last used in days", "Delete all snapshots that were last used before given number of days", FormField.MANDATORY ).withInitialValue(LAST_USED_INIT_VALUE).withMinimumValue(LAST_USED_MIN_VALUE) ); } }