com.ltu.smd116.bl.booking
Class BLBookingAdm
com.ltu.smd116.bl.BLCore
|
+--com.ltu.smd116.bl.booking.BLBooking
|
+--com.ltu.smd116.bl.booking.BLBookingAdm
- public class BLBookingAdm
- extends BLBooking
Contains all operations thats needed for the administration of services
Methods inherited from class com.ltu.smd116.bl.booking.BLBooking |
cancelBooking, getAllBookings, getAllBookingsArticle, getAllBookingsInventory, getAllBookingsResource, getAllBookingsService, getAllBookingsUser, getAllPersonnel, getAllResources, getAllServices, getAllServicesManager, getAllServicesResources, getAllServicesType, getAllServicetypes, getArticle, getBooking, getInventory, getResource, getResourceType, getService, getServicetype, setBooking |
BLBookingAdm
public BLBookingAdm()
deleteArticle
public boolean deleteArticle(int id)
- Flags an Article as deleted.
deleteInventory
public boolean deleteInventory(int id)
- Flags an Inventory as deleted.
deleteService
public boolean deleteService(int id)
- Flags a Service as deleted.
getAllArticleTypes
public SortedVector getAllArticleTypes()
getAllInventoryTypes
public SortedVector getAllInventoryTypes()
getAllResourceTypes
public SortedVector getAllResourceTypes()
getAllServiceManagers
public SortedVector getAllServiceManagers()
getAllServiceTypes
public SortedVector getAllServiceTypes()
searchArticle
public SortedVector searchArticle(String searchStr, int filter)
- Returns the searchresults in the manyArticles-sortedVector
searchInventory
public SortedVector searchInventory(String searchStr, int filter)
searchService
public SortedVector searchService(String searchStr, int filter)
setArticle
public int setArticle(ArticleContainer article)
- Saves a new or updates an Article. If the Id in the container
that's passed on as parameter is set, then it's an
update, if it's not it's a creation.
setInventory
public int setInventory(InventoryContainer inventory)
- Saves a new or updates an Inventory. If the Id in the container
that's passed on as parameter is set, then it's an
update, if it's not it's a creation.
setService
public int setService(ServiceContainer service)
- Saves a new or updates an Service. If the Id in the container
that's passed on as parameter is set, then it's an
update, if it's not it's a creation.
It returns its ID