public String [ ] getAttributes ( ) { if ( attributes == null || attributes . length != 1 || ! attributes [ 0 ] . equals ( ALL_ATTRIBUTES ) ) { boolean found = false ; if ( attributes != null ) { for ( String attribute : attributes ) { if ( attribute . equals ( "distinguishedName" ) ) { found = true ; break ; } } } if ( ! found ) { String [ ] attributesx = new String [ attributes != null ? ( attributes . length + 1 ) : 1 ] ; if ( attributes != null ) { attributesx [ 0 ] = "distinguishedName" ; for ( int i = 0 ; i < attributes . length ; ++ i ) { attributesx [ i + 1 ] = attributes [ i ] ; } } attributes = attributesx ; } } return attributes ; }
Returns the set of attributes to extract for each returned entity .