You can publish a local library at the time of creation to enable other libraries to subscribe and use the library content.
Procedure
- Retrieve the LocalLibrary service.
- Create a PublishInfo instance to define how the library is published.
- Specify the authentication method to be used by a subscribed library to authenticate to the local library.
You can enable either basic authentication or no authentication on the library. Basic authentication requires a user name and password.
- (Optional) If you publish the library with basic authentication, you must specify a user name and password for the PublishInfo instance, which must be used for authentication.
Important: Use the predefined user name
vcsp or leave the user name undefined. You must set only a password to protect the library.
- Create a LibraryModel instance and configure the instance.
- Set the library type to local and use the configured PublishInfo instance to set the library to published.
- Define where the content of the local library is stored by using the StorageBacking class.
- Create a published local library.