//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: protected org.camunda.bpm.engine.impl.persistence.entity.GroupEntity transformGroup(javax.naming.directory.SearchResult result) throws javax.naming.NamingException protected internal virtual GroupEntity transformGroup(SearchResult result) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final javax.naming.directory.Attributes attributes = result.getAttributes(); Attributes attributes = result.Attributes; LdapGroupEntity group = new LdapGroupEntity(); group.Dn = result.NameInNamespace; group.Id = getStringAttributeValue(ldapConfiguration.GroupIdAttribute, attributes); group.Name = getStringAttributeValue(ldapConfiguration.GroupNameAttribute, attributes); group.Type = getStringAttributeValue(ldapConfiguration.GroupTypeAttribute, attributes); return(group); }
protected internal virtual string getDnForGroup(string groupId) { LdapGroupEntity group = (LdapGroupEntity)createGroupQuery(org.camunda.bpm.engine.impl.context.Context.CommandContext).groupId(groupId).singleResult(); if (group == null) { return(""); } else { return(group.Dn); } }