public class LibraryServiceImpl extends Object implements LibraryService
LibraryService
Constructor and Description |
---|
LibraryServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
clearLibraryCache() |
List<String> |
getCampusWithLibraries()
Returns a list of campus codes of campuses that have libraries
|
LibraryDao |
getDao()
Gets the reference to the
LibraryDao . |
LibraryHourSet |
getDisplayableHoursSet(LibraryHourSet hourSet)
Takes an hourset and generates a new hourset which can be displayed on the ui
|
List<Library> |
getLibraries()
Gets all the active libraries
|
Map<String,List<Library>> |
getLibrariesByCampus()
Gets the libraries in a map per campus sorted alphabetically on campus code
|
Library |
getLibrary(long libraryId)
Gets a library for the specified id
|
List<LibraryHourSet> |
getLibraryHourSets(long libraryId)
Gets the hour sets for a library
|
Library |
saveLibrary(Library library)
Persists the state of a library
|
LibraryHourPeriod |
saveLibraryHourPeriod(LibraryHourPeriod libraryHourPeriod)
Saves a library hour period
|
LibraryHourSet |
saveLibraryHourSets(LibraryHourSet lhs)
Saves a LibraryHourSet
|
void |
setDao(LibraryDao dao)
Sets the reference to the
LibraryDao . |
public LibraryServiceImpl()
public List<Library> getLibraries()
LibraryService
getLibraries
in interface LibraryService
public Library getLibrary(long libraryId)
LibraryService
getLibrary
in interface LibraryService
libraryId
- Id of the library to retrieve.public Library saveLibrary(Library library)
LibraryService
saveLibrary
in interface LibraryService
library
- The library to persist.public LibraryHourSet getDisplayableHoursSet(LibraryHourSet hourSet)
LibraryService
getDisplayableHoursSet
in interface LibraryService
public Map<String,List<Library>> getLibrariesByCampus()
LibraryService
getLibrariesByCampus
in interface LibraryService
public boolean clearLibraryCache()
public List<LibraryHourSet> getLibraryHourSets(long libraryId)
LibraryService
getLibraryHourSets
in interface LibraryService
public LibraryHourSet saveLibraryHourSets(LibraryHourSet lhs)
LibraryService
saveLibraryHourSets
in interface LibraryService
public void setDao(LibraryDao dao)
LibraryDao
.setDao
in interface LibraryService
dao
- The reference to the LibraryDao
.public LibraryDao getDao()
LibraryDao
.getDao
in interface LibraryService
LibraryDao
.public List<String> getCampusWithLibraries()
LibraryService
getCampusWithLibraries
in interface LibraryService
public LibraryHourPeriod saveLibraryHourPeriod(LibraryHourPeriod libraryHourPeriod)
LibraryService
saveLibraryHourPeriod
in interface LibraryService
Copyright © 2011–2015 The Kuali Foundation. All rights reserved.