Search in sources :

Example 11 with NamespaceRole

use of org.eclipse.vorto.repository.domain.NamespaceRole in project vorto by eclipse.

the class RoleProvider method modelPromoter.

public static NamespaceRole modelPromoter() {
    NamespaceRole model_promoter = new NamespaceRole();
    model_promoter.setName("model_promoter");
    model_promoter.setPrivileges(3);
    model_promoter.setRole(4);
    return model_promoter;
}
Also used : NamespaceRole(org.eclipse.vorto.repository.domain.NamespaceRole)

Example 12 with NamespaceRole

use of org.eclipse.vorto.repository.domain.NamespaceRole in project vorto by eclipse.

the class RoleProvider method modelPublisher.

public static NamespaceRole modelPublisher() {
    NamespaceRole model_publisher = new NamespaceRole();
    model_publisher.setName("model_publisher");
    model_publisher.setPrivileges(3);
    model_publisher.setRole(4);
    return model_publisher;
}
Also used : NamespaceRole(org.eclipse.vorto.repository.domain.NamespaceRole)

Example 13 with NamespaceRole

use of org.eclipse.vorto.repository.domain.NamespaceRole in project vorto by eclipse.

the class RoleProvider method modelViewer.

public static NamespaceRole modelViewer() {
    NamespaceRole model_viewer = new NamespaceRole();
    model_viewer.setName("model_viewer");
    model_viewer.setPrivileges(1);
    model_viewer.setRole(1);
    return model_viewer;
}
Also used : NamespaceRole(org.eclipse.vorto.repository.domain.NamespaceRole)

Aggregations

NamespaceRole (org.eclipse.vorto.repository.domain.NamespaceRole)13 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 IRole (org.eclipse.vorto.repository.domain.IRole)1 Namespace (org.eclipse.vorto.repository.domain.Namespace)1 Privilege (org.eclipse.vorto.repository.domain.Privilege)1 User (org.eclipse.vorto.repository.domain.User)1 Matchers.anyString (org.mockito.Matchers.anyString)1