Examples of OutboxMessage


Examples of com.infoclinika.mssharing.model.internal.entity.OutboxMessage

        getStrategy(request).remove(actor, request);
    }

    @Override
    public void removeOutboxItem(long actor, String request) {
        OutboxMessage outbpxMessage = outboxMessageRepository.findOne(Long.parseLong(request));
        if (outbpxMessage.getFrom().getId() != actor) {
            throw new AccessDenied("Could not remove outbox item owned by other user");
        }
        outboxMessageRepository.delete(outbpxMessage);
    }
View Full Code Here

Examples of com.infoclinika.mssharing.model.internal.entity.OutboxMessage

        getStrategy(request).refuse(actor, request, comment);
    }

    @Override
    public void addOutboxItem(long from, String to, String message, Date date) {
        OutboxMessage outboxMessage = new OutboxMessage(to, message, date, Util.USER_FROM_ID.apply(from));
        outboxMessageRepository.save(outboxMessage);
    }
View Full Code Here

Examples of models.OutboxMessage

      message.addReceiver(receiver);
    }
    message.insert();
   
    // Create the outbox message
    OutboxMessage outMessage = new OutboxMessage(from, message);
    outMessage.save()
   
       
    //Se inserta un mensaje que pertenece al receptor
     
    for(User receiver : receivers)  {
View Full Code Here

Examples of models.OutboxMessage

    renderTemplate("api/message.json",message);
  }
*/ 
  public static void get(Long id) {
    User current = getCurrentUser();
    OutboxMessage message = OutboxMessage.getSent(id, current);
    if(message==null) notFound();
    //if(message.owner.id.longValue() != current.id.longValue()) forbidden();
    renderTemplate("api/message.json",message);
  }
View Full Code Here

Examples of models.OutboxMessage

    renderTemplate("api/message.json",message);
  }
 
  public static void delete(Long id) {
    User current = getCurrentUser();
    OutboxMessage message = OutboxMessage.getSent(id, current);
    if(message==null) notFound();
    //if(message.owner.id.longValue() != current.id.longValue()) forbidden();
    message.delete();
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.