Package com.agiletec.plugins.jacms.aps.system.services.resource.model

Examples of com.agiletec.plugins.jacms.aps.system.services.resource.model.AbstractMultiInstanceResource


      try {
        boolean isProtected = !Group.FREE_GROUP_NAME.equals(resource.getMainGroup());
        String folder = this.getSubfolder(resource);
        String folderDest = resource.getFolder();
        if (resource.isMultiInstance()) {
          AbstractMultiInstanceResource multiResource = (AbstractMultiInstanceResource) resource;
          Map<String, ResourceInstance> instancesMap = multiResource.getInstances();
          Iterator<ResourceInstance> iter = instancesMap.values().iterator();
          while (iter.hasNext()) {
            ResourceInstance resourceInstance = iter.next();
            String path = folder + resourceInstance.getFileName();
            //System.out.println("source " + path);
View Full Code Here


      //ResourceRecordVO resourceVo = this.getTrashedResourceDAO().getTrashedResource(resourceId);
      //if (null != resourceVo) {
        //ResourceInterface resource = this.createResource(resourceVo);
      String folder = this.getSubfolder(resource);
      if (resource.isMultiInstance()) {
        AbstractMultiInstanceResource multiResource = (AbstractMultiInstanceResource) resource;
        Map<String, ResourceInstance> instancesMap = multiResource.getInstances();
        Iterator<ResourceInstance> iter = instancesMap.values().iterator();
        while (iter.hasNext()) {
          ResourceInstance resourceInstance = iter.next();
          String path = folder + resourceInstance.getFileName();
          this.getStorageManager().deleteFile(path, true);
View Full Code Here

  public void addTrashedResource(ResourceInterface resource) throws ApsSystemException {
    String folder = this.getSubfolder(resource);
    List<String> paths = new ArrayList<String>();
    try {
      if (resource.isMultiInstance()) {
        AbstractMultiInstanceResource multiResource = (AbstractMultiInstanceResource) resource;
        Map<String, ResourceInstance> instancesMap = multiResource.getInstances();
        Iterator<ResourceInstance> iter = instancesMap.values().iterator();
        while (iter.hasNext()) {
          ResourceInstance resourceInstance = iter.next();
          InputStream is = resource.getResourceStream(resourceInstance);
          if (null != is) {
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jacms.aps.system.services.resource.model.AbstractMultiInstanceResource

Copyright © 2018 www.massapicom. 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.