Package org.dspace.authorize

Examples of org.dspace.authorize.AuthorizeException


                    .authorizeAction(context, item.getOwningCollection()
                            .getCommunities()[0], Constants.ADMIN);
        }
        else if (!AuthorizeManager.isAdmin(context))
        {
            throw new AuthorizeException(
                    "Only system admin are allowed to manage item policies");
        }
    }
View Full Code Here


            AuthorizeManager.authorizeAction(context, collection
                    .getCommunities()[0], Constants.ADMIN);
        }
        else if (!AuthorizeManager.isAdmin(context))
        {
            throw new AuthorizeException(
                    "Only system admin are allowed to manage collection policies");
        }
    }
View Full Code Here

            AuthorizeManager.authorizeAction(context, community,
                    Constants.ADMIN);
        }
        else if (!AuthorizeManager.isAdmin(context))
        {
            throw new AuthorizeException(
                    "Only system admin are allowed to manage community policies");
        }
    }
View Full Code Here

    public static void requireAdminRole(Context context)
            throws AuthorizeException, SQLException
    {
        if (!AuthorizeManager.isAdmin(context))
        {
            throw new AuthorizeException(
                    "Only system admin are allowed to perform this action");
        }
    }
View Full Code Here

                    : null;
            AuthorizeManager.authorizeAction(context, parent, Constants.ADMIN);
        }
        else if (!AuthorizeManager.isAdmin(context))
        {
            throw new AuthorizeException(
                    "You are not authorized to create a template item for the collection");
        }
    }
View Full Code Here

            AuthorizeManager.authorizeAction(context, collection
                    .getCommunities()[0], Constants.ADMIN);
        }
        else if (!AuthorizeManager.isAdmin(context))
        {
            throw new AuthorizeException(
                    "Only system admin are allowed to manage collection submitters");
        }
    }
View Full Code Here

            AuthorizeManager.authorizeAction(context, collection
                    .getCommunities()[0], Constants.ADMIN);
        }
        else if (!AuthorizeManager.isAdmin(context))
        {
            throw new AuthorizeException(
                    "Only system admin are allowed to manage collection workflow");
        }
    }
View Full Code Here

            AuthorizeManager.authorizeAction(context, collection
                    .getCommunities()[0], Constants.ADMIN);
        }
        else if (!AuthorizeManager.isAdmin(context))
        {
            throw new AuthorizeException(
                    "Only system admin are allowed to manage collection admin");
        }
    }
View Full Code Here

            AuthorizeManager.authorizeAction(context, collection
                    .getCommunities()[0], Constants.ADMIN);
        }
        else if (!AuthorizeManager.isAdmin(context))
        {
            throw new AuthorizeException(
                    "Only system admin can remove the admin group of a collection");
        }
    }
View Full Code Here

            AuthorizeManager.authorizeAction(context, community,
                    Constants.ADMIN);
        }
        else if (!AuthorizeManager.isAdmin(context))
        {
            throw new AuthorizeException(
                    "Only system admin are allowed to manage community admin");
        }
    }
View Full Code Here

TOP

Related Classes of org.dspace.authorize.AuthorizeException

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.