Class BusinessObjectServiceImpl

java.lang.Object
org.kuali.rice.krad.service.impl.BusinessObjectServiceImpl
All Implemented Interfaces:
BusinessObjectService

@Deprecated public class BusinessObjectServiceImpl extends Object implements BusinessObjectService
Deprecated.
use new KRAD Data framework DataObjectService
This class is the service implementation for the BusinessObjectService structure. This is the default implementation, that is delivered with Kuali.
  • Constructor Details

    • BusinessObjectServiceImpl

      public BusinessObjectServiceImpl()
      Deprecated.
  • Method Details

    • save

      @Transactional public <T extends PersistableBusinessObject> T save(T bo)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Saves the passed in object via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if the object passed in is not a descendent of BusinessObject.
      Specified by:
      save in interface BusinessObjectService
      Parameters:
      bo - A BusinessObject instance or descendent that you wish to be stored.
    • save

      @Transactional public <T extends PersistableBusinessObject> List<T> save(List<T> businessObjects)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Saves the businessObjects on the list via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if any of the objects passed in is not a descendent of BusinessObject.
      Specified by:
      save in interface BusinessObjectService
      Parameters:
      businessObjects - A List<PersistableBusinessObject> of objects to persist.
    • linkAndSave

      @Transactional public <T extends PersistableBusinessObject> T linkAndSave(T bo)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Links up any contained objects, and then Saves the passed in object via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if the object passed in is not a descendent of BusinessObject.
      Specified by:
      linkAndSave in interface BusinessObjectService
      Parameters:
      bo - A BusinessObject instance or descendent that you wish to be stored.
    • linkAndSave

      @Transactional public <T extends PersistableBusinessObject> List<T> linkAndSave(List<T> businessObjects)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Links up any contained objects, and Saves the businessObjects on the list via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if any of the objects passed in is not a descendent of BusinessObject.
      Specified by:
      linkAndSave in interface BusinessObjectService
      Parameters:
      businessObjects - A List<BusinessObject> of objects to persist.
    • validateBusinessObjectForSave

      protected void validateBusinessObjectForSave(PersistableBusinessObject bo)
      Deprecated.
    • validateBusinessObjectForSave

      protected void validateBusinessObjectForSave(List<? extends PersistableBusinessObject> businessObjects)
      Deprecated.
    • isBusinessObjectAllowedForSave

      protected boolean isBusinessObjectAllowedForSave(PersistableBusinessObject bo)
      Deprecated.
      Returns true if the BusinessObjectService should be permitted to save instances of the given PersistableBusinessObject. Implementation checks a configuration parameter for class names of PersistableBusinessObjects that shouldn't be allowed to be saved.
    • findBySinglePrimaryKey

      public <T extends PersistableBusinessObject> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Retrieves an object instance identified by its primary key. For composite keys, use BusinessObjectService.findByPrimaryKey(Class, Map)
      Specified by:
      findBySinglePrimaryKey in interface BusinessObjectService
    • findByPrimaryKey

      public <T extends PersistableBusinessObject> T findByPrimaryKey(Class<T> clazz, Map<String,?> primaryKeys)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Retrieves an object instance identified by its primary keys and values. This can be done by constructing a map where the key to the map entry is the primary key attribute and the value of the entry being the primary key value. For composite keys, pass in each primaryKey attribute and its value as a map entry.
      Specified by:
      findByPrimaryKey in interface BusinessObjectService
    • retrieve

      public Object retrieve(Object object)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Retrieves an object instance identified by the class of the given object and the object's primary key values.
      Specified by:
      retrieve in interface BusinessObjectService
    • findAll

      public <T extends PersistableBusinessObject> List<T> findAll(Class<T> clazz)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type.
      Specified by:
      findAll in interface BusinessObjectService
    • findAll

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findAll(Class<T> clazz, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findAll in interface BusinessObjectService
    • findAllOrderBy

      public <T extends PersistableBusinessObject> List<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type.
      Specified by:
      findAllOrderBy in interface BusinessObjectService
    • findAllOrderBy

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findAllOrderBy in interface BusinessObjectService
    • findMatching

      public <T extends PersistableBusinessObject> List<T> findMatching(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      Description copied from interface: BusinessObjectService
      This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs, specifically attribute name and its expected value.
      Specified by:
      findMatching in interface BusinessObjectService
    • findMatching

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findMatching(Class<T> clazz, Map<String,?> fieldValues, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findMatching in interface BusinessObjectService
    • countMatching

      public <T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      Description copied from interface: BusinessObjectService
      This method retrieves a count of the business objects populated with data which match the criteria in the given Map.
      Specified by:
      countMatching in interface BusinessObjectService
      Returns:
      number of businessObjects of the given class whose fields match the values in the given expected-value Map
    • countMatching

      public <T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String,?> positiveFieldValues, Map<String,?> negativeFieldValues)
      Deprecated.
      Description copied from interface: BusinessObjectService
      This method retrieves a count of the business objects populated with data which match both the positive criteria and the negative criteria in the given Map.
      Specified by:
      countMatching in interface BusinessObjectService
      Returns:
      number of businessObjects of the given class whose fields match the values in the given expected-value Maps
    • findMatchingOrderBy

      public <T extends PersistableBusinessObject> List<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending)
      Deprecated.
      Description copied from interface: BusinessObjectService
      This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs, specifically attribute name and its expected value. Performs an order by on sort field.
      Specified by:
      findMatchingOrderBy in interface BusinessObjectService
    • findMatchingOrderBy

      public <T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest)
      Deprecated.
      Specified by:
      findMatchingOrderBy in interface BusinessObjectService
    • delete

      @Transactional public void delete(Object bo)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Deletes a business object from the database.
      Specified by:
      delete in interface BusinessObjectService
    • delete

      @Transactional public <T extends PersistableBusinessObject> void delete(List<T> boList)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Deletes each business object in the given List.
      Specified by:
      delete in interface BusinessObjectService
    • deleteMatching

      @Transactional public <T extends PersistableBusinessObject> void deleteMatching(Class<T> clazz, Map<String,?> fieldValues)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Deletes the object(s) matching the given field values
      Specified by:
      deleteMatching in interface BusinessObjectService
    • getReferenceIfExists

      public org.kuali.rice.krad.bo.BusinessObject getReferenceIfExists(org.kuali.rice.krad.bo.BusinessObject bo, String referenceName)
      Deprecated.
      Description copied from interface: BusinessObjectService
      This method attempts to retrieve the reference from a BO if it exists.
      Specified by:
      getReferenceIfExists in interface BusinessObjectService
      Parameters:
      bo - - populated BusinessObject instance that includes the referenceName property
      referenceName - - name of the member/property to load
      Returns:
      A populated object from the DB, if it exists
    • linkUserFields

      public void linkUserFields(Object bo)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Updates all KualiUser or Person objects contained within this BO, based on the UserID as the authoritative key. The appropriate foreign-key field in the BO itself is also updated. This allows UserIDs to be entered on forms, and the back-end will link up correctly based on this non-key field.
      Specified by:
      linkUserFields in interface BusinessObjectService
      Parameters:
      bo - The populated BO (or descendent) instance to be linked invalid input: '&' updated
    • linkUserFieldsInBoList

      protected void linkUserFieldsInBoList(List<PersistableBusinessObject> list)
      Deprecated.
    • manageReadOnly

      public <T extends PersistableBusinessObject> T manageReadOnly(T bo)
      Deprecated.
      Description copied from interface: BusinessObjectService
      Merges the given business object, but tells the ORM that the object is to be treated as Read Only, and even if it has changes, it will not be persisted to the database
      Specified by:
      manageReadOnly in interface BusinessObjectService
      Parameters:
      bo - the business object to managed
      Returns:
      the managed copied of the business object
    • getBusinessObjectDao

      protected BusinessObjectDao getBusinessObjectDao()
      Deprecated.
    • setBusinessObjectDao

      public void setBusinessObjectDao(BusinessObjectDao businessObjectDao)
      Deprecated.
    • setPersistenceStructureService

      public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
      Deprecated.
    • setPersonService

      public final void setPersonService(org.kuali.rice.kim.api.identity.PersonService personService)
      Deprecated.
    • getPersonService

      protected org.kuali.rice.kim.api.identity.PersonService getPersonService()
      Deprecated.
    • setPersistenceService

      public final void setPersistenceService(PersistenceService persistenceService)
      Deprecated.
    • getDataObjectMetaDataService

      protected DataObjectMetaDataService getDataObjectMetaDataService()
      Deprecated.
    • setDataObjectMetaDataService

      public void setDataObjectMetaDataService(DataObjectMetaDataService dataObjectMetadataService)
      Deprecated.