Examples of reName()


Examples of javax.naming.ldap.LdapContext.rename()

    @Test
    public void testMoveNoRdnChange() throws Exception
    {
        LdapContext ctx = getWiredContext( getLdapServer() );
        ctx.rename( DN, NEW_DN );

        SearchControls controls = new SearchControls();
        controls.setSearchScope( SearchControls.OBJECT_SCOPE );

        NamingEnumeration<SearchResult> results = ctx.search( NEW_DN, "(objectClass=*)", controls );

Examples of l2p.gameserver.model.L2Player.reName()

      show(new CustomMessage("scripts.services.Rename.Thisnamealreadyexists", player), player);
      return;
    }
    removeItem(player, Config.SERVICES_CHANGE_NICK_ITEM, Config.SERVICES_CHANGE_NICK_PRICE);
    String oldName = player.getName();
    player.reName(name, true);
    Log.add("Character " + oldName + " renamed to " + name, "renames");
    show(new CustomMessage("scripts.services.Rename.changedname", player).addString(oldName).addString(name), player);
  }

  public void changesex()

Examples of lineage2.gameserver.model.Player.reName()

      show(new CustomMessage("scripts.services.Rename.Thisnamealreadyexists", player), player);
      return;
    }
    removeItem(player, Config.SERVICES_CHANGE_NICK_ITEM, Config.SERVICES_CHANGE_NICK_PRICE);
    String oldName = player.getName();
    player.reName(name, true);
    Log.add("Character " + oldName + " renamed to " + name, "renames");
    show(new CustomMessage("scripts.services.Rename.changedname", player).addString(oldName).addString(name), player);
  }
 
  /**
 

Examples of net.opentsdb.uid.UniqueId.rename()

    final String kind = args[1];
    final String oldname = args[2];
    final String newname = args[3];
    final UniqueId uid = new UniqueId(client, table, kind, (int) idwidth);
    try {
      uid.rename(oldname, newname);
    } catch (HBaseException e) {
      LOG.error("error while processing renaming " + oldname
                + " to " + newname, e);
      return 3;
    } catch (NoSuchUniqueName e) {

Examples of net.sf.jasperreports.engine.base.JRBaseStyle.rename()

        newName = name + suf;
        ++suf;
      }
      while(stylesMap.containsStyle(newName));
     
      style.rename(newName);
      stylesMap.renamed(name, newName);
    }
  }

Examples of net.sourceforge.javautil.common.io.IVirtualFile.rename()

  public static IVirtualFile rotate (IVirtualDirectory directory, String prefix, String extension, int maxRotations) {
    for (int i=maxRotations; i>0; i--) {
      IVirtualFile rotation = directory.getFile(getRotatedFileName(prefix, extension, i));
      if (rotation != null) {
        if (i == maxRotations) rotation.remove();
        else rotation.rename(getRotatedFileName(prefix, extension, i+1));
      }
    }
    return directory.getFile(getRotatedFileName(prefix, extension, 1), true);
  }
 

Examples of netscape.ldap.LDAPConnection.rename()

        constraints.setClientControls( new LDAPControl( LDAPControl.MANAGEDSAIT, true, Strings.EMPTY_BYTES ) );
        constraints.setServerControls( new LDAPControl( LDAPControl.MANAGEDSAIT, true, Strings.EMPTY_BYTES ) );
        conn.setConstraints( constraints );

        // ModifyDN success
        conn.rename( "uid=akarasuluref,ou=users,ou=system", "uid=ref", true, constraints );
        LDAPEntry entry = conn.read( "uid=ref,ou=users,ou=system", ( LDAPSearchConstraints ) constraints );
        assertNotNull( entry );
        assertEquals( "uid=ref,ou=users,ou=system", entry.getDN() );

        conn.disconnect();

Examples of org.apache.accumulo.core.client.admin.NamespaceOperations.rename()

            fail();
          case 10:
            ops.removeProperty(namespace, "a");
            fail();
          case 11:
            ops.rename(namespace, namespace + "2");
            fail();
          case 12:
            ops.setProperty(namespace, "k", "v");
            fail();
          case 13:

Examples of org.apache.accumulo.core.client.admin.TableOperations.rename()

      Mutation m1 = new Mutation("foo");
      m1.put("col1", "", "val1");

      bw1.addMutation(m1);

      tops.rename(table1, table2);
      tops.create(table1);

      BatchWriter bw2 = mtbw.getBatchWriter(table1);
     
      Mutation m2 = new Mutation("bar");

Examples of org.apache.accumulo.server.fs.VolumeManager.rename()

    // move failed files that were not loaded
    for (String failure : failures.values()) {
      Path orig = new Path(failure);
      Path dest = new Path(error, orig.getName());
      fs.rename(orig, dest);
      log.debug("tid " + tid + " renamed " + orig + " to " + dest + ": import failed");
    }

    if (loadedFailures.size() > 0) {
      DistributedWorkQueue bifCopyQueue = new DistributedWorkQueue(Constants.ZROOT + "/" + HdfsZooInstance.getInstance().getInstanceID()
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.