Examples of EmbeddedFile


Examples of it.cilea.osd.jdyna.value.EmbeddedFile

                            valuesAttributes);

                }
                if (prop.getTypo().getRendering() instanceof WidgetFile)
                {
                    EmbeddedFile file = (EmbeddedFile) pe.getValue();
                    WidgetFile widget = (WidgetFile) (prop.getTypo()
                            .getRendering());
                    List<String> attributes = new LinkedList<String>();
                    List<String> valuesAttributes = new LinkedList<String>();
                    attributes.add(NAMEATTRIBUTE_VISIBILITY);
                    valuesAttributes.add(prop.getVisibility().toString());

                    attributes.add(NAMEATTRIBUTE_MIMETYPE);
                    valuesAttributes.add(file.getMimeFile());

                    attributes.add(NAMEATTRIBUTE_FILEEXTENSION);
                    valuesAttributes.add(file.getExtFile());

                    ExportUtils.createCustomValueWithCustomAttributes(
                            element,
                            shortName,
                            ConfigurationManager.getProperty("dspace.url") + "/"
                                    + widget.getServletPath() + "/"
                                    + file.getFolderFile() + "/?filename="
                                    + file.getValueFile() + "."
                                    + file.getExtFile(), attributes,
                            valuesAttributes);

                }
            }
        }
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.