Search in sources :

Example 6 with NamespaceRole

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

the class RoleProvider method modelCreator.

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

Example 7 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 8 with NamespaceRole

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

the class RoleProvider method namespaceAdmin.

public static NamespaceRole namespaceAdmin() {
    NamespaceRole namespace_admin = new NamespaceRole();
    namespace_admin.setName("namespace_admin");
    namespace_admin.setPrivileges(7);
    namespace_admin.setRole(32);
    return namespace_admin;
}
Also used : NamespaceRole(org.eclipse.vorto.repository.domain.NamespaceRole)

Example 9 with NamespaceRole

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

the class RoleProvider method modelReviewer.

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

Example 10 with NamespaceRole

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

the class RoleProvider method modelCreator.

public static NamespaceRole modelCreator() {
    NamespaceRole model_creator = new NamespaceRole();
    model_creator.setName("model_creator");
    model_creator.setPrivileges(3);
    model_creator.setRole(2);
    return model_creator;
}
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