Package org.eurekastreams.server.domain

Examples of org.eurekastreams.server.domain.EntityType


    public void testNotifyFullFields() throws Exception
    {
        final String url = "http://www.eurekastreams.org";
        final String sourceName = "Source Name";
        final String sourceUniqueId = "Source Unique ID";
        final EntityType sourceType = EntityType.GROUP;
        final String actorUniqueId = "Actor Unique ID";
        final EntityType actorType = EntityType.PERSON;

        final Identifiable source = context.mock(Identifiable.class, "source");
        final Identifiable actor = context.mock(Identifiable.class, "actor");

        context.checking(new Expectations()
View Full Code Here


        boolean showComment = "true".equals(Session.getInstance().getParameterValue("showComment"));
        addStyleName(StaticResourceBundle.INSTANCE.coreCss().singleActivityPanel());

        // build link to show all activity in the destination stream
        StreamEntityDTO destinationStream = activity.getDestinationStream();
        EntityType entityType = destinationStream.getEntityType();
        String title = null;
        Page page = null;
        switch (entityType)
        {
        case PERSON:
View Full Code Here

        newActivity.setActorId(actorAccountName);
        newActivity.setActorType(EntityType.PERSON);

        long actorId = 0;
        long destinationId = 0;
        EntityType destinationType;

        // Persist to long term storage.
        insertMapper.execute(new PersistenceRequest<Activity>(newActivity));
        insertMapper.flush();
View Full Code Here

    @Override
    public void authorize(final PrincipalActionContext inActionContext)
    {
        GetFollowersFollowingRequest actionRequest = (GetFollowersFollowingRequest) inActionContext.getParams();

        EntityType targetType = actionRequest.getEntityType();

        if (targetType == EntityType.PERSON)
        {
            return;
        }
View Full Code Here

    public void execute(final ActivityDTO activity)
    {
        long activityId = activity.getId();

        // Add to the appropriate entity stream.
        EntityType streamType = activity.getDestinationStream().getType();
        String uniqueKey = activity.getDestinationStream().getUniqueIdentifier();

        switch (streamType)
        {
        case GROUP:
View Full Code Here

        String resourceKey = null;

        for (int i = 0; i < recipients.size(); i++)
        {
            JSONObject req = recipients.getJSONObject(i);
            EntityType type = EntityType.valueOf(req.getString("type"));

            switch (type)
            {
            case PERSON:
                personIds.add(req.getString("name"));
View Full Code Here

            {
                authorsRequest.append(" OR ");
            }

            JSONObject author = authors.getJSONObject(i);
            EntityType type = EntityType.valueOf(author.getString("type"));

            switch (type)
            {
            case PERSON:
                authorsRequest.append("p");
View Full Code Here

        long activityId = activity.getId();

        log.info("Cleaning up cache for deleted activity #" + activity.getId());

        // Remove from entity stream.
        EntityType streamType = activity.getDestinationStream().getType();

        switch (streamType)
        {
        case GROUP:
            DomainGroupModelView group = groupByShortNameDAO.execute(
View Full Code Here

                    error.setErrorMsg("The stream name you entered could not be found");
                    Session.getInstance().getEventBus().notifyObservers(error);
                    return;
                }

                EntityType recipientType = DomainConversionUtility.convertToEntityType(scope.getScopeType());
                if (EntityType.NOTSET.equals(recipientType))
                {
                    recipientType = EntityType.GROUP;
                }
View Full Code Here

                    StreamScope scope = postToPanel.getPostScope();

                    if (scope != null)
                    {
                        hideError();
                        EntityType recipientType;
                        if (scope.getScopeType().equals(ScopeType.PERSON))
                        {
                            recipientType = EntityType.PERSON;
                        }
                        else
View Full Code Here

TOP

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

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.