Package org.jahia.ajax.gwt.client.widget.usergroup

Examples of org.jahia.ajax.gwt.client.widget.usergroup.UserGroupSelect


    public static void openUserGroupSelect(final String mode, final String id, final String pattern) {
        int viewMode = UserGroupSelect.VIEW_TABS;
        if ("users".equals(mode)) viewMode = UserGroupSelect.VIEW_USERS;
        if ("groups".equals(mode)) viewMode = UserGroupSelect.VIEW_GROUPS;

        new UserGroupSelect(new UserGroupAdder() {
            public void addUsers(List<GWTJahiaUser> users) {
                for (GWTJahiaUser user : users) {
                    UserManagerService.App.getInstance().getFormattedPrincipal(user.getUserKey(), 'u', pattern.split("\\|"), new BaseAsyncCallback<String[]>() {
                        public void onSuccess(String[] strings) {
                            add(strings[0], strings[1]);
View Full Code Here


    return toolBar;
  }

  private void doAdd() {
    new UserGroupSelect(new UserGroupAdder() {
      public void addGroups(List<GWTJahiaGroup> groups) {
        // do nothing
      }

      public void addUsers(List<GWTJahiaUser> users) {
View Full Code Here

TOP

Related Classes of org.jahia.ajax.gwt.client.widget.usergroup.UserGroupSelect

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.