Package org.dspace.app.cris.model

Examples of org.dspace.app.cris.model.RestrictedFieldLocalOrRemoteFile


      Label labelCaption = new Label(y, 0, decorator.getShortName());
      sheet.addCell(labelCaption);
    } else {
      if (RestrictedFieldLocalOrRemoteFile.class.isAssignableFrom(method
          .getReturnType())) {
        RestrictedFieldLocalOrRemoteFile rflor = (RestrictedFieldLocalOrRemoteFile) field;
        y = y + 1;
        if (StringUtils.isNotEmpty(rflor.getRemoteUrl())) {
          sheet.addCell(new Label(y, i, rflor.getRemoteUrl()));
        } else {
          sheet.addCell(new Label(y, i, rflor.getMimeType()
              + STOPFIELDS_EXCEL + rflor.getValue()));
        }
        Label labelCaption = new Label(y, 0, decorator.getShortName());
        sheet.addCell(labelCaption);
        y = y + 1;
        sheet.addCell(new Label(y, i, VisibilityConstants
            .getDescription(rflor.getVisibility())));
        labelCaption = new Label(y, 0, decorator.getShortName()
            + ImportExportUtils.LABELCAPTION_VISIBILITY_SUFFIX);
        sheet.addCell(labelCaption);
      } else if (RestrictedFieldFile.class.isAssignableFrom(method
          .getReturnType())) {
        RestrictedFieldFile rflor = (RestrictedFieldFile) field;
        y = y + 1;
        Label labelCaption = new Label(y, 0, decorator.getShortName());
        sheet.addCell(labelCaption);
        if (StringUtils.isNotEmpty(rflor.getValue())) {
          sheet.addCell(new Label(y, i, rflor.getMimeType()
              + STOPFIELDS_EXCEL + rflor.getValue()));
        }
        y = y + 1;
        labelCaption = new Label(y, 0, decorator.getShortName()
            + ImportExportUtils.LABELCAPTION_VISIBILITY_SUFFIX);
        sheet.addCell(labelCaption);
        if (StringUtils.isNotEmpty(rflor.getValue())) {
          sheet.addCell(new Label(y, i, VisibilityConstants
              .getDescription(rflor.getVisibility())));
        }
      } else {
        RestrictedField rr = (RestrictedField) field;
        y = y + 1;
        sheet.addCell(new Label(y, i, rr.getValue()));
View Full Code Here

TOP

Related Classes of org.dspace.app.cris.model.RestrictedFieldLocalOrRemoteFile

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.