ca.bc.gov.webade
Class DefaultWebADEDatabaseDatastore

java.lang.Object
  extended byca.bc.gov.webade.WebADEDatabaseDatastore
      extended byca.bc.gov.webade.DefaultWebADEDatabaseDatastore
All Implemented Interfaces:
java.io.Serializable, WebADEDatastore

public final class DefaultWebADEDatabaseDatastore
extends WebADEDatabaseDatastore

Author:
jross
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface ca.bc.gov.webade.WebADEDatastore
ID_BUSINESS_PARTNER_TYPE, ID_CITIZEN_TYPE, ID_GOVERNMENT_TYPE
 
Constructor Summary
DefaultWebADEDatabaseDatastore()
           
 
Method Summary
 java.util.List findOrganizations(OrganizationSearchObject searchObject)
          Returns the set of organization records that match the given ministry-specific organization info.
 OrganizationSearchObject getOrganizationSearchMetadata()
          Returns an instance of the appropriate OrganizationSearchObject to be used to search for organizations.
 Organization loadOrganization(long organizationId)
          Loads the organization info for the given organization id.
 
Methods inherited from class ca.bc.gov.webade.WebADEDatabaseDatastore
createUserSearchQuery, findGroups, findUsers, findUsers, findWebADEUsers, getApplicationActions, getApplicationCode, getApplicationPreferences, getApplicationRoles, getAuthorizedUsers, getConnectionProxy, getDatastoreEnvironment, getElectronicAgreement, getGlobalPreferences, getGroupByGUID, getGroupSearchMetadata, getJavaEnvironment, getPooledResourceProperties, getPublicWebADEPermissions, getSourceDirectoryForUserType, getSupportedSourceDirectories, getSupportedUserTypes, getUserByEUserId, getUserByGUID, getUserById, getUserDefaultOrganization, getUserDefaultOrganization, getUserPreferences, getUserPreferences, getUsersByOrganization, getUsersByRole, getUsersByRoleAndOrganization, getUserSearchMetadata, getUserTypeForSourceDirectory, getWebADEApplicationPreferences, getWebADEExtensionPreferences, getWebADEGlobalPreferences, getWebADEUserInfo, getWebADEUserInfo, getWebADEUserPermissions, getWebADEUserPermissions, getWebADEUserPreferences, handlesSourceDirectory, handlesUserType, hasIndeterminateAuthorizations, hasUserAcceptedAgreement, hasUserAcceptedAgreement, init, isApplicationEnabled, isUserInGroups, isUserInGroups, loadApplicationConfig, loadExtension, saveWebADEUserPreferences, setApplicationCode, setApplicationEnabled, setUserAcceptedAgreement, setUserAcceptedAgreement, setUserDefaultOrganization, setUserDefaultOrganization, shutdown
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWebADEDatabaseDatastore

public DefaultWebADEDatabaseDatastore()
Method Detail

getOrganizationSearchMetadata

public OrganizationSearchObject getOrganizationSearchMetadata()
Description copied from interface: WebADEDatastore
Returns an instance of the appropriate OrganizationSearchObject to be used to search for organizations.

Returns:
The search object.
See Also:
WebADEDatastore.getOrganizationSearchMetadata()

loadOrganization

public Organization loadOrganization(long organizationId)
                              throws WebADEException
Description copied from interface: WebADEDatastore
Loads the organization info for the given organization id.

Parameters:
organizationId - The organization to load the organization info for.
Returns:
The given organization with the loaded info, or null if not found.
Throws:
WebADEException - Thrown if an unexpected error occurs while retrieving the info.
See Also:
WebADEDatastore.loadOrganization(long)

findOrganizations

public java.util.List findOrganizations(OrganizationSearchObject searchObject)
                                 throws WebADEException
Description copied from interface: WebADEDatastore
Returns the set of organization records that match the given ministry-specific organization info.

Parameters:
searchObject - The organization info to match Organization records for.
Returns:
A List of Organization objects.
Throws:
WebADEException - Thrown if an unexpected error occurs while retrieving the info.
See Also:
WebADEDatastore.findOrganizations(ca.bc.gov.webade.OrganizationSearchObject)