/** * Sets root entry that will be added to the {@link Partition} * after it is initialized. */ protected void setContextEntry( Attributes rootEntry ) { this.contextEntry = ( Attributes ) rootEntry.clone(); }
/** * Constructor for cloning an existing entry. * * @param master * The object to be copied. */ protected DirContextAdapter(DirContextAdapter master) { this.attrs = (Attributes) master.attrs.clone(); this.dn = master.dn; this.updatedAttrs = (Attributes) master.updatedAttrs.clone(); this.updateMode = master.updateMode; }
/** * Constructor for cloning an existing adapter. * * @param master * The adapter to be copied. */ protected DirContextAdapter(DirContextAdapter master) { this.attrs = (Attributes) master.attrs.clone(); this.dn = master.dn; this.updatedAttrs = (Attributes) master.updatedAttrs.clone(); this.updateMode = master.updateMode; }
/** * Returns root entry that will be added to the {@link Partition} * after it is initialized. */ public Attributes getContextEntry() { return ( Attributes ) contextEntry.clone(); }
/** * Create a new entry from the supplied attributes and dn. * * @param pAttrs * the attributes. * @param dn * the dn. */ public DirContextAdapter(Attributes pAttrs, Name dn) { attrs = (Attributes) pAttrs.clone(); this.dn = dn; }
/** * Gets the entry of this IndexRecord if one was resusitated form the master * table. * * @return the entry's attributes */ public Attributes getAttributes() { if ( entry == null ) { return null; } return ( Attributes ) entry.clone(); }
public Attributes lookup( NextInterceptor next, LdapDN name ) throws NamingException { return ( Attributes ) nexus.lookup( name ).clone(); }
/** * @see javax.naming.directory.DirContext#getAttributes(String) */ public Attributes getAttributes(String name) throws NamingException { if (!StringUtils.isEmpty(name)) { throw new NameNotFoundException(); } return (Attributes) attrs.clone(); }
/** * @see javax.naming.directory.DirContext#getAttributes(String) */ public Attributes getAttributes(String name) throws NamingException { if (!StringUtils.isEmpty(name)) { throw new NameNotFoundException(); } return (Attributes) attrs.clone(); }
public Attributes lookup( NextInterceptor next, LdapDN dn, String[] attrIds ) throws NamingException { return ( Attributes ) nexus.lookup( dn, attrIds ).clone(); }
/** * @see Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN) */ public Attributes lookup( LdapDN dn ) throws NamingException { if ( dn.size() == 0 ) { return ( Attributes ) rootDSE.clone(); } Partition backend = getBackend( dn ); return backend.lookup( dn ); }
tnames = inAttrs.get(CLASSNAMES_ATTRID); outAttrs = (Attributes)inAttrs.clone(); } else { outAttrs = new BasicAttributes(true);
tnames = inAttrs.get(CLASSNAMES_ATTRID); outAttrs = (Attributes)inAttrs.clone(); } else { outAttrs = new BasicAttributes(true);
for (Enumeration attrs = ((Attributes)inAttrs.clone()).getAll(); attrs.hasMoreElements(); ) { outAttrs.put((Attribute)attrs.nextElement());
for (Enumeration attrs = ((Attributes)inAttrs.clone()).getAll(); attrs.hasMoreElements(); ) { outAttrs.put((Attribute)attrs.nextElement());
Rdn rdn = target.getRdn( target.size() - 1 ); Attributes attributes = ( Attributes ) attrs.clone(); if ( rdn.size() == 1 )
(Attributes)inAttrs.clone() : new BasicAttributes(true);
(Attributes)inAttrs.clone() : new BasicAttributes(true);
public void modify( NextInterceptor next, LdapDN name, int modOp, Attributes mods ) throws NamingException Attributes oldEntry = (Attributes) AttributeUtils.toAttributesImpl( entry ).clone(); Attribute objectClasses = ServerUtils.getAttribute( objectClassType, entry );
Attributes attributes = ( Attributes ) attrs.clone();