Examples of RelationshipManagerImpl


Examples of org.datanucleus.state.RelationshipManagerImpl

            managedRelationDetails = new ConcurrentHashMap();
        }
        RelationshipManager relMgr = managedRelationDetails.get(op);
        if (relMgr == null)
        {
            relMgr = new RelationshipManagerImpl((StateManager)op);
            managedRelationDetails.put(op, relMgr);
        }
        return relMgr;
    }
View Full Code Here

Examples of org.jboss.identity.idm.impl.api.session.managers.RelationshipManagerImpl

      };

      sessionContext = new IdentitySessionContextImpl(repository, typeMapper, resolver);

      this.persistenceManager = new PersistenceManagerImpl(this);
      this.relationshipManager = new RelationshipManagerImpl(this);
      this.profileManager = new AttributesManagerImpl(this);
      this.roleManager = new RoleManagerImpl(this);

   }
View Full Code Here

Examples of org.jboss.identity.idm.impl.api.session.managers.RelationshipManagerImpl

      };

      sessionContext = new IdentitySessionContextImpl(repository, typeMapper, resolver);

      this.persistenceManager = new PersistenceManagerImpl(this);
      this.relationshipManager = new RelationshipManagerImpl(this);
      this.profileManager = new AttributesManagerImpl(this);
      this.roleManager = new RoleManagerImpl(this);
      this.userQueryExecutor = new UserQueryExecutorImpl(this);
      this.groupQueryExecutor = new GroupQueryExecutorImpl(this);
      this.roleQueryExecutor = new RoleQueryExecutorImpl(this);
View Full Code Here

Examples of org.jboss.identity.idm.impl.api.session.managers.RelationshipManagerImpl

      };

      sessionContext = new IdentitySessionContextImpl(repository, typeMapper, resolver);

      this.persistenceManager = new PersistenceManagerImpl(this);
      this.relationshipManager = new RelationshipManagerImpl(this);
      this.profileManager = new AttributesManagerImpl(this);
      this.roleManager = new RoleManagerImpl(this);

   }
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.relationship.RelationshipManagerImpl

     */
    public Activity[] getActivities(String[] userIds, String groupId, String appId,
                                    Set<String> fields, FilterOptions options)
            throws SocialDataException {

        RelationshipManager relationshipManager=new RelationshipManagerImpl();
        List<Activity> activityList = new ArrayList<Activity>();
        List<String> userIdsToFetch=new ArrayList<String>();
        String[] userIdArray=null;
        // Handle GroupId
        if(groupId.equals(SocialImplConstants.GROUP_ID_SELF)){
            userIdArray=userIds;
        }
        else if(groupId.equals(SocialImplConstants.GROUP_ID_FRIENDS)){
            for(String id:userIds){
                if(relationshipManager.getRelationshipList(id)!=null){
                    for(String friend:relationshipManager.getRelationshipList(id)){
                        userIdsToFetch.add(friend);
                    }
                }
            }
            userIdArray=new String[userIdsToFetch.size()];
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.relationship.RelationshipManagerImpl

        List<String> userIdsToFetch = new ArrayList<String>();
        RelationshipManager relationshipManager;
        if (groupId.equalsIgnoreCase(SocialImplConstants.GROUP_ID_SELF)) {
            userIdsToFetch = new ArrayList(Arrays.asList(userIds));
        } else if (groupId.equalsIgnoreCase(SocialImplConstants.GROUP_ID_FRIENDS)) {
            relationshipManager = new RelationshipManagerImpl();
            for (String userId : userIds) {
                for (String id : relationshipManager.getRelationshipList(userId)) {
                    userIdsToFetch.add(id);
                }
            }
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.relationship.RelationshipManagerImpl

        manager.setRegistry(registry);
         return manager.getRelationshipList(user);

    }*/
    public void testRelationshipRequesting() throws Exception {
        manager = new RelationshipManagerImpl();
        manager.setRegistry(registry);
        manager.requestRelationship("UserA", "UserB");
        String[] requests = manager.getPendingRelationshipRequests("UserB");
        assertEquals(requests.length, 1);
        manager.requestRelationship("UserC", "UserB");
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.relationship.RelationshipManagerImpl

        List<String> userIdsToFetch = new ArrayList<String>();

        // Check for groupId
        if (SocialImplConstants.GROUP_ID_FRIENDS.equals(groupId)) {
            for (String id : userIds) {
                String[] friendsList = new RelationshipManagerImpl().getRelationshipList(id);
                for (String friend : friendsList) {
                    userIdsToFetch.add(friend);
                }
            }
            userIds = new String[userIdsToFetch.size()];
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.relationship.RelationshipManagerImpl

        }
        List<String> userIdsToFetch = new ArrayList<String>();

        // Check for groupId
        if (SocialImplConstants.GROUP_ID_FRIENDS.equals(groupId)) {
            String[] friendsList = new RelationshipManagerImpl().getRelationshipList(userId);
            for (String friend : friendsList) {
                userIdsToFetch.add(friend);
            }
        }
        else{
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.