Package org.dspace.content

Examples of org.dspace.content.Site


     */
    public void convertAll()
            throws SQLException
    {
        report("Starting conversion of all DSpaceItems, this may take a while...");
        this.convert(new Site(), true);
        report("Conversion ended.");
    }
View Full Code Here


        if (eperson != null)
        {
            context.setCurrentUser(eperson);
        }
       
        Site site = (Site) Site.find(context, 0);
       
        collections = Collection.findAuthorized(context, null, Constants.ADD);

        return collections;
    }
View Full Code Here

                dim.addContent(createField("dc","rights",null,null,rights));
                dim.addContent(createField("dc","title",null,null,title));
            }
            else if (dso.getType() == Constants.SITE)
            {
                Site site = (Site) dso;

                String identifier_uri = "hdl:" + site.getHandle();
                String title = site.getName();
                String url = site.getURL();

                //FIXME: adding two URIs for now (site handle and URL), in case site isn't using handles
                dim.addContent(createField("dc","identifier","uri",null,identifier_uri));
                dim.addContent(createField("dc","identifier","uri",null,url));
                dim.addContent(createField("dc","title",null,null,title));
View Full Code Here

                dc.add(makeDC("relation", "isPartOf", "hdl:" + ownerHdl));
            }
        }
        else if (dso.getType() == Constants.SITE)
        {
            Site site = (Site) dso;
           
            //FIXME: adding two URIs for now (site handle and URL), in case site isn't using handles
            dc.add(makeDC("identifier", "uri", "hdl:" + site.getHandle()));
            dc.add(makeDC("identifier", "uri", site.getURL()));
        }

        Metadatum result[] = (Metadatum[])dc.toArray(new Metadatum[dc.size()]);
        return XSLTDisseminationCrosswalk.createDIM(dso, result);
    }
View Full Code Here

TOP

Related Classes of org.dspace.content.Site

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.