Package org.eurekastreams.server.domain.stream.StreamScope

Examples of org.eurekastreams.server.domain.stream.StreamScope.ScopeType


                {
                    String[] results = obj.toString().split(",", 4);
                    if (!results[0].equals("NOTSET"))
                    {
                        String displayName = results[3];
                        ScopeType entityType = ScopeType.valueOf(results[0]);
                        String uniqueId = results[1];
                        long streamScopeId = Long.parseLong(results[2]);

                        typedInScope = new StreamScope(displayName, entityType, uniqueId, streamScopeId);
View Full Code Here


                                            .isString().stringValue();
                                    String displayName = getEntityDisplayName(EntityType.valueOf(recipient.get(
                                            StreamJsonRequestFactory.ENTITY_TYPE_KEY).isString().stringValue()),
                                            uniqueId, event.getResponse());

                                    ScopeType scopeType = ScopeType.valueOf(recipient.get(
                                            StreamJsonRequestFactory.ENTITY_TYPE_KEY).isString().stringValue());

                                    StreamScope scope = new StreamScope(scopeType, uniqueId);
                                    scope.setDisplayName(displayName);
View Full Code Here

     * @param activity
     *            the activity to be added.
     */
    public void execute(final Activity activity)
    {
        ScopeType type = activity.getRecipientStreamScope().getScopeType();
        String recipientUniqueKey = activity.getRecipientStreamScope().getUniqueKey();
        long activityId = activity.getId();

        if (type == ScopeType.PERSON)
        {
View Full Code Here

                    if (recipients.size() == 1)
                    {
                        JSONObject obj = recipients.get(0).isObject();
                        String type = obj.get("type").isString().stringValue();
                        String name = obj.get("name").isString().stringValue();
                        ScopeType scopeType = ScopeType.valueOf(type);
                        return new StreamScope(scopeType, name);
                    }
                }
            }
        }
View Full Code Here

        {
            getDestinationStream().setDestinationEntityId((Long) properties.get("destinationStreamEntityId"));
        }
        if (properties.containsKey("destinationStreamScopeType"))
        {
            ScopeType scopeType = (ScopeType) properties.get("destinationStreamScopeType");
            if (scopeType == ScopeType.PERSON)
            {
                getDestinationStream().setType(EntityType.PERSON);
            }
            else if (scopeType == ScopeType.GROUP)
View Full Code Here

        List<String> personIds = new ArrayList<String>();
        List<String> groupIds = new ArrayList<String>();

        for (int i = 0; i < bookmarks.size(); i++)
        {
            ScopeType type = bookmarks.get(i).getScopeType();

            switch (type)
            {
            case PERSON:
                personIds.add(bookmarks.get(i).getUniqueKey());
View Full Code Here

     */
    public void execute(final Activity inActivity)
    {
        log.info("Finding hashtags for activity #" + inActivity.getId());

        ScopeType scopeType = inActivity.getRecipientStreamScope().getScopeType();
        if (scopeType != ScopeType.GROUP && scopeType != ScopeType.PERSON)
        {
            log.info("This activity isn't a group or person stream - not handled.");
            return;
        }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.domain.stream.StreamScope.ScopeType

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.