Package ariba.appcore

Examples of ariba.appcore.User


    private static final Pattern _FromPattern = Pattern.compile(
            "(?m)^From: (?:\"(.+?)\")?\\s?<(.+?)>$");

    public static User findOrCreateSender (AWMimeParsedMessage parsedMessage)
    {
        User sender = null;
        if (parsedMessage.getIsPureForward()) {
            String text = parsedMessage.plainTextForPart(parsedMessage.getTopLevelParts().get(0));
            Matcher m = _FromPattern.matcher(text);
            if (m.find()) {
                sender = User.findOrCreate(m.group(2), m.group(1));
View Full Code Here


        return false;
    }

    public AWResponseGenerating login ()
    {
        User user = ObjectContext.get().findOne(User.class, AWUtil.map("name", _userName));
        if (user == null) {
            recordValidationError("username", localizedJavaString(1, "Unknown user" /*  */), _userName);
        } else {
            if (user.matchingPassword(_password)) {
                User.bindUserToSession(user, session());
                MetaNavTabBar.invalidateState(session());
                return _callback.proceed(requestContext());
            }
            recordValidationError("password", localizedJavaString(2, "Invalid credentials" /*  */), null);
View Full Code Here

TOP

Related Classes of ariba.appcore.User

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.