Package ORG.oclc.oai.server.verb

Examples of ORG.oclc.oai.server.verb.IdDoesNotExistException


            }
        }

        if (itemInfo == null)
        {
            throw new IdDoesNotExistException(identifier);
        }
        else
        {
            if (itemInfo.withdrawn)
            {
View Full Code Here


            if (itemInfo == null)
            {
                log.info(LogManager.getHeader(null, "oai_error",
                        "id_does_not_exist"));
                throw new IdDoesNotExistException(identifier);
            }
           
            boolean includeAll = ConfigurationManager.getBooleanProperty("harvest.includerestricted.oai", true);

            if (!includeAll)
            {
                Group[] authorizedGroups = AuthorizeManager.getAuthorizedGroups(context, itemInfo.item, Constants.READ);
                boolean authorized = false;
                for (int i = 0; i < authorizedGroups.length; i++)
                {
                    if ((authorizedGroups[i].getID() == 0) && (!authorized))
                    {
                        authorized = true;
                    }
                }

                if (!authorized)
                {
                    log.info(LogManager.getHeader(null, "oai_error",
                            "id_not_accessible"));
                    throw new IdDoesNotExistException(identifier);
                }
            }

            String schemaURL;
View Full Code Here

TOP

Related Classes of ORG.oclc.oai.server.verb.IdDoesNotExistException

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.