Examples of copy()


Examples of com.caucho.quercus.env.Value.copy()

  @Override
  public Value evalCopy(Env env)
  {
    Value v = eval(env);
   
    return v.copy();
  }

  /**
   * Evaluates the expression, converting to an array if unset.
   *
 
View Full Code Here

Examples of com.caucho.security.PasswordUser.copy()

    // The caller should clear the password in the returned PasswordUser,
    // so we need to return a copy
    PasswordUser user = _userMap.get(userName);

    if (user != null)
      return user.copy();
    else
      return null;
  }

  /**
 
View Full Code Here

Examples of com.ceph.rbd.Rbd.copy()

                                rbd.create(disk.getName(), template.getVirtualSize(), this.rbdFeatures, this.rbdOrder);
                                RbdImage destImage = rbd.open(disk.getName());

                                s_logger.debug("Starting to copy " + srcImage.getName() " to " + destImage.getName() + " in Ceph pool " + srcPool.getSourceDir());
                                rbd.copy(srcImage, destImage);

                                s_logger.debug("Finished copying " + srcImage.getName() " to " + destImage.getName() + " in Ceph pool " + srcPool.getSourceDir());
                                rbd.close(destImage);
                            } else {
                                s_logger.debug("The source image " + srcPool.getSourceDir() + "/" + template.getName()
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.widgets.rte.Edit.copy()

      List<String> editFeatures = new ArrayList<String>();

      if (editAnnotation.cut()) {
        editFeatures.add("cut");
      }
      if (editAnnotation.copy()) {
        editFeatures.add("copy");
      }
      if (editAnnotation.pasteDefault()) {
        editFeatures.add("paste-default");
      }
View Full Code Here

Examples of com.cloudera.cdk.morphline.api.Record.copy()

         
          if (doPrevious) { // do previous
            lines.append('\n');
            lines.append(line);
          } else {          // do next
            if (lines.length() > 0 && !flushRecord(template.copy(), lines.toString())) {
              return false;
            }
            lines.setLength(0);
            lines.append(line);             
          }
View Full Code Here

Examples of com.couchbase.client.deps.io.netty.buffer.ByteBuf.copy()

            flags |= SERIALIZED;
            encoded.writeBytes(serialize(content));
        }

        if (encoded.readableBytes() >= compressionThreshold) {
            byte[] compressed = compress(encoded.copy().array());
            if (compressed.length < encoded.array().length) {
                encoded.clear().writeBytes(compressed);
                flags |= COMPRESSED;
            }
        }
View Full Code Here

Examples of com.dotmarketing.portlets.containers.model.Container.copy()

      HostAPI hostAPI = APILocator.getHostAPI();

    //gets the new information for the template from the request object
    Container newContainer = new Container();

    newContainer.copy(currentContainer);
         newContainer.setFriendlyName(currentContainer.getFriendlyName()
        + " (COPY) ");
         newContainer.setTitle(currentContainer.getTitle() + " (COPY) ");

        //Copy the structure
View Full Code Here

Examples of com.dotmarketing.portlets.files.model.File.copy()

      isNew = true;
    }

    try {
      newFile = new File();
      newFile.copy(source);

      // Setting file name
      if (!forceOverwrite) {
        newFile.setFileName(getCopyFileName(fileName, fileExtension, destination));
View Full Code Here

Examples of com.dotmarketing.portlets.folders.model.Folder.copy()

    private void copy ( Folder folder, Host destination, Hashtable copiedObjects ) throws DotDataException, DotSecurityException, DotStateException, IOException {

        boolean rename = APILocator.getHostAPI().doesHostContainsFolder( destination, folder.getName() );

        Folder newFolder = new Folder();
        newFolder.copy( folder );
        newFolder.setName( folder.getName() );
        while ( rename ) {
            newFolder.setName( newFolder.getName() + "_copy" );
            rename = APILocator.getHostAPI().doesHostContainsFolder( destination, newFolder.getName() );
        }
View Full Code Here

Examples of com.dotmarketing.portlets.htmlpages.model.HTMLPage.copy()

        }

        //gets the new information for the template from the request object
        HTMLPage newHTMLPage = new HTMLPage();
        //Copy the current page
        newHTMLPage.copy( currentHTMLPage );

        //gets page url before extension
        String pageURL = com.dotmarketing.util.UtilMethods.getFileName( currentHTMLPage.getPageUrl() );
        //gets file extension
        String fileExtension = com.dotmarketing.util.UtilMethods.getFileExtension( currentHTMLPage.getPageUrl() );
View Full Code Here
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.