Interface AllocationForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, Suppliable
DirectoryEntryForm defines methods in common to both
FileForm and DirectoryForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the total files.voidClears the total space.getAllocationFormRecord(Type allocationRecordType) Gets theAllocationFormRecordcorresponding to the given allocation recordType.Gets the metadata for the total files.Gets the metadata for the total space.voidsetTotalFiles(long number) Sets the total files.voidsetTotalSpace(long bytes) Sets the total space.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.
-
Method Details
-
getTotalSpaceMetadata
Metadata getTotalSpaceMetadata()Gets the metadata for the total space.- Returns:
- metadata for the total space
- Compliance:
mandatory- This method must be implemented.
-
setTotalSpace
void setTotalSpace(long bytes) Sets the total space.- Parameters:
bytes- the new total space- Throws:
InvalidArgumentException-bytesis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearTotalSpace
void clearTotalSpace()Clears the total space.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getTotalFilesMetadata
Metadata getTotalFilesMetadata()Gets the metadata for the total files.- Returns:
- metadata for the total files
- Compliance:
mandatory- This method must be implemented.
-
setTotalFiles
void setTotalFiles(long number) Sets the total files.- Parameters:
number- the new total files- Throws:
InvalidArgumentException-numberis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearTotalFiles
void clearTotalFiles()Clears the total files.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getAllocationFormRecord
AllocationFormRecord getAllocationFormRecord(Type allocationRecordType) throws OperationFailedException Gets theAllocationFormRecordcorresponding to the given allocation recordType.- Parameters:
allocationRecordType- the allocation record type- Returns:
- the allocation form record
- Throws:
NullArgumentException-allocationRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(allocationRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-