Skip to main content

Shared Collections

Sharing collections is a way to make a collection available to all tenants. First of all, let's compare this operation with export and then import or pull import. When importing a collection, a user A can use the elements of the collection whose file has been created by another user B and the user B delivered that file, for instance my_collection.json, to the user A. In other words, the collection to be imported is available only to those users which got the file my_collection.json in advance.

On the other hand, a shared collection is available to every user, so all users will be able to import a shared collection to their tenants by using the Pull action. After pulling the shared collection, they can reuse its elements as they were created or they can be modified them according to the needs of a user in a particular tenant.

You can perform operations on shared collections using the Cenit IO API V2. To do this, see the specification of this API regarding shared collections.

Creating a Shared Collection​

In order to share a collection, you must access the Integration/Collections Menu, select the collection you want to share and press the Share button as shown below.

image

Then you need to configure the shared collection by specifying some attributes:

image

  • name: the name of the shared collection, a lowercase identifier

  • title(optional): a title for the shared collection

  • summary(optional): a short description of the shared collection

  • pull parameters(optional): a list of parameters that can be requested to the user when importing the shared collection into his(her) tenant.

After entering those fields, you must press the Share button

image

When the Share button is pressed, a task is enqueued for sharing the collection in an asynchronous way.

image

Use System Notifications to check for errors. If no errors occur, the collection will be shared and you will be notified as shown below

image

Then you can access the Integration/Shared Collections Menu and you can see the Shared Collection in the list:

image

When a Shared Collection is created, it is available in the Shared Collection Menu only in the tenants that belong to the same owner. For example, if we move to other tenant of the same user, the Shared Collection of the example, is available:

image

However, it will not be available to all the tenants until you perform the Cross action. You should notice the title in a purple background indicates the Shared Collection is only available in the tenants owned by the same user.

For making a Shared Collection available to all the tenants, you must select the Shared Collection and press the Cross button as shown below.

image

Then you need to select Shared to specify you want to cross the Shared Collection to all the tenants and press the Cross button in the bottom right as shown below. You should know that crossing a Shared Collection to all the tenants is only available to the users with the role "cross_shared". So, when Cenit IO is running in the cloud, only a few users may execute this action, the ones with permission for making a Shared Collection available to all the tenants. So, if you want to share a collection to all the tenants in the cloud app.cenit.io, you can send an email to support@cenit.io suggesting a collection to be tested and shared. When Cenit IO is running on premise and you want to perform this action, you must ensure the user in charge of crossing the Shared Collection has the right permissions (the role cross_shared) .

image

When the task execution for crossing the Shared Collection is completed, you will be notified with a view like the one below.

image

Then, you can see the Shared Collection with the title in a light-green background, which indicates it's now available to all the tenants.

image

Importing a Shared Collection​

When a Collection is shared, some of its resources becomes available to every tenant as well as the Shared Collection. For example, the algorithms inside the Shared Collection Jira are available in the tenant Ana & Joe Collections as you can see in the picture below. The check boxes in a green background refer to shared items.

image

However, some resources are not available until you import (pull) the Shared Collection into your tenant. For example, if we access the Authorization menu we can realize the authorization in the namespace Jira is not available as shown below.

image

So, you should not use a shared resource, like the algorithms in the Shared Collection Jira, unless you are sure it doesn't depends on other resource which might not be available. The best way of using a shared resource in you tenant is bringing the entire Shared Collection to your tenant. So, we strongly recommend to import a Shared Collection to your tenant prior to use any of the resources contained in that collection.

You can import a Shared Collection to your tenant by executing the Pull action to a Shared Collection. At first, let's explore the list of Collection in the tenant used as an example above.

image

For importing a Shared Collection to your tenant you need to access the Shared Collection Menu and select the Shared Collection, then press the button Pull. As you can see in the picture below, the Shared Collection Jira used as an example in the previous section, is now available to all tenants.

image

After pressing the button Pull, you need to press the button Play.

image

After a while you will be notified to make a review of the collection, so you need to press the button shown below to enter to the review window.

image

Then you need to press the button Review

image

In the next view you can explore all the elements in the collection, then you need to confirm the review by pressing the button at the bottom right:

image

After the pull process is completed, you will be notified as shown below.

image

Then you can access the Collections Menu and refresh the Collection List

image

And you can see the Collection in your tenant.

image

After importing a Shared Collection to your tenant, it will be available to be used, as well as every resource contained in the collection, for example, the authorization in the namespace Jira is now available as you can show below.

image

Every other resource in the collection is also available , including those algorithms we checked earlier they were available in the algorithm list before importing the Shared Collection.

image

Don't worry if some resources, like the algorithms, appear marked as shared resources (the ones with check boxes in a green background). You should keep in mind that a Shared Collection is usually used as a way of sharing the same logic with different tenants. Sharing the same logic allows similar usecases to be executed the same way in every tenant while the tenants isolates the data related to every particular solution. So, the shared elements are intended to be used just like they were shared, on its original version. Anyway, If you need to modify some of them in order to customize it according to your use case, you are free to do that and the modification only apply to the resource in your tenant, the original shared one remains unaltered.