Package org.eurekastreams.server.domain

Examples of org.eurekastreams.server.domain.EntityIdentifier


                oneOf(tokenAddressBuilder).build(tokenContent, userId);
                will(returnValue(address));
            }
        });

        Serializable result = sut.execute(TestContextCreator.createPrincipalActionContext(new EntityIdentifier(
                EntityType.GROUP, groupId), null, userId));
        mockery.assertIsSatisfied();
        assertEquals(address, result);
    }
View Full Code Here


        }
        Identifiable entity = (Identifiable) serviceActionController.execute(new ServiceActionContext(id, principal),
                action);

        // Get address
        String address = (String) serviceActionController.execute(new ServiceActionContext(new EntityIdentifier(
                streamType, id), principal), getTokenForStreamAction);

        ModelAndView mv = new ModelAndView("vcardView");
        mv.addObject("streamEntity", entity);
        mv.addObject("email", address);
View Full Code Here

     */
    @Override
    public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException
    {

        EntityIdentifier params = (EntityIdentifier) inActionContext.getParams();

        String tokenData = tokenContentFormatter.buildForStream(params.getType(), params.getId());

        Long personId = inActionContext.getPrincipal().getId();
        String address = tokenAddressBuilder.build(tokenData, personId);
        return address;
    }
View Full Code Here

                    @Override
                    protected boolean isMatch(final PrincipalActionContext inTestObject)
                    {
                        if (inTestObject.getParams() instanceof EntityIdentifier)
                        {
                            EntityIdentifier rqst = (EntityIdentifier) inTestObject.getParams();
                            return rqst.getType() == EntityType.PERSON && rqst.getId() == PERSON_ID
                                    && inTestObject.getPrincipal() == principal;
                        }

                        return false;
                    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.domain.EntityIdentifier

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.