Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The JSMA namespace provides the following methods:

string[] namespace.categoryUuids

Returns a string array of category uuids of the namespace

Example

Code Block
languagejs
linenumberstrue
... 
namespace.categoryUuids
...

string[] namespace.contentUuids

Returns a string array of content uuids of the namespace

Example

Code Block
languagejs
linenumberstrue
... 
namespace.contentUuids
...

...

Returns an integer array of field ids of the namespace

Example

Code Block
languagejs
linenumberstrue
... 
namespace.fileIds
...

string[] namespace.fileUuids

Returns a string array of file uuids of the namespace

Example

Code Block
languagejs
linenumberstrue
... 
namespace.fileUuids
...

int namespace.id

Returns the id of the namespace

Example

Code Block
languagejs
linenumberstrue
... 
namespace.id
...

...

Returns a boolean depending on whether the namespace is sealed

Example

Code Block
languagejs
linenumberstrue
... 
namespace.isSealed
...

...

Returns the name of the namespace

Example

Code Block
languagejs
linenumberstrue
... 
namespace.name
...

...

Returns an integer array of portal ids of the namespace

Example

Code Block
languagejs
linenumberstrue
... 
namespace.portalIds
...

...

Warning

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

Code Block
languagejs
linenumberstrue
... 
namespace.portalUuids
...

int[] namespace.productIds

Returns an integer array of product ids of the namespace

Example

Code Block
languagejs
linenumberstrue
... 
namespace.productIds
...

...

Warning

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

Code Block
languagejs
linenumberstrue
... 
namespace.productUuids
...