PlaceBeanLocal.java
965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package fi.insomnia.bortal.beans;
import java.math.BigDecimal;
import java.util.List;
import fi.insomnia.bortal.exceptions.BortalCatchableException;
import fi.insomnia.bortal.model.EventMap;
import fi.insomnia.bortal.model.Place;
import fi.insomnia.bortal.model.Product;
import fi.insomnia.bortal.model.User;
import javax.ejb.Local;
import org.granite.messaging.service.annotations.RemoteDestination;
/**
*
* @author tuukka
*/
@Local
@RemoteDestination
public interface PlaceBeanLocal {
Place mergeChanges(Place place);
Place findPlace(EventMap e, int x, int y);
void releaseUsersPlaces();
boolean reservePlace(Place place, User user);
boolean releasePlace(Place place, User user);
BigDecimal totalReservationPrice(EventMap e, Place newPlace);
boolean buySelectedPlaces(EventMap e) throws BortalCatchableException;
}