JSMA namespace
Overview
The JSMA namespace provides functionality for handling namespaces
What can JSMA namespace do for me?
You could easily use the JSMA namespace to edit a namespace
Index
Usage
reading data
Here is an example on how to read data from a JSMA namespace:
... namespace.contentUuids ...
Methods
The JSMA namespace provides the following methods:
string[] namespace.categoryUuids
Returns a string array of category uuids of the namespace
Example
... namespace.categoryUuids ...
string[] namespace.contentUuids
Returns a string array of content uuids of the namespace
Example
... namespace.contentUuids ...
int[] namespace.fileIds
Returns an integer array of field ids of the namespace
Example
... namespace.fileIds ...
string[] namespace.fileUuids
Returns a string array of file uuids of the namespace
Example
... namespace.fileUuids ...
int namespace.id
Returns the id of the namespace
Example
... namespace.id ...
Avoid usage of id
Ids change whenever a package is reimported. So please avoid using ids whenever possible. Also delivering contents to users by id might make it possible for users to flip through the references (and by that see contents of others possibly) by changing the ids in requests
bool namespace.isSealed
Returns a boolean depending on whether the namespace is sealed
Example
... namespace.isSealed ...
string namespace.name
Returns the name of the namespace
Example
... namespace.name ...
int[] namespace.portalIds
Returns an integer array of portal ids of the namespace
Example
... namespace.portalIds ...
Avoid usage of id
Ids change whenever a package is reimported. So please avoid using ids whenever possible. Also delivering contents to users by id might make it possible for users to flip through the references (and by that see contents of others possibly) by changing the ids in requests
string[] namespace.portalUuids
Returns a string array of portal uuids of the namespace
Example
... namespace.portalUuids ...
int[] namespace.productIds
Returns an integer array of product ids of the namespace
Example
... namespace.productIds ...
Avoid usage of id
Ids change whenever a package is reimported. So please avoid using ids whenever possible. Also delivering contents to users by id might make it possible for users to flip through the references (and by that see contents of others possibly) by changing the ids in requests
string[] namespace.productUuids
Returns a string array of product uuids of the namespace
Example
... namespace.productUuids ...