/** * Get the entry. * * @return Returns the entry. */ @Override public Entry getEntry() { return getDecorated().getEntry(); }
/** * {@inheritDoc} */ @Override public Entry getEntry() { return getDecorated().getEntry(); }
/** * {@inheritDoc} */ @Override public Entry getEntry() { return getDecorated().getEntry(); }
/** * {@inheritDoc} */ @Override public Entry getEntry() { return getDecorated().getEntry(); }
/** * Checks for equality by comparing the objectName, and attributes * properties of this Message after delegating to the super.equals() method. * * @param obj * the object to test for equality with this message * @return true if the obj is equal false otherwise */ @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof SearchResultEntry ) ) { return false; } SearchResultEntry resp = ( SearchResultEntry ) obj; return entry.equals( resp.getEntry() ); }
/** * Checks for equality by comparing the objectName, and attributes * properties of this Message after delegating to the super.equals() method. * * @param obj * the object to test for equality with this message * @return true if the obj is equal false otherwise */ @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof SearchResultEntry ) ) { return false; } SearchResultEntry resp = ( SearchResultEntry ) obj; return entry.equals( resp.getEntry() ); }
/** * Checks for equality by comparing the objectName, and attributes * properties of this Message after delegating to the super.equals() method. * * @param obj * the object to test for equality with this message * @return true if the obj is equal false otherwise */ @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( !super.equals( obj ) ) { return false; } if ( !( obj instanceof SearchResultEntry ) ) { return false; } SearchResultEntry resp = ( SearchResultEntry ) obj; return entry.equals( resp.getEntry() ); }
/** * Create a new attribute * * @param type The attribute's type * @throws LdapException If the value is invalid */ public void addAttribute( String type ) throws LdapException { currentAttribute = new DefaultAttribute( type ); getDecorated().getEntry().put( currentAttribute ); }
/** * Create a new attribute * * @param type The attribute's type * @throws LdapException If we can't add the new attributeType */ public void addAttribute( String type ) throws LdapException { currentAttribute = new DefaultAttribute( type ); getDecorated().getEntry().put( currentAttribute ); }
/** * Create a new attribute * * @param type The attribute's type * @throws LdapException If the value is invalid */ public void addAttribute( byte[] type ) throws LdapException { currentAttribute = new DefaultAttribute( type ); getDecorated().getEntry().put( currentAttribute ); }
/** * Create a new attribute * * @param type The attribute's type * @throws LdapException If the value is invalid */ public void addAttribute( String type ) throws LdapException { currentAttribute = new DefaultAttribute( type ); getDecorated().getEntry().put( currentAttribute ); }
/** * Create a new attribute * * @param type The attribute's type * @throws LdapException If the value is invalid */ public void addAttribute( byte[] type ) throws LdapException { currentAttribute = new DefaultAttribute( type ); getDecorated().getEntry().put( currentAttribute ); }
/** * Create a new attribute * * @param type The attribute's type * @throws LdapException If the value is invalid */ public void addAttribute( String type ) throws LdapException { currentAttribute = new DefaultAttribute( type ); getDecorated().getEntry().put( currentAttribute ); }
/** * Create a new attribute * * @param type The attribute's type * @throws LdapException If the value is invalid */ public void addAttribute( byte[] type ) throws LdapException { currentAttribute = new DefaultAttribute( type ); getDecorated().getEntry().put( currentAttribute ); }
/** * Processes the response controls on the supplied entry and returns a corresponding search item. * * @param entry to process * * @return search item */ protected SearchItem processSearchResultEntry(final SearchResultEntry entry) { logger.trace("reading search entry: {}", entry); final Entry e = entry.getEntry(); ResponseControl[] respControls = null; if (entry.getControls() != null && entry.getControls().size() > 0) { respControls = processResponseControls(config.getControlProcessor(), request.getControls(), entry); } final SearchEntry se = util.toSearchEntry(e, respControls, entry.getMessageId()); return new SearchItem(se); }
@Override public Map<String, Object> transformSearchResult(SearchCursor cursor) throws IOException { LOG.debug(name); cursor.forEach(response -> { if (response instanceof SearchResultEntry) { Entry resultEntry = ((SearchResultEntry) response).getEntry(); String dn = resultEntry.getDn().toString(); LOG.debug("\tEntryDN {}", dn); DeepMap dnBranch = reqBranch.getBranch(dn.toLowerCase()); dnBranch.put(DISTINGUISH_NAME, dn); resultEntry.forEach(attr -> { // Since there might be multiple attributes with the same name, it is required to collect all their values (i.e. memberUid in group) if (attr.size() > 1) { List<Object> list = new ArrayList<>(); attr.iterator().forEachRemaining(list::add); String join = StringUtils.join(list, ","); dnBranch.put(attr.getId() + "", join); LOG.debug("\t\tAttr {} : {} ", attr.getId(), join); } else { dnBranch.put(attr.getId() + "", attr.get() + ""); LOG.debug("\t\tAttr {}", attr); } }); } }); return reqBranch.getRoot(); }
/** * {@inheritDoc} */ @Override public Entry getEntry() throws LdapException { if ( isEntry() ) { return ( ( SearchResultEntry ) response ).getEntry(); } if ( isReferral() ) { Referral referral = ( ( SearchResultReference ) response ).getReferral(); throw new LdapReferralException( referral.getLdapUrls() ); } throw new LdapException(); }
/** * {@inheritDoc} */ @Override public Entry getEntry() throws LdapException { if ( isEntry() ) { return ( ( SearchResultEntry ) response ).getEntry(); } if ( isReferral() ) { Referral referral = ( ( SearchResultReference ) response ).getReferral(); throw new LdapReferralException( referral.getLdapUrls() ); } throw new LdapException(); }
/** * {@inheritDoc} */ @Override public Entry getEntry() throws LdapException { if ( isEntry() ) { return ( ( SearchResultEntry ) response ).getEntry(); } if ( isReferral() ) { Referral referral = ( ( SearchResultReference ) response ).getReferral(); throw new LdapReferralException( referral.getLdapUrls() ); } throw new LdapException(); }
return ( ( SearchResultEntry ) response ).getEntry();