Package org.eurekastreams.server.domain

Examples of org.eurekastreams.server.domain.EntityType


        unseenActivityNotificationPanel.setActive(false);
        activitySpinner.addClassName(StaticResourceBundle.INSTANCE.coreCss().displayNone());

        if (event.getResponse() != null)
        {
            EntityType actorType = event.getResponse().getDestinationStream().getEntityType();
            String actorName = event.getResponse().getDestinationStream().getUniqueId();

            if (actorType.equals(EntityType.GROUP))
            {
                GroupModel.getInstance().fetch(actorName, false);

            }
            else if (actorType.equals(EntityType.PERSON))
            {
                PersonalInformationModel.getInstance().fetch(actorName, false);
            }
        }
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

     */
    @Override
    public String objectToString(final Object msgObject)
    {
        Activity activity = (Activity) msgObject;
        EntityType actorType = activity.getActorType();

        String result = null;

        switch (actorType)
        {
View Full Code Here

     */
    @Override
    public String objectToString(final Object msgObject)
    {
        Activity activity = (Activity) msgObject;
        EntityType appType = activity.getAppType();
        Long appId = activity.getAppId();

        if (appType != null && appId != null)
        {
            char prefix;
View Full Code Here

        {
            getActor().setUniqueIdentifier((String) properties.get("actorUniqueIdentifier"));
        }
        if (properties.containsKey("originalActorType"))
        {
            final EntityType type = (EntityType) properties.get("originalActorType");
            if (type != null)
            {
                if (originalActor == null)
                {
                    originalActor = new StreamEntityDTO();
View Full Code Here

     */
    @Test
    public final void testWithNothingNull()
    {
        String content = "content";
        EntityType destinationType = EntityType.PERSON;
        String destinationId = "username1";

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

     */
    @Test
    public final void testWithVerbNull()
    {
        String content = "content";
        EntityType destinationType = EntityType.PERSON;
        String destinationId = "username1";

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

     */
    @Test
    public final void testWithObjNull()
    {
        String content = "content";
        EntityType destinationType = EntityType.PERSON;
        String destinationId = "username1";

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

        List<String> accountIds = new ArrayList<String>();
        for (int i = 0; i < entities.size(); i++)
        {
            JSONObject req = entities.getJSONObject(i);
            EntityType type = EntityType.valueOf(req.getString("type"));

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

        ActivityDTO activityDTO = activityDAO.execute(activityId);

        // Sends notifications for new personal stream comments.
        StreamEntityDTO destination = activityDTO.getDestinationStream();
        long destinationId = destination.getDestinationEntityId();
        EntityType destinationType = destination.getType();

        RequestType requestType = null;
        switch (destinationType)
        {
        case PERSON:
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.