org.kuali.ole.service
Class OlePatronServiceImpl

java.lang.Object
  extended by org.kuali.ole.service.OlePatronServiceImpl
All Implemented Interfaces:
OlePatronService

public class OlePatronServiceImpl
extends Object
implements OlePatronService

OlePatronServiceImpl performs patron operation(create,update).


Constructor Summary
OlePatronServiceImpl()
           
 
Method Summary
 void addAddressToEntity(List<org.kuali.rice.kim.api.identity.address.EntityAddress> entityAddress, org.kuali.rice.kim.api.identity.type.EntityTypeContactInfo entityTypeContactInfo)
          Add the EntityAddress object to the EntityTypeContactInfo object
 void addEmailToEntity(List<org.kuali.rice.kim.api.identity.email.EntityEmail> emails, org.kuali.rice.kim.api.identity.type.EntityTypeContactInfo entityTypeContactInfo)
          Add the EntityEmail object to the EntityTypeContactInfo object
 void addNameToEntity(org.kuali.rice.kim.api.identity.name.EntityName name, org.kuali.rice.kim.api.identity.entity.Entity entity)
          Add the EntityName object to the Entity object
 boolean addNoteToPatron(OlePatronNotesDefinition patronNote)
          This method will Persist the OlePatronNotes object
 void addPhone(List<org.kuali.rice.kim.impl.identity.phone.EntityPhoneBo> entityPhone, org.kuali.rice.kim.impl.identity.type.EntityTypeContactInfoBo entityTypeContactInfoBo)
          If the EntityPhoneBo is not null,it will add to the EntityTypeContactInfoBo object
 void addPhoneToEntity(List<org.kuali.rice.kim.api.identity.phone.EntityPhone> entityPhone, org.kuali.rice.kim.api.identity.type.EntityTypeContactInfo entityTypeContactInfo)
          Add the EntityPhone object to the EntityTypeContactInfo object
 OlePatronDefinition createPatron(OlePatronDefinition olePatron)
          This method will create and persist the patron document
 OlePatronQueryResults findPatron(org.kuali.rice.core.api.criteria.QueryByCriteria queryCriteria)
          This method will return patron objects based on search criteria
protected  org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
          Gets the instance of BusinessObjectService
protected  org.kuali.rice.core.api.criteria.CriteriaLookupService getCriteriaLookupService()
          Gets the instance of CriteriaLookupService
protected  org.kuali.rice.kim.api.identity.IdentityService getIdentityService()
          Gets the instance of IdentityService
 OlePatronDefinition getPatron(String patronId)
          Based on patron Id it will return the patron object
 OlePatronQueryResults getPatrons()
          This method will return all the patron documents
 boolean inactivateAddress(String addressId)
          This method will set the active indicator of the EntityAddressBo object as false
 boolean inactivateEmail(String emailId)
          This method will set the active indicator of the EntityEmailBo object as false
 boolean inactivateName(String nameId)
          This method will set the active indicator of the EntityNameBo object as false
 boolean inactivateNote(String patronNoteId)
          Set the active indicator of the OlePatronNotes object as false
 OlePatronDefinition inactivatePatron(String patronId)
          This method will set the active indicator of the patron object as false
 boolean inactivatePhone(String phoneId)
          This method will set the active indicator of the EntityPhoneBo object as false
 boolean updateAddress(org.kuali.rice.kim.api.identity.address.EntityAddress entityAddress)
          This method will update the EntityAddress object
 boolean updateEmail(org.kuali.rice.kim.api.identity.email.EntityEmail entityEmail)
          This method will update the EntityEmail object
 org.kuali.rice.kim.api.identity.name.EntityName updateName(org.kuali.rice.kim.api.identity.name.EntityName name)
          This method will update the EntityName object
 boolean updateNote(OlePatronNotesDefinition patronNote)
          This method will Update the OlePatronNotes object
 OlePatronDefinition updatePatron(OlePatronDefinition olePatron)
          This method will update the patron object which is already persist
 boolean updatePhone(org.kuali.rice.kim.api.identity.phone.EntityPhone entityPhone)
          This method will update the EntityPhone object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OlePatronServiceImpl

public OlePatronServiceImpl()
Method Detail

getBusinessObjectService

protected org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
Gets the instance of BusinessObjectService

Returns:
businessObjectService(BusinessObjectService)

getIdentityService

protected org.kuali.rice.kim.api.identity.IdentityService getIdentityService()
Gets the instance of IdentityService

Returns:
identityService(IdentityService)

getCriteriaLookupService

protected org.kuali.rice.core.api.criteria.CriteriaLookupService getCriteriaLookupService()
Gets the instance of CriteriaLookupService

Returns:
criteriaLookupService(CriteriaLookupService)

getPatron

public OlePatronDefinition getPatron(String patronId)
Based on patron Id it will return the patron object

Specified by:
getPatron in interface OlePatronService
Parameters:
patronId -
Returns:
OlePatronDefinition

createPatron

public OlePatronDefinition createPatron(OlePatronDefinition olePatron)
This method will create and persist the patron document

Specified by:
createPatron in interface OlePatronService
Parameters:
olePatron -
Returns:
savedOlePatronDefinition(OlePatronDefinition)

updatePatron

public OlePatronDefinition updatePatron(OlePatronDefinition olePatron)
This method will update the patron object which is already persist

Specified by:
updatePatron in interface OlePatronService
Parameters:
olePatron -
Returns:
OlePatronDefinition

addNameToEntity

