public CheckboxFormField withInitialValue(final Boolean initialValue) { setInitialValue(initialValue); return this; } }
RestoreMetadataTaskDescriptor() { super(TYPE_ID, RestoreMetadataTask.class, messages.name(), VISIBLE, EXPOSED, new ComboboxFormField<String>( BLOB_STORE_NAME_FIELD_ID, messages.blobstoreNameLabel(), messages.blobstoreNameHelpText(), MANDATORY ).withStoreApi("coreui_Blobstore.read").withIdMapping("name"), new CheckboxFormField(DRY_RUN, messages.dryRunLabel(), messages.dryRunHelpText(), OPTIONAL).withInitialValue(false), new CheckboxFormField(RESTORE_BLOBS, messages.restoreBlobsLabel(), messages.restoreBlobsHelpText(), OPTIONAL).withInitialValue(true), new CheckboxFormField(UNDELETE_BLOBS, messages.undeleteBlobsLabel(), messages.undeleteBlobsHelpText(), OPTIONAL).withInitialValue(true), new CheckboxFormField(INTEGRITY_CHECK, messages.integrityCheckLabel(), messages.integrityCheckHelpText(), OPTIONAL).withInitialValue(true) ); } }
@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 ); } }
formFields.add( new CheckboxFormField( prop.getId(), prop.getName(), prop.getHelpText(), prop.isRequired() ) );
public BrandingCapabilityDescriptor() { formFields = Lists.<FormField>newArrayList( new CheckboxFormField( BrandingCapabilityConfiguration.HEADER_ENABLED, messages.headerEnabledLabel(), messages.headerEnabledHelp(), FormField.OPTIONAL ).withInitialValue(true), new TextAreaFormField( BrandingCapabilityConfiguration.HEADER_HTML, messages.headerHtmlLabel(), messages.headerHtmlHelp(), FormField.OPTIONAL ), new CheckboxFormField( BrandingCapabilityConfiguration.FOOTER_ENABLED, messages.footerEnabledLabel(), messages.footerEnabledHelp(), FormField.OPTIONAL ).withInitialValue(true), new TextAreaFormField( BrandingCapabilityConfiguration.FOOTER_HTML, messages.footerHtmlLabel(), messages.footerHtmlHelp(), FormField.OPTIONAL ) ); }
@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 ); } }
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)); } }
FormField.OPTIONAL ), new CheckboxFormField( GenerateMetadataCapabilityConfiguration.DELETE_PROCESSING, "Process deletes", + " (default true)", FormField.OPTIONAL ).withInitialValue(true), new NumberTextFormField( GenerateMetadataCapabilityConfiguration.DELETE_PROCESSING_DELAY,
public CheckboxFormField withInitialValue( final Boolean initialValue ) { setInitialValue( initialValue ); return this; }
false ), new CheckboxFormField( REBUILD_CHECKSUMS, "Rebuild checksums", "them if they are incorrect. This can significantly increase the time needed for this task.", OPTIONAL ).withInitialValue(false) );
FormField.MANDATORY ).withInitialValue(RaptureSettings.DEFAULT_TITLE), new CheckboxFormField( SettingsCapabilityConfiguration.DEBUG_ALLOWED, messages.debugAllowedLabel(), messages.debugAllowedHelp(), FormField.OPTIONAL ).withInitialValue(RaptureSettings.DEFAULT_DEBUG_ALLOWED), new NumberTextFormField( SettingsCapabilityConfiguration.STATUS_INTERVAL_AUTHENTICATED,