Interface ProcessForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidGovernatorForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidSourceableForm, Suppliable
- All Known Subinterfaces:
ProcessBatchForm
This is the form for creating and updating Processes . Like all
OsidForms , various data elements may be set here for use in the
create and update methods in the ProcessAdminSession . For each
data element that may be set, metadata may be examined to provide display
hints or data constraints.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the enabled flag.voidRemoves the initial state.voidRemoves the initial step.voidRemoves the owners.Gets the metadata for the enabled flag.Gets the metadata for the initial state.Gets the metadata for the initial step.Gets the metadata for the owners.getProcessFormRecord(Type processRecordType) Gets theProcessFormRecordcorresponding to the given process recordType.voidsetEnabled(boolean enabled) Sets the enabled flag.voidsetInitialState(Id stateId) Sets the initial state.voidsetInitialStep(Id stepId) Sets the initial step.voidSets the owners.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.Methods inherited from interface OsidOperableForm
clearDisabled, getDisabledMetadata, setDisabledModifier and TypeMethodDescriptionvoidRemoves the administratively disabled flag.Gets the metadata for the disabled flag.voidsetDisabled(boolean disabled) Sets the administratively disabled flag.Methods inherited from interface OsidSourceableForm
clearBranding, clearLicense, clearProvider, getBrandingMetadata, getLicenseMetadata, getProviderMetadata, setBranding, setLicense, setProviderModifier and TypeMethodDescriptionvoidRemoves the branding.voidRemoves the license.voidRemoves the provider.Gets the metadata for the asset branding.Gets the metadata for the license.Gets the metadata for a provider.voidsetBranding(Id[] assetIds) Sets the branding.voidsetLicense(String license) Sets the license.voidsetProvider(Id providerId) Sets a provider.
-
Method Details
-
getOwnersMetadata
Metadata getOwnersMetadata()Gets the metadata for the owners.- Returns:
- metadata for the owners
- Compliance:
mandatory- This method must be implemented.
-
setOwners
Sets the owners.- Parameters:
ownerIds- the new owners- Throws:
InvalidArgumentException-ownerIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-ownerIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearOwners
void clearOwners()Removes the owners.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getEnabledMetadata
Metadata getEnabledMetadata()Gets the metadata for the enabled flag.- Specified by:
getEnabledMetadatain interfaceOsidOperableForm- Returns:
- metadata for the enabled flag
- Compliance:
mandatory- This method must be implemented.
-
setEnabled
void setEnabled(boolean enabled) Sets the enabled flag.- Specified by:
setEnabledin interfaceOsidOperableForm- Parameters:
enabled- the new enabled flag- Throws:
InvalidArgumentException-enabledis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearEnabled
void clearEnabled()Removes the enabled flag.- Specified by:
clearEnabledin interfaceOsidOperableForm- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getInitialStepMetadata
Metadata getInitialStepMetadata()Gets the metadata for the initial step.- Returns:
- metadata for the initial step
- Compliance:
mandatory- This method must be implemented.
-
setInitialStep
Sets the initial step.- Parameters:
stepId- the new initial step- Throws:
InvalidArgumentException-stepIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-stepIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearInitialStep
void clearInitialStep()Removes the initial step.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getInitialStateMetadata
Metadata getInitialStateMetadata()Gets the metadata for the initial state.- Returns:
- metadata for the initial state
- Compliance:
mandatory- This method must be implemented.
-
setInitialState
Sets the initial state.- Parameters:
stateId- the new initial state- Throws:
InvalidArgumentException-stateIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-stateIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearInitialState
void clearInitialState()Removes the initial state.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getProcessFormRecord
Gets theProcessFormRecordcorresponding to the given process recordType.- Parameters:
processRecordType- a process record type- Returns:
- the process form record
- Throws:
NullArgumentException-processRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(processRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-