public void addNameToEntity(org.kuali.rice.kim.api.identity.name.EntityName name,
                            org.kuali.rice.kim.api.identity.entity.Entity entity)
Add the EntityName object to the Entity object

Specified by:
addNameToEntity in interface OlePatronService
Parameters:
name -
entity -

addEmailToEntity

public void addEmailToEntity(List<org.kuali.rice.kim.api.identity.email.EntityEmail> emails,
                             org.kuali.rice.kim.api.identity.type.EntityTypeContactInfo entityTypeContactInfo)
Add the EntityEmail object to the EntityTypeContactInfo object

Specified by:
addEmailToEntity in interface OlePatronService
Parameters:
emails -
entityTypeContactInfo -

addAddressToEntity

public void addAddressToEntity(List<org.kuali.rice.kim.api.identity.address.EntityAddress> entityAddress,
                               org.kuali.rice.kim.api.identity.type.EntityTypeContactInfo entityTypeContactInfo)
Add the EntityAddress object to the EntityTypeContactInfo object

Specified by:
addAddressToEntity in interface OlePatronService
Parameters:
entityAddress -
entityTypeContactInfo -

addPhone

public void addPhone(List<org.kuali.rice.kim.impl.identity.phone.EntityPhoneBo> entityPhone,
                     org.kuali.rice.kim.impl.identity.type.EntityTypeContactInfoBo entityTypeContactInfoBo)
If the EntityPhoneBo is not null,it will add to the EntityTypeContactInfoBo object

Parameters:
entityPhone -
entityTypeContactInfoBo -

addPhoneToEntity

public void addPhoneToEntity(List<org.kuali.rice.kim.api.identity.phone.EntityPhone> entityPhone,
                             org.kuali.rice.kim.api.identity.type.EntityTypeContactInfo entityTypeContactInfo)
Add the EntityPhone object to the EntityTypeContactInfo object

Specified by:
addPhoneToEntity in interface OlePatronService
Parameters:
entityPhone -
entityTypeContactInfo -

inactivatePatron

public OlePatronDefinition inactivatePatron(String patronId)
This method will set the active indicator of the patron object as false

Specified by:
inactivatePatron in interface OlePatronService
Parameters:
patronId -
Returns:
OlePatronDefinition

updateName

public org.kuali.rice.kim.api.identity.name.EntityName updateName(org.kuali.rice.kim.api.identity.name.EntityName name)
This method will update the EntityName object

Specified by:
updateName in interface OlePatronService
Parameters:
name -
Returns:
EntityName

inactivateName

public boolean inactivateName(String nameId)
This method will set the active indicator of the EntityNameBo object as false

Specified by:
inactivateName in interface OlePatronService
Parameters:
nameId -
Returns:

updateEmail

public boolean updateEmail(org.kuali.rice.kim.api.identity.email.EntityEmail entityEmail)
This method will update the EntityEmail object

Specified by:
updateEmail in interface OlePatronService
Parameters:
entityEmail -
Returns:

inactivateEmail

public boolean inactivateEmail(String emailId)
This method will set the active indicator of the EntityEmailBo object as false

Specified by:
inactivateEmail in interface OlePatronService
Parameters:
emailId -
Returns:

updateAddress

public boolean updateAddress(org.kuali.rice.kim.api.identity.address.EntityAddress entityAddress)
This method will update the EntityAddress object

Specified by:
updateAddress in interface OlePatronService
Parameters:
entityAddress -
Returns:
boolean

inactivateAddress

public boolean inactivateAddress(String addressId)
This method will set the active indicator of the EntityAddressBo object as false

Specified by:
inactivateAddress in interface OlePatronService
Parameters:
addressId -
Returns:
true,if entityAddress is not equal to null otherwise returns false

updatePhone

public boolean updatePhone(org.kuali.rice.kim.api.identity.phone.EntityPhone entityPhone)
This method will update the EntityPhone object

Specified by:
updatePhone in interface OlePatronService
Parameters:
entityPhone -
Returns:
true,if phone is not equal to null otherwise returns false

inactivatePhone

public boolean inactivatePhone(String phoneId)
This method will set the active indicator of the EntityPhoneBo object as false

Specified by:
inactivatePhone in interface OlePatronService
Parameters:
phoneId -
Returns:
true,if entityPhone is not equal to null otherwise returns false

addNoteToPatron

public boolean addNoteToPatron(OlePatronNotesDefinition patronNote)
This method will Persist the OlePatronNotes object

Specified by:
addNoteToPatron in interface OlePatronService
Parameters:
patronNote -
Returns:
boolean

updateNote

public boolean updateNote(OlePatronNotesDefinition patronNote)
This method will Update the OlePatronNotes object

Specified by:
updateNote in interface OlePatronService
Parameters:
patronNote -
Returns:
boolean

inactivateNote

public boolean inactivateNote(String patronNoteId)
Set the active indicator of the OlePatronNotes object as false

Specified by:
inactivateNote in interface OlePatronService
Parameters:
patronNoteId -
Returns:
boolean

getPatrons

public OlePatronQueryResults getPatrons()
This method will return all the patron documents

Specified by:
getPatrons in interface OlePatronService
Returns:
OlePatronQueryResults

findPatron

public OlePatronQueryResults findPatron(org.kuali.rice.core.api.criteria.QueryByCriteria queryCriteria)
This method will return patron objects based on search criteria

Specified by:
findPatron in interface OlePatronService
Parameters:
queryCriteria -
Returns:
OlePatronQueryResults


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.