PlaceBeanLocal.java
1.07 KB
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
46
47
48
49
50
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package fi.insomnia.bortal.beans;
import java.math.BigDecimal;
import javax.ejb.Local;
import fi.insomnia.bortal.exceptions.BortalCatchableException;
import fi.insomnia.bortal.model.EventMap;
import fi.insomnia.bortal.model.Place;
import fi.insomnia.bortal.model.PlaceGroup;
import fi.insomnia.bortal.model.User;
/**
*
* @author tuukka
*/
@Local
// @RemoteDestination
public interface PlaceBeanLocal {
Place findPlace(EventMap e, int x, int y);
boolean reservePlace(Place place, User user);
int setBuyable(EventMap map, String buyableLike, boolean b);
// Place find(EventPk id);
boolean releasePlace(Place place);
Place mergeChanges(Place place);
PlaceGroup buySelectedPlaces(User user) throws BortalCatchableException;
// void releaseUsersPlaces(User user) throws PermissionDeniedException;
Place find(int placeId);
void unbuyPlace(Place place);
BigDecimal getTotalReservationPrice(User user, Place newPlace);
BigDecimal getTotalReservationPrice(Place newPlace);
}