/** {@inheritDoc} */ public void unbind(final String name) throws NamingException { unbind(parseName(name)); }
public void unbind(Name name) throws NamingException { final ParsedName parsedName = parse(name); final Context namespaceContext = findContext(name, parsedName); if (namespaceContext == null) super.unbind(parsedName.remaining()); else namespaceContext.unbind(parsedName.remaining()); }
/** {@inheritDoc} */ public void rename(final Name oldName, final Name newName) throws NamingException { //check for appropriate permissions first so that no other info leaks from this context //in case of insufficient perms (like the fact if it is readonly or not) check(oldName, JndiPermission.ACTION_LOOKUP | JndiPermission.ACTION_UNBIND); check(newName, JndiPermission.ACTION_BIND); if (namingStore instanceof WritableNamingStore) { bind(newName, lookup(oldName)); unbind(oldName); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public void unbind(final String name) throws NamingException { unbind(parseName(name)); }
/** {@inheritDoc} */ public void unbind(final String name) throws NamingException { unbind(parseName(name)); }
/** {@inheritDoc} */ public void unbind(final String name) throws NamingException { unbind(parseName(name)); }
public void unbind(Name name) throws NamingException { final ParsedName parsedName = parse(name); final Context namespaceContext = findContext(name, parsedName); if (namespaceContext == null) super.unbind(parsedName.remaining()); else namespaceContext.unbind(parsedName.remaining()); }
public void unbind(Name name) throws NamingException { final ParsedName parsedName = parse(name); final Context namespaceContext = findContext(name, parsedName); if (namespaceContext == null) super.unbind(parsedName.remaining()); else namespaceContext.unbind(parsedName.remaining()); }
public void unbind(Name name) throws NamingException { final ParsedName parsedName = parse(name); final Context namespaceContext = findContext(name, parsedName); if (namespaceContext == null) super.unbind(parsedName.remaining()); else namespaceContext.unbind(parsedName.remaining()); }
/** {@inheritDoc} */ public void rename(final Name oldName, final Name newName) throws NamingException { //check for appropriate permissions first so that no other info leaks from this context //in case of insufficient perms (like the fact if it is readonly or not) check(oldName, JndiPermission.ACTION_LOOKUP | JndiPermission.ACTION_UNBIND); check(newName, JndiPermission.ACTION_BIND); if (namingStore instanceof WritableNamingStore) { bind(newName, lookup(oldName)); unbind(oldName); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public void rename(final Name oldName, final Name newName) throws NamingException { //check for appropriate permissions first so that no other info leaks from this context //in case of insufficient perms (like the fact if it is readonly or not) check(oldName, Action.LOOKUP, Action.UNBIND); check(newName, Action.BIND); if (namingStore instanceof WritableNamingStore) { bind(newName, lookup(oldName)); unbind(oldName); } else { throw MESSAGES.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public void rename(final Name oldName, final Name newName) throws NamingException { //check for appropriate permissions first so that no other info leaks from this context //in case of insufficient perms (like the fact if it is readonly or not) check(oldName, JndiPermission.ACTION_LOOKUP | JndiPermission.ACTION_UNBIND); check(newName, JndiPermission.ACTION_BIND); if (namingStore instanceof WritableNamingStore) { bind(newName, lookup(oldName)); unbind(oldName); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }