public interface DirectionForm extends OsidObjectForm, OsidSubjugateableForm
This is the form for creating and updating Directions.
Like all OsidForm
objects, various data elements may be set
here for use in the create and update methods in the
DirectionAdminSession.
For each data element that may be set,
metadata may be examined to provide display hints or data constraints.
Modifier and Type | Method and Description |
---|---|
void |
clearAssets()
Removes the assets.
|
void |
clearEstimatedDuration()
Removes the estimated duration.
|
void |
clearProcedures()
Removes the procedures.
|
Metadata |
getAssetsMetadata()
Gets the metadata for the assets.
|
DirectionFormRecord |
getDirectionFormRecord(Type directionRecordType)
Gets the
DirectionFormRecord corresponding to the given
direction record Type. |
Metadata |
getEstimatedDurationMetadata()
Gets the metadata for the estimated duration.
|
Metadata |
getProceduresMetadata()
Gets the metadata for the procedures.
|
void |
setAssets(Id[] assetIds)
Sets the assets.
|
void |
setEstimatedDuration(Duration duration)
Sets the estimated duration.
|
void |
setProcedures(Id[] procedureIds)
Sets the procedures.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getProceduresMetadata()
mandatory
- This method must be implemented. void setProcedures(Id[] procedureIds)
procedureIds
- the new proceduresInvalidArgumentException
- procedureIds
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- procedureIds
is
null
mandatory
- This method must be implemented. void clearProcedures()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getEstimatedDurationMetadata()
mandatory
- This method must be implemented. void setEstimatedDuration(Duration duration)
duration
- the new estimated durationInvalidArgumentException
- duration
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- duration
is
null
mandatory
- This method must be implemented. void clearEstimatedDuration()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getAssetsMetadata()
mandatory
- This method must be implemented. void setAssets(Id[] assetIds)
assetIds
- the new assetsInvalidArgumentException
- assetIds
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- assetIds
is
null
mandatory
- This method must be implemented. void clearAssets()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. DirectionFormRecord getDirectionFormRecord(Type directionRecordType) throws OperationFailedException, PermissionDeniedException
DirectionFormRecord
corresponding to the given
direction record Type.
directionRecordType
- a direction record typeNullArgumentException
- directionRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
hasRecordType(directionRecordType)
is false
mandatory
- This method must be implemented.