test_class.declarator: userNamespaceAuthorizationHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private UserNamespaceAuthorizationHelper userNamespaceAuthorizationHelper;
test_class.type: UserNamespaceAuthorizationHelper
test_class.var_name: userNamespaceAuthorizationHelper
test_class.declarator: namespaceDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private NamespaceDao namespaceDao;
test_class.type: NamespaceDao
test_class.var_name: namespaceDao
test_class.declarator: configurationHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ConfigurationHelper configurationHelper;
test_class.type: ConfigurationHelper
test_class.var_name: configurationHelper
test_class.declarator: userDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UserDao userDao;
test_class.type: UserDao
test_class.var_name: userDao
test_class.declarator: userNamespaceAuthorizationDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UserNamespaceAuthorizationDao userNamespaceAuthorizationDao;
test_class.type: UserNamespaceAuthorizationDao
test_class.var_name: userNamespaceAuthorizationDao
test_class.declarator: wildcardHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private WildcardHelper wildcardHelper;
test_class.type: WildcardHelper
test_class.var_name: wildcardHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/UserNamespaceAuthorizationHelperTest.java
test_class.identifier: UserNamespaceAuthorizationHelperTest
test_case.body: @Test
      public void testGetNamespacePermissions()
      {
          UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity = new UserNamespaceAuthorizationEntity();
          userNamespaceAuthorizationEntity.setExecutePermission(true);
          userNamespaceAuthorizationEntity.setGrantPermission(true);
          userNamespaceAuthorizationEntity.setReadPermission(true);
          userNamespaceAuthorizationEntity.setWritePermission(true);
          userNamespaceAuthorizationEntity.setWriteAttributePermission(true);
          userNamespaceAuthorizationEntity.setWriteDescriptiveContentPermission(true);
  
          List<NamespacePermissionEnum> namespacePermissions = userNamespaceAuthorizationHelper.getNamespacePermissions(userNamespaceAuthorizationEntity);
  
          assertThat(namespacePermissions.contains(NamespacePermissionEnum.EXECUTE), is(true));
          assertThat(namespacePermissions.contains(NamespacePermissionEnum.GRANT), is(true));
          assertThat(namespacePermissions.contains(NamespacePermissionEnum.READ), is(true));
          assertThat(namespacePermissions.contains(NamespacePermissionEnum.WRITE), is(true));
          assertThat(namespacePermissions.contains(NamespacePermissionEnum.WRITE_ATTRIBUTE), is(true));
          assertThat(namespacePermissions.contains(NamespacePermissionEnum.WRITE_DESCRIPTIVE_CONTENT), is(true));
      }
