Interface OsidSourceableForm
- All Superinterfaces:
Identifiable, OsidForm, Suppliable
- All Known Subinterfaces:
AcademyBatchForm, AcademyForm, AddressBookBatchForm, AddressBookForm, AgencyBatchForm, AgencyForm, AgentBatchForm, AntimatroidForm, AssetBatchForm, AssetForm, AuctionBatchForm, AuctionForm, AuctionHouseBatchForm, AuctionHouseForm, AuditForm, BallotBatchForm, BallotForm, BankBatchForm, BankForm, BillingBatchForm, BillingForm, BinBatchForm, BinForm, BlogBatchForm, BlogForm, BookBatchForm, BookForm, BrokerBatchForm, BrokerForm, BudgetBatchForm, BudgetEntryBatchForm, BusinessBatchForm, BusinessBatchForm, BusinessForm, BusinessForm, CalendarBatchForm, CalendarForm, CampusBatchForm, CampusForm, CatalogForm, CatalogueBatchForm, CatalogueForm, ChecklistBatchForm, ChecklistForm, CompositionBatchForm, CompositionForm, ConfigurationBatchForm, ConfigurationForm, ConvocationBatchForm, ConvocationForm, CookbookBatchForm, CookbookForm, CourseCatalogBatchForm, CourseCatalogForm, DepotBatchForm, DepotForm, DictionaryBatchForm, DictionaryForm, DirectoryForm, DispatchBatchForm, DispatchForm, DistributorBatchForm, DistributorForm, EngineForm, EngineForm, EntryBatchForm, EntryForm, FamilyBatchForm, FamilyForm, ForumBatchForm, ForumForm, FoundryBatchForm, FoundryForm, FrontOfficeBatchForm, FrontOfficeForm, GradebookBatchForm, GradebookForm, GraphBatchForm, GraphForm, HierarchyForm, InquestBatchForm, InquestForm, IssueBatchForm, IssueForm, JobBatchForm, JobForm, JournalBatchForm, JournalForm, LogBatchForm, LogForm, MailboxBatchForm, MailboxForm, MapBatchForm, MapForm, ObjectiveBankBatchForm, ObjectiveBankForm, OfficeBatchForm, OfficeForm, OntologyBatchForm, OntologyForm, OsidCatalogForm, OsidGovernatorForm, OublietteBatchForm, OublietteForm, PackageBatchForm, PackageForm, PollsBatchForm, PollsForm, PoolBatchForm, PoolForm, PostBatchForm, PostEntryBatchForm, PressBatchForm, PressForm, ProcessBatchForm, ProcessForm, ProcessForm, ProfileBatchForm, ProfileForm, PublisherBatchForm, PublisherForm, QueueBatchForm, QueueBatchForm, QueueForm, QueueForm, RaceBatchForm, RaceForm, RealmBatchForm, RealmForm, RecipeBatchForm, RecipeForm, RepositoryBatchForm, RepositoryForm, StoreBatchForm, StoreForm, SystemBatchForm, SystemForm, UtilityBatchForm, UtilityForm, VaultBatchForm, VaultForm, WarehouseForm
This form is used to create and update sourceables.
-
Method Summary
Modifier 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.Methods inherited from interface Identifiable
getId, isCurrentMethods 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
-
getProviderMetadata
Metadata getProviderMetadata()Gets the metadata for a provider.- Returns:
- metadata for the provider
- Compliance:
mandatory- This method must be implemented.
-
setProvider
Sets a provider.- Parameters:
providerId- the new provider- Throws:
InvalidArgumentException-providerIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-providerIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearProvider
void clearProvider()Removes the provider.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getBrandingMetadata
Metadata getBrandingMetadata()Gets the metadata for the asset branding.- Returns:
- metadata for the asset branding.
- Compliance:
mandatory- This method must be implemented.
-
setBranding
Sets the branding.- Parameters:
assetIds- the new assets- Throws:
InvalidArgumentException-assetIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-assetIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearBranding
void clearBranding()Removes the branding.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getLicenseMetadata
Metadata getLicenseMetadata()Gets the metadata for the license.- Returns:
- metadata for the license
- Compliance:
mandatory- This method must be implemented.
-
setLicense
Sets the license.- Parameters:
license- the new license- Throws:
InvalidArgumentException-licenseis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-licenseisnull- Compliance:
mandatory- This method must be implemented.
-
clearLicense
void clearLicense()Removes the license.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-