Package org.jbpm.userprofile

Examples of org.jbpm.userprofile.DroolsTaskUserProfile


      upm.setUserProfileRepository(new MockFileBasedUserProfileRepository());

      User user = (User)upm.getUser();
      assertEquals(user.getId(), "mockedUser");

      DroolsTaskUserProfile userProfile = (DroolsTaskUserProfile)user.getUserProfile();
      //assertEquals(userProfile.getDisplayName(entity), "mockedUserName");
    }
View Full Code Here


import org.jbpm.userprofile.UserProfileRepository;

public class MockFileBasedUserProfileRepository implements UserProfileRepository {
  public UserProfile getUserProfile(String userName) {
    //load the property file, get user info.
    DroolsTaskUserProfile ui = new DroolsTaskUserProfile();

    ui.setID(userName);
    return ui;
  }
View Full Code Here

  public void setUserProfile(UserProfile info) {
    if(!(info instanceof DroolsTaskUserProfile)) {
      return;
    }
    DroolsTaskUserProfile dtup = (DroolsTaskUserProfile)info;
    //update file properties
  }
View Full Code Here

TOP

Related Classes of org.jbpm.userprofile.DroolsTaskUserProfile

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.