test_case.class_method_signature: UserNamespaceAuthorizationHelperTest.testGetNamespacePermissions()
test_case.full_signature: @Test public void testGetNamespacePermissions()
test_case.identifier: testGetNamespacePermissions
test_case.invocations: setExecutePermission setGrantPermission setReadPermission setWritePermission setWriteAttributePermission setWriteDescriptiveContentPermission getNamespacePermissions assertThat contains is assertThat contains is assertThat contains is assertThat contains is assertThat contains is assertThat contains is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetNamespacePermissions()
focal_class.declarator: configurationHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ConfigurationHelper configurationHelper;
focal_class.type: ConfigurationHelper
focal_class.var_name: configurationHelper
focal_class.declarator: namespaceDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private NamespaceDao namespaceDao;
focal_class.type: NamespaceDao
focal_class.var_name: namespaceDao
focal_class.declarator: userDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private UserDao userDao;
focal_class.type: UserDao
focal_class.var_name: userDao
focal_class.declarator: userNamespaceAuthorizationDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private UserNamespaceAuthorizationDao userNamespaceAuthorizationDao;
focal_class.type: UserNamespaceAuthorizationDao
focal_class.var_name: userNamespaceAuthorizationDao
focal_class.declarator: wildcardHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private WildcardHelper wildcardHelper;
focal_class.type: WildcardHelper
focal_class.var_name: wildcardHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/UserNamespaceAuthorizationHelper.java
focal_class.identifier: UserNamespaceAuthorizationHelper
focal_class.class_method_signature: UserNamespaceAuthorizationHelper.buildNamespaceAuthorizations(ApplicationUser applicationUser)
focal_class.full_signature: public void buildNamespaceAuthorizations(ApplicationUser applicationUser)
focal_class.identifier: buildNamespaceAuthorizations
focal_class.modifiers: public
focal_class.parameters: (ApplicationUser applicationUser)
focal_class.return: void
focal_class.signature: void buildNamespaceAuthorizations(ApplicationUser applicationUser)
focal_class.class_method_signature: UserNamespaceAuthorizationHelper.getAllNamespaceAuthorizations()
focal_class.full_signature: public Set<NamespaceAuthorization> getAllNamespaceAuthorizations()
focal_class.identifier: getAllNamespaceAuthorizations
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<NamespaceAuthorization>
focal_class.signature: Set<NamespaceAuthorization> getAllNamespaceAuthorizations()
focal_class.class_method_signature: UserNamespaceAuthorizationHelper.getNamespacePermissions(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_class.full_signature: public List<NamespacePermissionEnum> getNamespacePermissions(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_class.identifier: getNamespacePermissions
focal_class.modifiers: public
focal_class.parameters: (UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_class.return: List<NamespacePermissionEnum>
focal_class.signature: List<NamespacePermissionEnum> getNamespacePermissions(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_class.class_method_signature: UserNamespaceAuthorizationHelper.getAllNamespacePermissions()
focal_class.full_signature: private List<NamespacePermissionEnum> getAllNamespacePermissions()
focal_class.identifier: getAllNamespacePermissions
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: List<NamespacePermissionEnum>
focal_class.signature: List<NamespacePermissionEnum> getAllNamespacePermissions()
focal_class.class_method_signature: UserNamespaceAuthorizationHelper.toNamespaceAuthorization(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_class.full_signature: private NamespaceAuthorization toNamespaceAuthorization(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_class.identifier: toNamespaceAuthorization
focal_class.modifiers: private
focal_class.parameters: (UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_class.return: NamespaceAuthorization
focal_class.signature: NamespaceAuthorization toNamespaceAuthorization(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_class.class_method_signature: UserNamespaceAuthorizationHelper.isNamespaceAuthorizationAdmin(String userId)
focal_class.full_signature: protected boolean isNamespaceAuthorizationAdmin(String userId)
focal_class.identifier: isNamespaceAuthorizationAdmin
focal_class.modifiers: protected
focal_class.parameters: (String userId)
focal_class.return: boolean
focal_class.signature: boolean isNamespaceAuthorizationAdmin(String userId)
focal_method.body: public List<NamespacePermissionEnum> getNamespacePermissions(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
      {
          List<NamespacePermissionEnum> namespacePermissions = new ArrayList<>();
  
          if (BooleanUtils.isTrue(userNamespaceAuthorizationEntity.getReadPermission()))
          {
              namespacePermissions.add(NamespacePermissionEnum.READ);
          }
          if (BooleanUtils.isTrue(userNamespaceAuthorizationEntity.getWritePermission()))
          {
              namespacePermissions.add(NamespacePermissionEnum.WRITE);
          }
          if (BooleanUtils.isTrue(userNamespaceAuthorizationEntity.getExecutePermission()))
          {
              namespacePermissions.add(NamespacePermissionEnum.EXECUTE);
          }
          if (BooleanUtils.isTrue(userNamespaceAuthorizationEntity.getGrantPermission()))
          {
              namespacePermissions.add(NamespacePermissionEnum.GRANT);
          }
          if (BooleanUtils.isTrue(userNamespaceAuthorizationEntity.getWriteDescriptiveContentPermission()))
          {
              namespacePermissions.add(NamespacePermissionEnum.WRITE_DESCRIPTIVE_CONTENT);
          }
          if (BooleanUtils.isTrue(userNamespaceAuthorizationEntity.getWriteAttributePermission()))
          {
              namespacePermissions.add(NamespacePermissionEnum.WRITE_ATTRIBUTE);
          }
  
          return namespacePermissions;
      }
focal_method.class_method_signature: UserNamespaceAuthorizationHelper.getNamespacePermissions(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_method.full_signature: public List<NamespacePermissionEnum> getNamespacePermissions(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_method.identifier: getNamespacePermissions
focal_method.invocations: isTrue getReadPermission add isTrue getWritePermission add isTrue getExecutePermission add isTrue getGrantPermission add isTrue getWriteDescriptiveContentPermission add isTrue getWriteAttributePermission add
focal_method.modifiers: public
focal_method.parameters: (UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)
focal_method.return: List<NamespacePermissionEnum>
focal_method.signature: List<NamespacePermissionEnum> getNamespacePermissions(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity)