Package org.jitterbit.integration.server.accesscontrol

Examples of org.jitterbit.integration.server.accesscontrol.User


    public static ExternalApiSupport forCall(String login, String md5Pwd) throws ServerAccessException {
        Connection conn = openConnectionToBackend();
        boolean success = false;
        try {
            UsersTab usersTab = new UsersTab(conn);
            User user = usersTab.getUser(login, md5Pwd);
            if (user == null) {
                throw new ServerAccessException("Invalid user name and/or password.");
            }
            ExternalApiSupport wss = new ExternalApiSupport(conn, user, md5Pwd);
            success = true;
View Full Code Here


public class TranDbUserPermissionsLookupTest {

    public static void main(String[] args) throws Exception {
        Connection conn = ServerDbInfo.getTranDbConnectionInfo().getConnection();
        try {
            User user = new User(1, "torgil");
            EntityDescriptor entity = new EntityDescriptor(EntityType.Operation, 2);
            Permissions p = new TranDbUserPermissionsLookup(conn).getPermissions(user, entity);
            System.out.println(p);
        } finally {
            KongaDbUtils.close(conn);
View Full Code Here

public class UsersTabTest {

    public static void main(String[] args) throws Exception {
        UsersTab users = new UsersTab();
        try {
            User user = users.getUser(args[0], DigestUtils.getMd5DigestAsHexString(args[1]));
            System.out.println(user);
            if (user != null) {
                System.out.println("  Is admin: " + user.isAdmin());
            }
        } finally {
            users.close();
        }
    }
View Full Code Here

     */
    public User createUser() {
        if (user_id.getValue() == null) {
            throw new IllegalStateException("This row has not been populated");
        }
        return new User(user_id.getValue(), login.getValue());
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.server.accesscontrol.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.