Search in sources :

Example 11 with Project

use of com.thinkbiganalytics.metadata.api.project.Project in project kylo by Teradata.

the class JcrProjectProvider method getProjectMembersWithRoleById.

@Override
public Set<UsernamePrincipal> getProjectMembersWithRoleById(String id, String rolename) {
    Set<UsernamePrincipal> users = Sets.newHashSet();
    Project project = findById(new JcrProject.ProjectId(id));
    return getProjectMembersWithRole(project, rolename);
}
Also used : UsernamePrincipal(com.thinkbiganalytics.security.UsernamePrincipal) JcrProject(com.thinkbiganalytics.metadata.modeshape.project.JcrProject) JcrProject(com.thinkbiganalytics.metadata.modeshape.project.JcrProject) Project(com.thinkbiganalytics.metadata.api.project.Project)

Aggregations

Project (com.thinkbiganalytics.metadata.api.project.Project)11 Test (org.testng.annotations.Test)6 JcrProject (com.thinkbiganalytics.metadata.modeshape.project.JcrProject)4 UsernamePrincipal (com.thinkbiganalytics.security.UsernamePrincipal)3 Node (javax.jcr.Node)2 RepositoryException (javax.jcr.RepositoryException)2 ImmutableSet (com.google.common.collect.ImmutableSet)1 Sets (com.google.common.collect.Sets)1 ProjectAccessControl (com.thinkbiganalytics.metadata.api.project.security.ProjectAccessControl)1 RoleMembership (com.thinkbiganalytics.metadata.api.security.RoleMembership)1 BaseJcrProvider (com.thinkbiganalytics.metadata.modeshape.BaseJcrProvider)1 JcrMetadataAccess (com.thinkbiganalytics.metadata.modeshape.JcrMetadataAccess)1 MetadataRepositoryException (com.thinkbiganalytics.metadata.modeshape.MetadataRepositoryException)1 JcrEntity (com.thinkbiganalytics.metadata.modeshape.common.JcrEntity)1 ProjectPaths (com.thinkbiganalytics.metadata.modeshape.project.ProjectPaths)1 JcrAllowedActions (com.thinkbiganalytics.metadata.modeshape.security.action.JcrAllowedActions)1 JcrQueryUtil (com.thinkbiganalytics.metadata.modeshape.support.JcrQueryUtil)1 JcrUtil (com.thinkbiganalytics.metadata.modeshape.support.JcrUtil)1 AccessController (com.thinkbiganalytics.security.AccessController)1 AllowedActions (com.thinkbiganalytics.security.action.AllowedActions)1