Package com.adobe.idp.um.api.infomodel

Examples of com.adobe.idp.um.api.infomodel.User


                DirectoryManagerServiceClient dirClient = new DirectoryManagerServiceClient(liveCycleService.getServiceClientFactory());
                psf.setUserIdAbsolute(userName);
                List<?> principalList = null;
                principalList = dirClient.findPrincipals(psf);
                Iterator<?> pit = principalList.iterator();
                User lcUser = null;
                if (pit.hasNext())
                    lcUser = (User) (pit.next());
                canonicalName = lcUser.getCanonicalName();
                userLogin =  lcUser.getUserid();
                userFullName = lcUser.getCommonName();
                domainName = lcUser.getDomainName();
                userRights = new String[lcUser.getRoleMembership().size()];
                int counter = 0;
                for (Object o : lcUser.getRoleMembership()) {

                    RoleImpl role = (RoleImpl)o;
                    if(role.getId().equals("BASIC_ROLE_APPLICATION_ADMINISTRATOR")){
                        this.admin = true;
                    }
View Full Code Here


                DirectoryManagerServiceClient dirClient = new DirectoryManagerServiceClient(clientFactory);
                PrincipalSearchFilter psf = new PrincipalSearchFilter();
                psf.setUserIdAbsolute(user.getUserName());
                List<?> principalList = dirClient.findPrincipals(psf);
                Iterator<?> pit = principalList.iterator();
                User lcUser = null;
                if (pit.hasNext())
                    lcUser = (User) (pit.next());
                Set<Group> groupMemberships = lcUser.getGroupMemberships();
                TaskSearchFilter taskSearchFilter = new TaskSearchFilter();
                taskSearchFilter.addCondition(TaskSearchingConstants.pSTATUS,
                        new Operator("="), StatusFilter.assigned);
                for (Group group : groupMemberships) {

                    if (!group.getCommonName().equals("Scanning Bureau")) {
                        taskSearchFilter.addCondition(
                                TaskSearchingConstants.pCURRENT_ASSIGNMENT_QUEUE_OWNER,
                                Operator.EQUALS, group.getCommonName(), Connective.OR);
                    }
                }
                taskSearchFilter.addSortDesc(TaskSearchingConstants.pPROCESS_START_TIME);
                List<TaskRow> result = queryManager.taskSearch(taskSearchFilter);
                ArrayList<WorkBasketItem> items = new ArrayList<WorkBasketItem>();
                for (TaskRow taskRow : result) {
                    if (taskRow.getTaskStatus() >= 100)
                        continue;

                    if (!lcUser.getCommonName().equals(
                            taskRow.getCurrentAssignment().getQueueOwner())
//                            && !taskRow
//                            .getCurrentAssignment()
//                            .getQueueOwner()
//                            .startsWith("WFAG_")
View Full Code Here

TOP

Related Classes of com.adobe.idp.um.api.infomodel.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.