createObjectInSession() Method
In CatalogService, use the createObjectInSession() method to create a Publisher object in catalog for a given user.
Tip:
If you have extensively used the createObject() or createObjectInSession() methods to dynamically create catalog objects, after the catalog objects are no longer required, clean up the catalog using deleteObject() or deleteObjectInSession() methods. Otherwise, the accumulation of the dynamically created catalog objects might cause severe catalog performance degradation issues.For more information about in-session methods, see About In-Session Methods.
Signature
String createObjectInSession(String folderAbsolutePathURL, String objectName, String objectType, String objectDescription, byte[] objectData, String bipSessionToken);
Parameters for createObjectInSession() Method
Parameter | Description |
---|---|
String folderAbsolutePathURL |
The absolute path to the folder in the catalog in which to place the new object. |
String objectName |
The name of the new object. |
String objectType |
The type of catalog object. Valid values are:
|
String objectDescription |
Specifies the description of the new object. |
byte[] objectData |
Publisher object in bytes. |
String bipSessionToken |
The proprietary token string generated for the user. With the bipSessionToken string, the user no longer needs to provide user credentials. The server can validate this token string and restore the session to perform needed operation. |