Interface CampusService
public interface CampusService
CampusService interface.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionThis will return allCampus.This will return allCampusType.findCampuses(QueryByCriteria queryByCriteria) This method find Campuses based on a query criteria.findCampusTypes(QueryByCriteria queryByCriteria) This method find CampusTypes based on a query criteria.This will return aCampus.getCampusType(String code) This will return aCampusType.
-
Method Details
-
getCampus
@Cacheable(value="http://rice.kuali.org/location/v2_0/CampusType", key="\'code=\' + #p0") Campus getCampus(String code) throws RiceIllegalArgumentException This will return aCampus.- Parameters:
code- the code of the campus to return- Throws:
RiceIllegalArgumentException- if the code is null or blank
-
findAllCampuses
@Cacheable(value="http://rice.kuali.org/location/v2_0/CampusType", key="\'all\'") List<Campus> findAllCampuses()This will return allCampus. -
getCampusType
@Cacheable(value="http://rice.kuali.org/location/v2_0/CampusTypeType", key="\'code=\' + #p0") CampusType getCampusType(String code) throws RiceIllegalArgumentException This will return aCampusType.- Parameters:
code- the code of the campus type to return- Returns:
- CampusType object represented by the passed in code
- Throws:
RiceIllegalArgumentException- if the code is null
-
findAllCampusTypes
@Cacheable(value="http://rice.kuali.org/location/v2_0/CampusTypeType", key="\'all\'") List<CampusType> findAllCampusTypes()This will return allCampusType. -
findCampuses
CampusQueryResults findCampuses(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException This method find Campuses based on a query criteria. The criteria cannot be null.- Parameters:
queryByCriteria- the criteria. Cannot be null.- Returns:
- query results. will never return null.
- Throws:
IllegalArgumentException- if the queryByCriteria is nullRiceIllegalArgumentException- Since:
- 2.0.1
-
findCampusTypes
CampusTypeQueryResults findCampusTypes(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException This method find CampusTypes based on a query criteria. The criteria cannot be null.- Parameters:
queryByCriteria- the criteria. Cannot be null.- Returns:
- query results. will never return null.
- Throws:
IllegalArgumentException- if the queryByCriteria is nullRiceIllegalArgumentException- Since:
- 2.0.1
-