Publish a Library at
the Time of Creation
You can publish a
local library at the time of creation to enable other libraries to subscribe
and use the library content.
- Retrieve theLocalLibraryservice.
- Create aPublishInfoinstance 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.
- If you publish the library with basic authentication, you must specify a user name and password for thePublishInfoinstance, which must be used for authentication.Use the predefined user namevcspor leave the user name undefined. You must set only a password to protect the library.
- Create aLibraryModelinstance and configure the instance.
- Set the library type to local and use the configuredPublishInfoinstance to set the library to published.
- Define where the content of the local library is stored by using theStorageBackingclass.
- Create a published local library.