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) ); } }
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 ) ); }
FormField.OPTIONAL ), new CheckboxFormField( GenerateMetadataCapabilityConfiguration.DELETE_PROCESSING, "Process deletes",
formFields.add( new CheckboxFormField( prop.getId(), prop.getName(), prop.getHelpText(), prop.isRequired() ) );
false ), new CheckboxFormField( REBUILD_CHECKSUMS, "Rebuild checksums",
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.MANDATORY ).withInitialValue(RaptureSettings.DEFAULT_TITLE), new CheckboxFormField( SettingsCapabilityConfiguration.DEBUG_ALLOWED, messages.debugAllowedLabel(),