Examples of canDisseminate()


Examples of org.dspace.content.crosswalk.DisseminationCrosswalk.canDisseminate()

                if (crosswalk == null) {
                    continue;
                }

                //First, check if this crosswalk can handle disseminating Item-level Administrative metadata
                if (crosswalk.canDisseminate(item)) {
                    //Since this crosswalk works with items, first render a section for entire item
                    renderAmdSubSection(amdSecName, mdType, crosswalk, item);
                }

                //Next, we'll try and render Bitstream-level administrative metadata
View Full Code Here

Examples of org.dspace.content.crosswalk.DisseminationCrosswalk.canDisseminate()

                    Bitstream[] bitstreams = bundle.getBitstreams();

                    //Create a sub-section of <amdSec> for each bitstream in bundle
                    for (Bitstream bitstream : bitstreams) {
                        //Only render the section if crosswalk works with bitstreams
                        if (crosswalk.canDisseminate(bitstream)) {
                            renderAmdSubSection(amdSecName, mdType, crosswalk, bitstream);
                        }
                    }//end for each bitstream
                }//end for each bundle
            }//end for each crosswalk
View Full Code Here

Examples of org.dspace.content.crosswalk.DisseminationCrosswalk.canDisseminate()

            //skip, if we cannot find this crosswalk in config file
            if (crosswalk == null)
              continue;

            //First, check if this crosswalk can handle disseminating Item-level Administrative metadata
            if(crosswalk.canDisseminate(item))
            {
              //Since this crosswalk works with items, first render a section for entire item
              renderAmdSubSection(amdSecName, mdType, crosswalk, item);
            }
View Full Code Here

Examples of org.dspace.content.crosswalk.DisseminationCrosswalk.canDisseminate()

              //Create a sub-section of <amdSec> for each bitstream in bundle
              for(Bitstream bitstream : bitstreams)
              {
                 //Only render the section if crosswalk works with bitstreams
                 if(crosswalk.canDisseminate(bitstream))
                 {
                    renderAmdSubSection(amdSecName, mdType, crosswalk, bitstream);
                 }
              }//end for each bitstream
            }//end for each bundle
View Full Code Here

Examples of org.dspace.content.crosswalk.DisseminationCrosswalk.canDisseminate()

            {
                // Find the crosswalk we will be using to generate the metadata for this mdSec
                DisseminationCrosswalk xwalk = (DisseminationCrosswalk)
                    PluginManager.getNamedPlugin(DisseminationCrosswalk.class, xwalkName);

                if (xwalk.canDisseminate(dso))
                {
                    // Check if our Crosswalk actually wraps another Packager Plugin
                    if(xwalk instanceof AbstractPackagerWrappingCrosswalk)
                    {
                        // If this crosswalk wraps another Packager Plugin, we can pass it our Packaging Parameters
View Full Code Here

Examples of org.dspace.content.crosswalk.DisseminationCrosswalk.canDisseminate()

            {
                continue;
            }

            // First, check if this crosswalk can handle disseminating Item-level Administrative metadata
            if(crosswalk.canDisseminate(item))
            {
              // Since this crosswalk works with items, first render a section for entire item
              renderAmdSubSection(amdSecName, mdType, crosswalk, item);
            }
View Full Code Here

Examples of org.dspace.content.crosswalk.DisseminationCrosswalk.canDisseminate()

              // Create a sub-section of <amdSec> for each bitstream in bundle
              for(Bitstream bitstream : bitstreams)
              {
                 // Only render the section if crosswalk works with bitstreams
                 if(crosswalk.canDisseminate(bitstream))
                 {
                    renderAmdSubSection(amdSecName, mdType, crosswalk, bitstream);
                 }
              } // end for each bitstream
            } // end for each bundle
View Full Code Here

Examples of org.dspace.content.crosswalk.StreamDisseminationCrosswalk.canDisseminate()

            {
                StreamDisseminationCrosswalk sxwalk = (StreamDisseminationCrosswalk)
                  PluginManager.getNamedPlugin(StreamDisseminationCrosswalk.class, xwalkName);
                if (sxwalk != null)
                {
                    if (sxwalk.canDisseminate(context, dso))
                    {
                        // Check if our Crosswalk actually wraps another Packager Plugin
                        if(sxwalk instanceof AbstractPackagerWrappingCrosswalk)
                        {
                            // If this crosswalk wraps another Packager Plugin, we can pass it our Packaging Parameters
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.