Package org.dspace.rest.common

Examples of org.dspace.rest.common.Status


            if(ePerson != null) {
                //DB EPerson needed since token won't have full info, need context
                EPerson dbEPerson = EPerson.findByEmail(context, ePerson.getEmail());
                String token = Resource.getToken(headers);
                Status status = new Status(dbEPerson.getEmail(), dbEPerson.getFullName(), token);
                return status;
            }

        } catch (ContextException e)
        {
            Resource.processException("Status context error: " + e.getMessage(), context);
        } catch (SQLException e) {
            Resource.processException("Status eperson db lookup error: " + e.getMessage(), context);
        } catch (AuthorizeException e) {
            Resource.processException("Status eperson authorize exception: " + e.getMessage(), context);
        } finally {
            context.abort();
        }

        //fallback status, unauth
        return new Status();
    }
View Full Code Here

TOP

Related Classes of org.dspace.rest.common.Status

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.