@Inject public MergeMetadataCapabilityDescriptor() { formFields = Lists.<FormField>newArrayList( new RepositoryCombobox( REPOSITORY_ID, messages.repositoryLabel(), messages.repositoryHelp(), FormField.MANDATORY ).includingAnyOfFacets(GroupRepository.class) ); }
@Inject public ProxyMetadataCapabilityDescriptor() { formFields = Lists.<FormField>newArrayList( new RepositoryCombobox( REPOSITORY_ID, messages.repositoryLabel(), messages.repositoryHelp(), FormField.MANDATORY ).includingAnyOfFacets(MavenProxyRepository.class) ); }
@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 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 ); } }
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) ); } }
new RepositoryCombobox( REPOSITORY_ID, messages.repositoryLabel(), messages.repositoryHelp(), FormField.MANDATORY ).includingAnyOfFacets(MavenHostedRepository.class), new TextAreaFormField( GenerateMetadataCapabilityConfiguration.ALIASES,
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)); } }