Examples of deleteInvitation()


Examples of org.apache.olio.webapp.model.ModelFacade.deleteInvitation()

                //Person friend = getFriend(request);
                //String requestorUsername = request.getParameter(USER_NAME_PARAM);
                //String friendUsername = request.getParameter(FRIEND_PARAM);
                Invitation inv = modelFacade.findInvitation(loggedInPerson.getUserName(), friendUsername);
                if (inv != null) {
                    modelFacade.deleteInvitation(loggedInPerson, inv);
                }
                //update outgoing invitation list
                //out.write(loggedInPerson.getOutgoingInvitationsAsJson());
                response.setContentType("application/json;charset=UTF-8");
                response.setHeader("Cache-Control", "no-cache");
View Full Code Here

Examples of org.apache.olio.webapp.model.ModelFacade.deleteInvitation()


            } else if (actionType.equals(APPROVE_FRIEND)) {
                Invitation acceptedInv = modelFacade.findInvitation(friendUsername, loggedInPerson.getUserName());
                modelFacade.addFriend(loggedInPerson.getUserName(), friendUsername);
                modelFacade.deleteInvitation(loggedInPerson, acceptedInv);

            } else if (actionType.equals(REJECT_INVITE)) {
                //this is an incoming friendship request so the friend is the requestor
                //Invitation revokedInv = modelFacade.findInvitation(friendUsername, loggedInPerson.getUserName());               
                //let do this in memory
View Full Code Here

Examples of org.apache.olio.webapp.model.ModelFacade.deleteInvitation()

                    //incoming
                    if ((revokedInv.getRequestor().getUserName().equalsIgnoreCase(friendUsername)) && (revokedInv.getCandidate().getUserName().equalsIgnoreCase(requestorUsername))) {
                        break;
                    }
                }
                modelFacade.deleteInvitation(loggedInPerson, revokedInv);

            }
        }

        response.setContentType("application/json;charset=UTF-8");
View Full Code Here

Examples of org.apache.olio.webapp.model.ModelFacade.deleteInvitation()

                        }
                    }

                } else if (flag.equals("delete")) {
                    Invitation inv = mf.findInvitation(loggedInPerson.getUserName(), friendUsername);
                    mf.deleteInvitation(loggedInPerson, inv);
                    //iterate through and set new added friend's hasReceivedInvitation to false

                    Iterator<Person> searchIter = previousSearchResults.iterator();
                    while (searchIter.hasNext()) {
                        Person eachPerson = searchIter.next();
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.