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.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 ...
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
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