Package org.eurekastreams.server.domain.stream

Examples of org.eurekastreams.server.domain.stream.StreamHashTag


        }

        String recipientStreamKey = inActivity.getRecipientStreamScope().getUniqueKey();

        // create stream hashtag entries for each of the tags being applied
        StreamHashTag streamHashTag;

        List<String> hashTagStrings = getHashTags(inActivity);
        if (hashTagStrings.size() == 0)
        {
            return;
        }

        for (HashTag hashTag : hashTagMapper.execute(hashTagStrings))
        {
            // insert the activity hashtag for the destination stream
            if (log.isDebugEnabled())
            {
                log.debug("Adding StreamHashTag " + hashTag.getContent() + " for direct recipient stream of type "
                        + scopeType + ", key: " + recipientStreamKey + ", activity id: #" + inActivity.getId());
            }

            streamHashTag = new StreamHashTag(hashTag, inActivity, recipientStreamKey, scopeType);
            streamHashTagInsertMapper.execute(new PersistenceRequest<StreamHashTag>(streamHashTag));
        }
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.domain.stream.StreamHashTag

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.