Package org.apache.jetspeed.portlets.rpad

Examples of org.apache.jetspeed.portlets.rpad.Repository


        SelectItem[] items = new SelectItem[repos.size() + 1];
        items[0] = new SelectItem("");
        int c = 1;
        for (Iterator i = repos.iterator(); i.hasNext(); c++)
        {
            Repository repo = (Repository) i.next();
            items[c] = new SelectItem(repo.getName());
        }
        return items;
    }
View Full Code Here


    public EditRepositoryPage()
    {
        Map sessionMap = FacesContext.getCurrentInstance().getExternalContext()
                .getSessionMap();
        Repository repo = (Repository) sessionMap.get(RPADConstants.REPOSITORY);
        if (repo != null)
        {
            //TODO support repositories other than SimpleRepository
            if (repo instanceof SimpleRepository)
            {
View Full Code Here

    public String doUpdateRepository()
    {
        Map sessionMap = FacesContext.getCurrentInstance().getExternalContext()
                .getSessionMap();
        Repository repo = (Repository) sessionMap.get(RPADConstants.REPOSITORY);
        if (repo != null)
        {
            Repository r = getRepositoryManager().getRepository(
                    repo.getName());

            //TODO support repositories other than SimpleRepository
            if (r instanceof SimpleRepository)
            {
View Full Code Here

        return "deployer_editRepository";
    }

    public String doEditRepository()
    {
        Repository repo = (Repository) FacesContext.getCurrentInstance()
                .getExternalContext().getRequestMap().get("repository");
        if (repo != null)
        {
            FacesContext.getCurrentInstance().getExternalContext()
                    .getSessionMap().put(RPADConstants.REPOSITORY, repo);
View Full Code Here

        return null;
    }

    public String doDeleteRepository()
    {
        Repository repo = (Repository) FacesContext.getCurrentInstance()
                .getExternalContext().getRequestMap().get("repository");
        if (repo != null)
        {
            try
            {
                getRepositoryManager().removeRepository(repo.getName());
                //TODO i18n
                FacesMessageUtil
                        .addInfoMessage("Removed the target repository.");
            }
            catch (RPADException e)
View Full Code Here

        SelectItem[] items = new SelectItem[repos.size() + 1];
        items[0] = new SelectItem("");
        int c = 1;
        for (Iterator i = repos.iterator(); i.hasNext(); c++)
        {
            Repository repo = (Repository) i.next();
            items[c] = new SelectItem(repo.getName());
        }
        return items;
    }
View Full Code Here

    public EditRepositoryPage()
    {
        Map sessionMap = FacesContext.getCurrentInstance().getExternalContext()
                .getSessionMap();
        Repository repo = (Repository) sessionMap.get(RPADConstants.REPOSITORY);
        if (repo != null)
        {
            //TODO support repositories other than SimpleRepository
            if (repo instanceof SimpleRepository)
            {
View Full Code Here

    public String doUpdateRepository()
    {
        Map sessionMap = FacesContext.getCurrentInstance().getExternalContext()
                .getSessionMap();
        Repository repo = (Repository) sessionMap.get(RPADConstants.REPOSITORY);
        if (repo != null)
        {
            Repository r = (Repository) getRepositoryManager().getRepository(
                    repo.getName());

            //TODO support repositories other than SimpleRepository
            if (r instanceof SimpleRepository)
            {
View Full Code Here

        return "deployer_editRepository";
    }

    public String doEditRepository()
    {
        Repository repo = (Repository) FacesContext.getCurrentInstance()
                .getExternalContext().getRequestMap().get("repository");
        if (repo != null)
        {
            FacesContext.getCurrentInstance().getExternalContext()
                    .getSessionMap().put(RPADConstants.REPOSITORY, repo);
View Full Code Here

        return null;
    }

    public String doDeleteRepository()
    {
        Repository repo = (Repository) FacesContext.getCurrentInstance()
                .getExternalContext().getRequestMap().get("repository");
        if (repo != null)
        {
            try
            {
                getRepositoryManager().removeRepository(repo.getName());
                //TODO i18n
                FacesMessageUtil
                        .addInfoMessage("Removed the target repository.");
            }
            catch (RPADException e)
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.portlets.rpad.Repository

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.