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


Fields inherited from class com.ltu.smd116.bl.booking.BLBooking
articleDBP, articleTypeDBP, inventoryDBP, inventoryTypeDBP, personnelDBP, resourceDBP, resourceTypeDBP, serviceDBP, serviceTypeDBP, userDBP

Constructor Summary
BLBookingAdm()
           

Method Summary
 booleandeleteArticle(int id)
          Flags an Article as deleted.
 booleandeleteInventory(int id)
          Flags an Inventory as deleted.
 booleandeleteService(int id)
          Flags a Service as deleted.
 SortedVectorgetAllArticleTypes()
           
 SortedVectorgetAllInventoryTypes()
           
 SortedVectorgetAllResourceTypes()
           
 SortedVectorgetAllServiceManagers()
           
 SortedVectorgetAllServiceTypes()
           
 SortedVectorsearchArticle(String searchStr, int filter)
          Returns the searchresults in the manyArticles-sortedVector
 SortedVectorsearchInventory(String searchStr, int filter)
           
 SortedVectorsearchService(String searchStr, int filter)
           
 intsetArticle(ArticleContainer article)
          Saves a new or updates an Article.
 intsetInventory(InventoryContainer inventory)
          Saves a new or updates an Inventory.
 intsetService(ServiceContainer service)
          Saves a new or updates an Service.

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

Constructor Detail

BLBookingAdm

public BLBookingAdm()
Method Detail

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