public class IdentityServiceImpl extends Object implements IdentityService
Modifier and Type | Field and Description |
---|---|
protected DataObjectService |
dataObjectService |
protected IdentityServiceDao |
identityServiceDao |
protected static String |
UNAVAILABLE |
Constructor and Description |
---|
IdentityServiceImpl() |
Modifier and Type | Method and Description |
---|---|
EntityAddress |
addAddressToEntity(EntityAddress address)
This will create a
EntityAddress exactly like the address passed in. |
EntityAffiliation |
addAffiliationToEntity(EntityAffiliation affiliation)
This will create a
EntityAffiliation exactly like the affiliation passed in. |
EntityBioDemographics |
addBioDemographicsToEntity(EntityBioDemographics bioDemographics)
This will create a
EntityBioDemographics exactly like the bioDemographics passed in. |
EntityCitizenship |
addCitizenshipToEntity(EntityCitizenship citizenship)
This will create a
EntityCitizenship exactly like the citizenship passed in. |
EntityEmail |
addEmailToEntity(EntityEmail email)
This will create a
EntityEmail exactly like the email passed in. |
EntityEmployment |
addEmploymentToEntity(EntityEmployment employment)
This will create a
EntityEmployment exactly like the employment passed in. |
EntityTypeContactInfo |
addEntityTypeContactInfoToEntity(EntityTypeContactInfo entityTypeData)
This will create a
EntityTypeContactInfo exactly like the entityTypeContactInfo passed in. |
EntityEthnicity |
addEthnicityToEntity(EntityEthnicity ethnicity)
This will create a
EntityEthnicity exactly like the ethnicity passed in. |
EntityExternalIdentifier |
addExternalIdentifierToEntity(EntityExternalIdentifier externalId)
This will create a
EntityExternalIdentifier exactly like the externalId passed in. |
EntityName |
addNameToEntity(EntityName name)
This will create a
EntityName exactly like the name passed in. |
EntityPhone |
addPhoneToEntity(EntityPhone phone)
This will create a
EntityPhone exactly like the phone passed in. |
Principal |
addPrincipalToEntity(Principal principal)
This will create a
Principal exactly like the principal passed in. |
EntityPrivacyPreferences |
addPrivacyPreferencesToEntity(EntityPrivacyPreferences privacyPreferences)
This will create a
EntityPrivacyPreferences exactly like the privacyPreferences passed in. |
EntityResidency |
addResidencyToEntity(EntityResidency residency)
This will create a
EntityResidency exactly like the residency passed in. |
EntityVisa |
addVisaToEntity(EntityVisa visa)
This will create a
EntityVisa exactly like the visa passed in. |
Entity |
createEntity(Entity entity)
This will create a
Entity exactly like the entity passed in. |
List<CodedAttribute> |
findAllAddressTypes()
Finds all EntityAddressTypes
|
List<EntityAffiliationType> |
findAllAffiliationTypes()
Finds all EntityAffiliationTypes
|
List<CodedAttribute> |
findAllCitizenshipStatuses()
Finds all EntityCitizenshipStatuses
|
List<CodedAttribute> |
findAllEmailTypes()
Finds all EntityEmailTypes
|
List<CodedAttribute> |
findAllEmploymentStatuses()
Finds all EntityEmploymentStatuses
|
List<CodedAttribute> |
findAllEmploymentTypes()
Finds all EntityEmploymentTypes
|
List<CodedAttribute> |
findAllEntityTypes()
Finds all EntityTypes
|
List<EntityExternalIdentifierType> |
findAllExternalIdendtifierTypes()
Finds all ExternalIdentifierTypes
|
List<CodedAttribute> |
findAllNameTypes()
Finds all EntityNameTypes
|
List<CodedAttribute> |
findAllPhoneTypes()
Finds all EntityPhoneTypes
|
EntityQueryResults |
findEntities(QueryByCriteria queryByCriteria)
This method finds Entities based on a query criteria.
|
EntityDefaultQueryResults |
findEntityDefaults(QueryByCriteria queryByCriteria)
This method finds EntityDefault data based on a query criteria.
|
protected EntityNameQueryResults |
findNames(QueryByCriteria queryByCriteria) |
PrincipalQueryResults |
findPrincipals(QueryByCriteria query)
This method finds Principals based on a query criteria.
|
CodedAttribute |
getAddressType(String code)
Gets the
CodedAttribute for a given EntityAddressType code. |
EntityAffiliationType |
getAffiliationType(String code)
Gets the
EntityAffiliationType for a given EntityAffiliationType code. |
CodedAttribute |
getCitizenshipStatus(String code)
Gets the
CodedAttribute for a given EntityCitizenship status code. |
EntityNamePrincipalName |
getDefaultNamesForPrincipalId(String principalId)
This returns the display name information for the given principal
without loading the full person object.
|
Map<String,EntityNamePrincipalName> |
getDefaultNamesForPrincipalIds(List<String> principalIds)
This returns the display name information for the given principals without loading the full person object.
|
CodedAttribute |
getEmailType(String code)
Gets the
CodedAttribute for a given EntityEmail type code. |
CodedAttribute |
getEmploymentStatus(String code)
Gets the
CodedAttribute for a given EntityEmployment status code. |
CodedAttribute |
getEmploymentType(String code)
Gets the
CodedAttribute for a given EntityEmployment type code. |
Entity |
getEntity(String entityId)
Gets a
Entity from an id. |
protected EntityAddressBo |
getEntityAddressBo(String addressId) |
protected EntityAddressBo |
getEntityAddressBo(String entityId,
String entityTypeCode,
String addressTypeCode) |
protected EntityAffiliationBo |
getEntityAffiliationBo(String id) |
protected EntityBioDemographicsBo |
getEntityBioDemographicsBo(String entityId) |
protected EntityBo |
getEntityBo(String entityId) |
protected EntityBo |
getEntityBoByEmployeeId(String employeeId) |
protected EntityBo |
getEntityBoByPrincipalId(String principalId) |
protected EntityBo |
getEntityBoByPrincipalName(String principalName) |
Entity |
getEntityByEmployeeId(String employeeId)
Gets a
Entity from a employeeId. |
protected EntityBo |
getEntityByKeyValue(String key,
String value)
Generic helper method for performing a lookup through the business object service.
|
Entity |
getEntityByPrincipalId(String principalId)
Gets a
Entity from a principalId. |
Entity |
getEntityByPrincipalName(String principalName)
Gets a
Entity from a principalName. |
protected EntityCitizenshipBo |
getEntityCitizenshipBo(String id) |
protected EntityCitizenshipBo |
getEntityCitizenshipBo(String entityId,
String citizenshipStatusCode) |
EntityDefault |
getEntityDefault(String entityId)
Gets a
EntityDefault from an id. |
EntityDefault |
getEntityDefaultByEmployeeId(String employeeId)
Gets a
EntityDefault from an employeeId. |
EntityDefault |
getEntityDefaultByPrincipalId(String principalId)
Gets a
EntityDefault from an principalId. |
EntityDefault |
getEntityDefaultByPrincipalName(String principalName)
Gets a
EntityDefault from an principalName. |
protected EntityEmailBo |
getEntityEmailBo(String emailId) |
protected EntityEmailBo |
getEntityEmailBo(String entityId,
String entityTypeCode,
String emailTypeCode) |
protected EntityEmploymentBo |
getEntityEmploymentBo(String id) |
protected EntityEmploymentBo |
getEntityEmploymentBo(String entityId,
String employmentTypeCode,
String employmentStatusCode,
String employmentAffiliationId) |
protected EntityEthnicityBo |
getEntityEthnicityBo(String ethnicityId) |
protected EntityExternalIdentifierBo |
getEntityExternalIdentifierBo(String entityId,
String externalIdentifierTypeCode) |
protected EntityNameBo |
getEntityNameBo(String id) |
protected EntityNameBo |
getEntityNameBo(String entityId,
String nameTypeCode) |
protected EntityPhoneBo |
getEntityPhoneBo(String phoneId) |
protected EntityPhoneBo |
getEntityPhoneBo(String entityId,
String entityTypeCode,
String phoneTypeCode) |
EntityPrivacyPreferences |
getEntityPrivacyPreferences(String entityId)
Gets a
EntityPrivacyPreferences for a given id. |
protected EntityResidencyBo |
getEntityResidencyBo(String residencyId) |
CodedAttribute |
getEntityType(String code)
Gets the
CodedAttribute for a given EntityType code. |
protected EntityTypeContactInfoBo |
getEntityTypeDataBo(String entityId,
String entityTypeCode) |
protected EntityVisaBo |
getEntityVisaBo(String visaId) |
EntityExternalIdentifierType |
getExternalIdentifierType(String code)
Gets the
EntityExternalIdentifierType for a given type code. |
IdentityServiceDao |
getIdentityServiceDao() |
CodedAttribute |
getNameType(String code)
Gets the
CodedAttribute for a given EntityName type code. |
CodedAttribute |
getPhoneType(String code)
Gets the
CodedAttribute for a given EntityPhone type code. |
Principal |
getPrincipal(String principalId)
Gets a
Principal from an principalId. |
protected PrincipalBo |
getPrincipalBo(String principalId) |
protected PrincipalBo |
getPrincipalBoByPrincipalName(String principalName) |
Principal |
getPrincipalByPrincipalName(String principalName)
Gets a
Principal from an principalName. |
Principal |
getPrincipalByPrincipalNameAndPassword(String principalName,
String password)
Gets a
Principal from an principalName and password. |
List<Principal> |
getPrincipals(List<String> principalIds)
Gets a list of
Principal from a string list of principalId. |
List<Principal> |
getPrincipalsByEmployeeId(String employeeId)
Gets a list of
Principal from an employeeId |
List<Principal> |
getPrincipalsByEntityId(String entityId)
Gets a list of
Principal from an entityId. |
EntityPrivacyPreferences |
getPrivacyPreferencesForPrincipalId(String principalId)
Returns the privacy preferences for the given principal id or null if the principal id is not valid.
|
EntityAddress |
inactivateAddress(String addressId)
This will inactivate a
EntityAddress with the id passed in. |
EntityAffiliation |
inactivateAffiliation(String id)
This will inactivate a
EntityAffiliation with the id passed in. |
EntityCitizenship |
inactivateCitizenship(String id)
This will inactivate a
EntityCitizenship with the unique id passed in. |
EntityEmail |
inactivateEmail(String emailId)
This will inactivate the
EntityEmail with the passed in id. |
EntityEmployment |
inactivateEmployment(String id)
This will inactivate a
EntityEmployment with the passed in id. |
Entity |
inactivateEntity(String entityId)
This will inactivate a
Entity . |
EntityTypeContactInfo |
inactivateEntityTypeContactInfo(String entityId,
String entityTypeCode)
This will inactivate a
EntityTypeContactInfo with the passed in parameters. |
EntityName |
inactivateName(String id)
This will inactivate a
EntityName with the passed in id. |
EntityPhone |
inactivatePhone(String phoneId)
This will inactivate the
EntityPhone with the passed in id. |
Principal |
inactivatePrincipal(String principalId)
This will inactivate a
Principal . |
Principal |
inactivatePrincipalByName(String principalName)
This will inactivate a
Principal . |
protected void |
incomingParamCheck(Object object,
String name) |
void |
setDataObjectService(DataObjectService dataObjectService) |
void |
setIdentityServiceDao(IdentityServiceDao identityServiceDao) |
EntityAddress |
updateAddress(EntityAddress address)
This will update a
EntityAddress exactly like the address passed in. |
EntityAffiliation |
updateAffiliation(EntityAffiliation affiliation)
This will update a
EntityAffiliation exactly like the affiliation passed in. |
EntityBioDemographics |
updateBioDemographics(EntityBioDemographics bioDemographics)
This will update a
EntityBioDemographics exactly like the bioDemographics passed in. |
EntityCitizenship |
updateCitizenship(EntityCitizenship citizenship)
This will update a
EntityCitizenship exactly like the citizenship passed in. |
EntityEmail |
updateEmail(EntityEmail email)
This will update a
EntityEmail exactly like the email passed in. |
EntityEmployment |
updateEmployment(EntityEmployment employment)
This will update a
EntityEmployment exactly like the employment passed in. |
Entity |
updateEntity(Entity entity)
This will update a
Entity . |
EntityTypeContactInfo |
updateEntityTypeContactInfo(EntityTypeContactInfo entityTypeContactInfo)
This will update a
EntityTypeContactInfo exactly like the entityTypeContactInfo passed in. |
EntityEthnicity |
updateEthnicity(EntityEthnicity ethnicity)
This will update a
EntityEthnicity exactly like the ethnicity passed in. |
EntityExternalIdentifier |
updateExternalIdentifier(EntityExternalIdentifier externalId)
This will update a
EntityExternalIdentifier exactly like the externalId passed in. |
EntityName |
updateName(EntityName name)
This will update a
EntityName exactly like the name passed in. |
EntityPhone |
updatePhone(EntityPhone phone)
This will update a
EntityPhone exactly like the phone passed in. |
Principal |
updatePrincipal(Principal principal)
This will update a
Principal exactly like the principal passed in. |
EntityPrivacyPreferences |
updatePrivacyPreferences(EntityPrivacyPreferences privacyPreferences)
This will update a
EntityPrivacyPreferences exactly like the privacyPreferences passed in. |
EntityResidency |
updateResidency(EntityResidency residency)
This will update a
EntityResidency exactly like the residency passed in. |
EntityVisa |
updateVisa(EntityVisa visa)
This will update a
EntityVisa exactly like the visa passed in. |
protected static final String UNAVAILABLE
protected DataObjectService dataObjectService
protected IdentityServiceDao identityServiceDao
public IdentityServiceImpl()
public Entity getEntity(String entityId) throws RiceIllegalArgumentException
IdentityService
Entity
from an id.
This method will return null if the Entity does not exist.
getEntity
in interface IdentityService
entityId
- the unique id to retrieve the entity by. cannot be null.Entity
or nullRiceIllegalArgumentException
- if the id is blankpublic Entity getEntityByPrincipalId(String principalId) throws RiceIllegalArgumentException
IdentityService
Entity
from a principalId.
This method will return null if the Entity does not exist.
getEntityByPrincipalId
in interface IdentityService
principalId
- the unique id to retrieve the entity by. cannot be null.Entity
or nullRiceIllegalArgumentException
- if the principalId is blankpublic Entity getEntityByPrincipalName(String principalName) throws RiceIllegalArgumentException
IdentityService
Entity
from a principalName.
This method will return null if the Entity does not exist.
getEntityByPrincipalName
in interface IdentityService
principalName
- the unique id to retrieve the entity by. cannot be null.Entity
or nullRiceIllegalArgumentException
- if the id is blankpublic Entity getEntityByEmployeeId(String employeeId) throws RiceIllegalArgumentException
IdentityService
Entity
from a employeeId.
This method will return null if the Entity does not exist.
getEntityByEmployeeId
in interface IdentityService
employeeId
- the unique id to retrieve the entity by. cannot be null.Entity
or nullRiceIllegalArgumentException
- if the employeeId is blankpublic EntityDefault getEntityDefault(String entityId) throws RiceIllegalArgumentException
IdentityService
EntityDefault
from an id.
EntityDefault
is a condensed version of Entity
that contains
default values of its subclasses
This method will return null if the Entity does not exist.
getEntityDefault
in interface IdentityService
entityId
- the unique id to retrieve the entity by. cannot be null.EntityDefault
or nullRiceIllegalArgumentException
- if the id is blankpublic EntityDefault getEntityDefaultByPrincipalId(String principalId) throws RiceIllegalArgumentException
IdentityService
EntityDefault
from an principalId.
EntityDefault
is a condensed version of Entity
that contains
default values of its subclasses
This method will return null if the Entity does not exist.
getEntityDefaultByPrincipalId
in interface IdentityService
principalId
- the unique id to retrieve the entity by. cannot be null.EntityDefault
or nullRiceIllegalArgumentException
- if the principalId is blankpublic EntityDefault getEntityDefaultByPrincipalName(String principalName) throws RiceIllegalArgumentException
IdentityService
EntityDefault
from an principalName.
EntityDefault
is a condensed version of Entity
that contains
default values of its subclasses
This method will return null if the Entity does not exist.
getEntityDefaultByPrincipalName
in interface IdentityService
principalName
- the unique id to retrieve the entity by. cannot be null.EntityDefault
or nullRiceIllegalArgumentException
- if the principalId is blankpublic EntityDefault getEntityDefaultByEmployeeId(String employeeId) throws RiceIllegalArgumentException
IdentityService
EntityDefault
from an employeeId.
EntityDefault
is a condensed version of Entity
that contains
default values of its subclasses
This method will return null if the Entity does not exist.
getEntityDefaultByEmployeeId
in interface IdentityService
employeeId
- the unique id to retrieve the entity by. cannot be null.EntityDefault
or nullRiceIllegalArgumentException
- if the employeeId is blankpublic Principal getPrincipalByPrincipalNameAndPassword(String principalName, String password) throws RiceIllegalArgumentException
IdentityService
Principal
from an principalName and password.
This method will return null if the Principal does not exist or the password is incorrect.
getPrincipalByPrincipalNameAndPassword
in interface IdentityService
principalName
- the unique id to retrieve the principal by. cannot be null.password
- the password for the principalPrincipal
or nullRiceIllegalArgumentException
- if the principalName is blankpublic Principal addPrincipalToEntity(Principal principal) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
Principal
exactly like the principal passed in.
The principal object passed in must be populated with an entityId and a principalNameaddPrincipalToEntity
in interface IdentityService
principal
- the principal to createRiceIllegalArgumentException
- if the principal is nullRiceIllegalStateException
- if the principal already exists in the system or the principal object is not populated with entityId and principalNamepublic Principal updatePrincipal(Principal principal) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
Principal
exactly like the principal passed in.updatePrincipal
in interface IdentityService
principal
- the principal to updateRiceIllegalArgumentException
- if the principal is nullRiceIllegalStateException
- if the principal does not exist in the system.public Principal inactivatePrincipal(String principalId) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
Principal
.inactivatePrincipal
in interface IdentityService
principalId
- the unique id of the principal to inactivateRiceIllegalArgumentException
- if the principal is nullRiceIllegalStateException
- if the principal does not exist in the system.public Principal inactivatePrincipalByName(String principalName) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
Principal
.inactivatePrincipalByName
in interface IdentityService
principalName
- the unique principalName of the principal to inactivateRiceIllegalArgumentException
- if the principal is nullRiceIllegalStateException
- if the principal does not exist in the system.public EntityTypeContactInfo addEntityTypeContactInfoToEntity(EntityTypeContactInfo entityTypeData) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityTypeContactInfo
exactly like the entityTypeContactInfo passed in.
The EntityTypeContactInfo object passed in must be populated with an entityId and a entityTypeCodeaddEntityTypeContactInfoToEntity
in interface IdentityService
entityTypeData
- the EntityTypeContactInfo to createRiceIllegalArgumentException
- if the entityTypeContactInfo is nullRiceIllegalStateException
- if the entityTypeContactInfo already exists in the system or the EntityTypeContactInfo object is not populated with entityId and entityTypeCodeprotected EntityTypeContactInfoBo getEntityTypeDataBo(String entityId, String entityTypeCode)
public EntityTypeContactInfo updateEntityTypeContactInfo(EntityTypeContactInfo entityTypeContactInfo) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityTypeContactInfo
exactly like the entityTypeContactInfo passed in.updateEntityTypeContactInfo
in interface IdentityService
entityTypeContactInfo
- the EntityTypeContactInfo to updateRiceIllegalArgumentException
- if the entityTypeContactInfo is nullRiceIllegalStateException
- if the entityTypeContactInfo does not exist in the system.public EntityTypeContactInfo inactivateEntityTypeContactInfo(String entityId, String entityTypeCode) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityTypeContactInfo
with the passed in parameters.inactivateEntityTypeContactInfo
in interface IdentityService
entityId
- the entityId of the EntityTypeContactInfo to inactivateentityTypeCode
- the entityTypeCode of the EntityTypeContactInfo to inactivateRiceIllegalArgumentException
- if the entityId or entityTypeCode passed in is nullRiceIllegalStateException
- if the EntityTypeContactInfo does not exist in the system.protected EntityAddressBo getEntityAddressBo(String entityId, String entityTypeCode, String addressTypeCode)
protected EntityAddressBo getEntityAddressBo(String addressId)
public EntityAddress addAddressToEntity(EntityAddress address) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityAddress
exactly like the address passed in.
The EntityAddress object passed in must be populated with an entityId and a entityTypeCodeaddAddressToEntity
in interface IdentityService
address
- the EntityAddress to createRiceIllegalArgumentException
- if the address is nullRiceIllegalStateException
- if the address already exists in the system or address is not populated with entityId and entityTypeCodepublic EntityAddress updateAddress(EntityAddress address) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityAddress
exactly like the address passed in.updateAddress
in interface IdentityService
address
- the EntityAddress to updateRiceIllegalArgumentException
- if the address does not exist in the system.RiceIllegalStateException
public EntityAddress inactivateAddress(String addressId) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityAddress
with the id passed in.inactivateAddress
in interface IdentityService
addressId
- the unique id of the EntityAddress to inactivateRiceIllegalArgumentException
- if the id is nullRiceIllegalStateException
- if the address does not exist in the system.protected EntityEmailBo getEntityEmailBo(String entityId, String entityTypeCode, String emailTypeCode)
protected EntityEmailBo getEntityEmailBo(String emailId)
public EntityEmail addEmailToEntity(EntityEmail email) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityEmail
exactly like the email passed in.
The EntityEmail object passed in must be populated with an entityId and a entityTypeCodeaddEmailToEntity
in interface IdentityService
email
- the EntityEmail to createRiceIllegalArgumentException
- if the email is nullRiceIllegalStateException
- if the email already exists in the system or email is not populated with entityId and entityTypeCodepublic EntityEmail updateEmail(EntityEmail email) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityEmail
exactly like the email passed in.updateEmail
in interface IdentityService
email
- the EntityEmail to updateRiceIllegalArgumentException
- if the email is nullRiceIllegalStateException
- if the email does not exist in the system.public EntityEmail inactivateEmail(String emailId) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityEmail
with the passed in id.inactivateEmail
in interface IdentityService
emailId
- the unique id of the EntityEmail to inactivateRiceIllegalArgumentException
- if the id is nullRiceIllegalStateException
- if the email does not exist in the system.protected EntityPhoneBo getEntityPhoneBo(String entityId, String entityTypeCode, String phoneTypeCode)
protected EntityPhoneBo getEntityPhoneBo(String phoneId)
public EntityPhone addPhoneToEntity(EntityPhone phone) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityPhone
exactly like the phone passed in.
The EntityPhone object passed in must be populated with an entityId and a entityTypeCodeaddPhoneToEntity
in interface IdentityService
phone
- the EntityPhone to createRiceIllegalArgumentException
- if the phone is nullRiceIllegalStateException
- if the phone already exists in the system or phone is not populated with entityId and entityTypeCodepublic EntityPhone updatePhone(EntityPhone phone) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityPhone
exactly like the phone passed in.updatePhone
in interface IdentityService
phone
- the EntityPhone to updateRiceIllegalArgumentException
- if the phone is nullRiceIllegalStateException
- if the phone does not exist in the system.public EntityPhone inactivatePhone(String phoneId) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityPhone
with the passed in id.inactivatePhone
in interface IdentityService
phoneId
- the unique id of the EntityPhone to inactivateRiceIllegalArgumentException
- if the id is nullRiceIllegalStateException
- if the phone does not exist in the system.protected EntityExternalIdentifierBo getEntityExternalIdentifierBo(String entityId, String externalIdentifierTypeCode)
public EntityExternalIdentifier addExternalIdentifierToEntity(EntityExternalIdentifier externalId) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityExternalIdentifier
exactly like the externalId passed in.
The EntityExternalIdentifier object passed in must be populated with an entityId and a externalIdentifierTypeCodeaddExternalIdentifierToEntity
in interface IdentityService
externalId
- the EntityExternalIdentifier to createRiceIllegalArgumentException
- if the externalId is nullRiceIllegalStateException
- if the externalId already exists in the system or externalId is not populated with entityId and externalIdentifierTypeCodepublic EntityExternalIdentifier updateExternalIdentifier(EntityExternalIdentifier externalId) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityExternalIdentifier
exactly like the externalId passed in.updateExternalIdentifier
in interface IdentityService
externalId
- the EntityExternalIdentifier to updateRiceIllegalArgumentException
- if the externalId is nullRiceIllegalStateException
- if the externalId does not exist in the system.protected EntityAffiliationBo getEntityAffiliationBo(String id)
public EntityAffiliation addAffiliationToEntity(EntityAffiliation affiliation) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityAffiliation
exactly like the affiliation passed in.
The EntityAffiliation object passed in must be populated with an entityId and a affiliationTypeaddAffiliationToEntity
in interface IdentityService
affiliation
- the EntityAffiliation to createRiceIllegalArgumentException
- if the affiliation is nullRiceIllegalStateException
- if the affiliation already exists in the system or affiliation is not populated with entityId and affiliationTypepublic EntityAffiliation updateAffiliation(EntityAffiliation affiliation) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityAffiliation
exactly like the affiliation passed in.updateAffiliation
in interface IdentityService
affiliation
- the EntityAffiliation to updateRiceIllegalArgumentException
- if the affiliation is nullRiceIllegalStateException
- if the affiliation does not exist in the system.public EntityAffiliation inactivateAffiliation(String id) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityAffiliation
with the id passed in.inactivateAffiliation
in interface IdentityService
id
- the unique id of the EntityAffiliation to inactivateRiceIllegalArgumentException
- if the affiliation is nullRiceIllegalStateException
- if the affiliation does not exist in the system.public EntityQueryResults findEntities(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
IdentityService
findEntities
in interface IdentityService
queryByCriteria
- the criteria. Cannot be null.RiceIllegalArgumentException
- if the queryByCriteria is nullpublic EntityDefaultQueryResults findEntityDefaults(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
IdentityService
findEntityDefaults
in interface IdentityService
queryByCriteria
- the criteria. Cannot be null.RiceIllegalArgumentException
- if the queryByCriteria is nullprotected EntityNameQueryResults findNames(QueryByCriteria queryByCriteria)
public EntityPrivacyPreferences getEntityPrivacyPreferences(String entityId) throws RiceIllegalArgumentException
IdentityService
EntityPrivacyPreferences
for a given id.
This method will return null if the EntityPrivacyPreferences does not exist.
getEntityPrivacyPreferences
in interface IdentityService
entityId
- the unique id to retrieve the EntityPrivacyPreferences by. Cannot be null.EntityPrivacyPreferences
or nullRiceIllegalArgumentException
- if the entityId is blankpublic Principal getPrincipal(String principalId) throws RiceIllegalArgumentException
IdentityService
Principal
from an principalId.
This method will return null if the Principal does not exist.
getPrincipal
in interface IdentityService
principalId
- the unique id to retrieve the principal by. cannot be null.Principal
or nullRiceIllegalArgumentException
- if the principalId is blankpublic List<Principal> getPrincipals(List<String> principalIds)
IdentityService
Principal
from a string list of principalId.
This method will only return principals that exist.
getPrincipals
in interface IdentityService
principalIds
- the unique id to retrieve the principal by. cannot be null.Principal
protected PrincipalBo getPrincipalBo(String principalId)
protected EntityBo getEntityBo(String entityId)
public Principal getPrincipalByPrincipalName(String principalName) throws RiceIllegalArgumentException
IdentityService
Principal
from an principalName.
This method will return null if the Principal does not exist.
getPrincipalByPrincipalName
in interface IdentityService
principalName
- the unique id to retrieve the principal by. cannot be null.Principal
or nullRiceIllegalArgumentException
protected PrincipalBo getPrincipalBoByPrincipalName(String principalName) throws RiceIllegalArgumentException
RiceIllegalArgumentException
public List<Principal> getPrincipalsByEntityId(String entityId) throws RiceIllegalArgumentException
IdentityService
Principal
from an entityId.
This method will only return principals that exist.
getPrincipalsByEntityId
in interface IdentityService
entityId
- the unique id to retrieve the principals by. cannot be null.Principal
RiceIllegalArgumentException
- if the entityId is blankpublic List<Principal> getPrincipalsByEmployeeId(String employeeId) throws RiceIllegalArgumentException
IdentityService
Principal
from an employeeId
This method will only return principals that exist.
getPrincipalsByEmployeeId
in interface IdentityService
employeeId
- the employee id to retrieve the principals by. cannot be null.Principal
RiceIllegalArgumentException
- if the employeeId is blankprotected EntityBo getEntityBoByPrincipalName(String principalName)
protected EntityBo getEntityBoByPrincipalId(String principalId)
protected EntityBo getEntityBoByEmployeeId(String employeeId)
protected EntityBo getEntityByKeyValue(String key, String value)
public CodedAttribute getAddressType(String code) throws RiceIllegalArgumentException
IdentityService
CodedAttribute
for a given EntityAddressType code.
This method will return null if the code does not exist.
getAddressType
in interface IdentityService
code
- the unique id to retrieve the Type by. Cannot be null.CodedAttribute
or nullRiceIllegalArgumentException
- if the code is blankpublic List<CodedAttribute> findAllAddressTypes()
IdentityService
findAllAddressTypes
in interface IdentityService
CodedAttribute
public EntityAffiliationType getAffiliationType(String code) throws RiceIllegalArgumentException
IdentityService
EntityAffiliationType
for a given EntityAffiliationType code.
This method will return null if the code does not exist.
getAffiliationType
in interface IdentityService
code
- the unique id to retrieve the EntityAffiliationType by. Cannot be null.EntityAffiliationType
or nullRiceIllegalArgumentException
- if the code is blankpublic List<EntityAffiliationType> findAllAffiliationTypes()
IdentityService
findAllAffiliationTypes
in interface IdentityService
EntityAffiliationType
public CodedAttribute getCitizenshipStatus(String code) throws RiceIllegalArgumentException
IdentityService
CodedAttribute
for a given EntityCitizenship status code.
This method will return null if the code does not exist.
getCitizenshipStatus
in interface IdentityService
code
- the unique id to retrieve the Type by. Cannot be null.CodedAttribute
or nullRiceIllegalArgumentException
- if the code is blankpublic List<CodedAttribute> findAllCitizenshipStatuses()
IdentityService
findAllCitizenshipStatuses
in interface IdentityService
CodedAttribute
public CodedAttribute getEmailType(String code) throws RiceIllegalArgumentException
IdentityService
CodedAttribute
for a given EntityEmail type code.
This method will return null if the code does not exist.
getEmailType
in interface IdentityService
code
- the unique id to retrieve the Type by. Cannot be null.CodedAttribute
or nullRiceIllegalArgumentException
- if the code is blankpublic List<CodedAttribute> findAllEmailTypes()
IdentityService
findAllEmailTypes
in interface IdentityService
CodedAttribute
public PrincipalQueryResults findPrincipals(QueryByCriteria query) throws RiceIllegalArgumentException
IdentityService
findPrincipals
in interface IdentityService
query
- the criteria. Cannot be null.RiceIllegalArgumentException
public CodedAttribute getEmploymentStatus(String code) throws RiceIllegalArgumentException
IdentityService
CodedAttribute
for a given EntityEmployment status code.
This method will return null if the code does not exist.
getEmploymentStatus
in interface IdentityService
code
- the unique id to retrieve the Type by. Cannot be null.CodedAttribute
or nullRiceIllegalArgumentException
- if the code is blankpublic List<CodedAttribute> findAllEmploymentStatuses()
IdentityService
findAllEmploymentStatuses
in interface IdentityService
CodedAttribute
public CodedAttribute getEmploymentType(String code) throws RiceIllegalArgumentException
IdentityService
CodedAttribute
for a given EntityEmployment type code.
This method will return null if the code does not exist.
getEmploymentType
in interface IdentityService
code
- the unique id to retrieve the Type by. Cannot be null.CodedAttribute
or nullRiceIllegalArgumentException
- if the code is blankpublic List<CodedAttribute> findAllEmploymentTypes()
IdentityService
findAllEmploymentTypes
in interface IdentityService
CodedAttribute
public CodedAttribute getNameType(String code) throws RiceIllegalArgumentException
IdentityService
CodedAttribute
for a given EntityName type code.
This method will return null if the code does not exist.
getNameType
in interface IdentityService
code
- the unique id to retrieve the Type by. Cannot be null.CodedAttribute
or nullRiceIllegalArgumentException
- if the code is blankpublic List<CodedAttribute> findAllNameTypes()
IdentityService
findAllNameTypes
in interface IdentityService
CodedAttribute
public CodedAttribute getEntityType(String code) throws RiceIllegalArgumentException
IdentityService
CodedAttribute
for a given EntityType code.
This method will return null if the code does not exist.
getEntityType
in interface IdentityService
code
- the unique id to retrieve the Type by. Cannot be null.CodedAttribute
or nullRiceIllegalArgumentException
- if the code is blankpublic List<CodedAttribute> findAllEntityTypes()
IdentityService
findAllEntityTypes
in interface IdentityService
CodedAttribute
public EntityExternalIdentifierType getExternalIdentifierType(String code) throws RiceIllegalArgumentException
IdentityService
EntityExternalIdentifierType
for a given type code.
This method will return null if the code does not exist.
getExternalIdentifierType
in interface IdentityService
code
- the unique id to retrieve the EntityExternalIdentifierType by. Cannot be null.CodedAttribute
or nullRiceIllegalArgumentException
- if the code is blankpublic List<EntityExternalIdentifierType> findAllExternalIdendtifierTypes()
IdentityService
findAllExternalIdendtifierTypes
in interface IdentityService
EntityExternalIdentifierType
public CodedAttribute getPhoneType(String code) throws RiceIllegalArgumentException
IdentityService
CodedAttribute
for a given EntityPhone type code.
This method will return null if the code does not exist.
getPhoneType
in interface IdentityService
code
- the unique id to retrieve the Type by. Cannot be null.CodedAttribute
or nullRiceIllegalArgumentException
- if the code is blankpublic List<CodedAttribute> findAllPhoneTypes()
IdentityService
findAllPhoneTypes
in interface IdentityService
CodedAttribute
public Entity createEntity(Entity entity) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
Entity
exactly like the entity passed in.createEntity
in interface IdentityService
entity
- the entity to createRiceIllegalArgumentException
- if the entity is nullRiceIllegalStateException
- if the entity already exists in the systempublic Entity updateEntity(Entity entity) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
Entity
.updateEntity
in interface IdentityService
entity
- the entity to updateRiceIllegalArgumentException
- if the entity is nullRiceIllegalStateException
- if the entity does not already exist in the systempublic Entity inactivateEntity(String entityId) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
Entity
.inactivateEntity
in interface IdentityService
entityId
- the unique id of the entity to inactivateRiceIllegalArgumentException
- if the entity is nullRiceIllegalStateException
- if the entity does not already exist in the systempublic EntityPrivacyPreferences addPrivacyPreferencesToEntity(EntityPrivacyPreferences privacyPreferences) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityPrivacyPreferences
exactly like the privacyPreferences passed in.
The EntityPrivacyPreferences object passed in must be populated with an entityIdaddPrivacyPreferencesToEntity
in interface IdentityService
privacyPreferences
- the EntityPrivacyPreferences to createRiceIllegalArgumentException
- if the privacyPreferences is nullRiceIllegalStateException
- if the privacyPreferences already exists in the system or privacyPreferences is not populated with entityIdpublic EntityPrivacyPreferences updatePrivacyPreferences(EntityPrivacyPreferences privacyPreferences) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityPrivacyPreferences
exactly like the privacyPreferences passed in.updatePrivacyPreferences
in interface IdentityService
privacyPreferences
- the EntityPrivacyPreferences to updateRiceIllegalArgumentException
- if the privacyPreferences is nullRiceIllegalStateException
- if the privacyPreferences does not exist in the system.protected EntityCitizenshipBo getEntityCitizenshipBo(String entityId, String citizenshipStatusCode)
protected EntityCitizenshipBo getEntityCitizenshipBo(String id)
public EntityCitizenship addCitizenshipToEntity(EntityCitizenship citizenship) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityCitizenship
exactly like the citizenship passed in.
The EntityCitizenship object passed in must be populated with an entityId and a statusaddCitizenshipToEntity
in interface IdentityService
citizenship
- the EntityCitizenship to createRiceIllegalArgumentException
- if the citizenship is nullRiceIllegalStateException
- if the citizenship already exists in the system or citizenship is not populated with entityId and statuspublic EntityCitizenship updateCitizenship(EntityCitizenship citizenship) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityCitizenship
exactly like the citizenship passed in.updateCitizenship
in interface IdentityService
citizenship
- the EntityCitizenship to updateRiceIllegalArgumentException
- if the citizenship is nullRiceIllegalStateException
- if the citizenship does not exist in the system.public EntityCitizenship inactivateCitizenship(String id) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityCitizenship
with the unique id passed in.inactivateCitizenship
in interface IdentityService
id
- the id of the EntityCitizenship to inactivateRiceIllegalArgumentException
- if the citizenship is nullRiceIllegalStateException
- if the citizenship does not exist in the system.protected EntityEthnicityBo getEntityEthnicityBo(String ethnicityId)
public EntityEthnicity addEthnicityToEntity(EntityEthnicity ethnicity) throws RiceIllegalArgumentException
IdentityService
EntityEthnicity
exactly like the ethnicity passed in.
The EntityEthnicity object passed in must be populated with an entityId and a ethnicity codeaddEthnicityToEntity
in interface IdentityService
ethnicity
- the EntityEthnicity to createRiceIllegalArgumentException
- if the ethnicity is nullpublic EntityEthnicity updateEthnicity(EntityEthnicity ethnicity) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityEthnicity
exactly like the ethnicity passed in.updateEthnicity
in interface IdentityService
ethnicity
- the EntityEthnicity to updateRiceIllegalArgumentException
- if the ethnicity is nullRiceIllegalStateException
- if the ethnicity does not exist in the system.protected EntityResidencyBo getEntityResidencyBo(String residencyId)
public EntityResidency addResidencyToEntity(EntityResidency residency) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityResidency
exactly like the residency passed in.
The EntityResidency object passed in must be populated with an entityIdaddResidencyToEntity
in interface IdentityService
residency
- the EntityResidency to createRiceIllegalArgumentException
- if the residency is nullRiceIllegalStateException
- if the residency already exists in the system or residency is not populated with entityIdpublic EntityResidency updateResidency(EntityResidency residency) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityResidency
exactly like the residency passed in.updateResidency
in interface IdentityService
residency
- the EntityResidency to updateRiceIllegalArgumentException
- if the residency is nullRiceIllegalStateException
- if the residency does not exist in the system.protected EntityVisaBo getEntityVisaBo(String visaId)
public EntityVisa addVisaToEntity(EntityVisa visa) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityVisa
exactly like the visa passed in.
The EntityVisa object passed in must be populated with an entityId and a visaTypeKeyaddVisaToEntity
in interface IdentityService
visa
- the EntityVisa to createRiceIllegalArgumentException
- if the visa is nullRiceIllegalStateException
- if the visa already exists in the system or visa is not populated with entityId and a visaTypeKeypublic EntityVisa updateVisa(EntityVisa visa) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityVisa
exactly like the visa passed in.updateVisa
in interface IdentityService
visa
- the EntityVisa to updateRiceIllegalArgumentException
- if the visa is nullRiceIllegalStateException
- if the visa does not exist in the system.protected EntityNameBo getEntityNameBo(String entityId, String nameTypeCode)
protected EntityNameBo getEntityNameBo(String id)
public EntityNamePrincipalName getDefaultNamesForPrincipalId(String principalId)
IdentityService
getDefaultNamesForPrincipalId
in interface IdentityService
principalId
- The principal ID to find the name information forpublic Map<String,EntityNamePrincipalName> getDefaultNamesForPrincipalIds(List<String> principalIds)
IdentityService
getDefaultNamesForPrincipalIds
in interface IdentityService
principalIds
- A list of principal IDs to find the name information forpublic EntityPrivacyPreferences getPrivacyPreferencesForPrincipalId(String principalId)
HashSet
to ensure no duplicate look ups occur.getPrivacyPreferencesForPrincipalId
in interface IdentityService
principalId
- the principal idpublic EntityName addNameToEntity(EntityName name) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityName
exactly like the name passed in.
The EntityName object passed in must be populated with an entityId and a nameTypeaddNameToEntity
in interface IdentityService
name
- the EntityName to createRiceIllegalArgumentException
- if the name is nullRiceIllegalStateException
- if the name already exists in the system or name is not populated with entityId and nameTypepublic EntityName updateName(EntityName name) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityName
exactly like the name passed in.updateName
in interface IdentityService
name
- the EntityName to updateRiceIllegalArgumentException
- if the name is nullRiceIllegalStateException
- if the name does not exist in the system.public EntityName inactivateName(String id) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityName
with the passed in id.inactivateName
in interface IdentityService
id
- the unique id of the EntityName to inactivateRiceIllegalArgumentException
- if the id is nullRiceIllegalStateException
- if the name with the id does not exist in the system.protected EntityEmploymentBo getEntityEmploymentBo(String entityId, String employmentTypeCode, String employmentStatusCode, String employmentAffiliationId)
protected EntityEmploymentBo getEntityEmploymentBo(String id)
public EntityEmployment addEmploymentToEntity(EntityEmployment employment) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityEmployment
exactly like the employment passed in.
The EntityEmployment object passed in must be populated with an entityId and a employmentTypeaddEmploymentToEntity
in interface IdentityService
employment
- the EntityEmployment to createRiceIllegalArgumentException
- if the employment is nullRiceIllegalStateException
- if the employment already exists in the system or employment is not populated with entityId and employmentTypepublic EntityEmployment updateEmployment(EntityEmployment employment) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityEmployment
exactly like the employment passed in.updateEmployment
in interface IdentityService
employment
- the EntityEmployment to updateRiceIllegalArgumentException
- if the employment is nullRiceIllegalStateException
- if the employment does not exist in the system.public EntityEmployment inactivateEmployment(String id) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityEmployment
with the passed in id.inactivateEmployment
in interface IdentityService
id
- the unique id of the EntityEmployment to inactivateRiceIllegalArgumentException
- if the id is nullRiceIllegalStateException
- if the employment with the id does not exist in the system.protected EntityBioDemographicsBo getEntityBioDemographicsBo(String entityId)
public EntityBioDemographics addBioDemographicsToEntity(EntityBioDemographics bioDemographics) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityBioDemographics
exactly like the bioDemographics passed in.
The EntityBioDemographics object passed in must be populated with an entityIdaddBioDemographicsToEntity
in interface IdentityService
bioDemographics
- the EntityBioDemographics to createRiceIllegalArgumentException
- if the bioDemographics is nullRiceIllegalStateException
- if the bioDemographics already exists in the system or bioDemographics is not populated with entityIdpublic EntityBioDemographics updateBioDemographics(EntityBioDemographics bioDemographics) throws RiceIllegalArgumentException, RiceIllegalStateException
IdentityService
EntityBioDemographics
exactly like the bioDemographics passed in.updateBioDemographics
in interface IdentityService
bioDemographics
- the EntityBioDemographics to updateRiceIllegalArgumentException
- if the bioDemographics is nullRiceIllegalStateException
- if the bioDemographics does not exist in the system.protected void incomingParamCheck(Object object, String name)
public void setDataObjectService(DataObjectService dataObjectService)
public IdentityServiceDao getIdentityServiceDao()
public void setIdentityServiceDao(IdentityServiceDao identityServiceDao)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.