public interface CredentialForm extends OsidObjectForm
This is the form for creating and updating Credentials.
Like all OsidForm
objects, various data elements may be set
here for use in the create and update methods in the
CredentialAdminSession.
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 |
clearLifetime()
Removes the lifetime.
|
CredentialFormRecord |
getCredentialFormRecord(Type credentialRecordType)
Gets the
CredentialFormRecord corresponding to the
given course record Type. |
Metadata |
getLifetimeMetadata()
Gets the metadata for a credential lifetime.
|
void |
setLifetime(Duration lifetime)
Sets the lifetime.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getLifetimeMetadata()
mandatory
- This method must be implemented. void setLifetime(Duration lifetime)
lifetime
- the new lifetimeInvalidArgumentException
- lifetime
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- lifetime
is
null
mandatory
- This method must be implemented. void clearLifetime()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. CredentialFormRecord getCredentialFormRecord(Type credentialRecordType) throws OperationFailedException
CredentialFormRecord
corresponding to the
given course record Type.
credentialRecordType
- a course record typeNullArgumentException
- credentialRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(credentialRecordType)
is false
mandatory
- This method must be implemented.