org.kuali.rice.kim.impl.identity.external
Class EntityExternalIdentifierBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kim.impl.identity.external.EntityExternalIdentifierBo
All Implemented Interfaces:
groovy.lang.GroovyObject, Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, EntityExternalIdentifierContract, BusinessObject, PersistableBusinessObject

public class EntityExternalIdentifierBo
extends PersistableBusinessObjectBase
implements EntityExternalIdentifierContract, groovy.lang.GroovyObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
EntityExternalIdentifierBo()
           
 
Method Summary
protected  String decryptedExternalId()
           
protected  void decryptExternalId()
           
protected  void encryptExternalId()
           
protected  void evaluateExternalIdentifierType()
           
static EntityExternalIdentifierBo from(EntityExternalIdentifier immutable)
           
 String getEntityId()
          Gets this id of the parent identity object.
 String getExternalId()
          Gets this EntityExternalIdentifierContract's external id.
 EntityExternalIdentifierTypeBo getExternalIdentifierType()
          Gets this EntityExternalIdentifierContract's type.
 String getExternalIdentifierTypeCode()
          Gets this EntityExternalIdentifierContract's type code.
 String getId()
          The unique identifier for an object.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 Object invokeMethod(String method, Object arguments)
           
protected  void postLoad()
          Default implementation of the JPA PostLoad hook.
protected  void prePersist()
          Default implementation of the JPA PrePersist hook which generates the unique objectId for this persistable business object if it does not already have one.
protected  void preUpdate()
          Default implementation of the JPA PreUpdate hook which generates the unique objectId for this persistable business object if it does not already have one.
 void setEntityId(String value)
           
 void setExternalId(String externalId)
           
 void setExternalIdentifierType(EntityExternalIdentifierTypeBo externalIdentifierType)
           
 void setExternalIdentifierTypeCode(String externalIdentifierTypeCode)
           
 void setId(String value)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
static EntityExternalIdentifier to(EntityExternalIdentifierBo bo)
           
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postPersist, postRemove, postUpdate, preRemove, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder, toStringMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

EntityExternalIdentifierBo

public EntityExternalIdentifierBo()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

setId

public void setId(String value)

getEntityId

public String getEntityId()
Description copied from interface: EntityExternalIdentifierContract
Gets this id of the parent identity object.

Specified by:
getEntityId in interface EntityExternalIdentifierContract
Returns:
the identity id for this EntityEmailContract

setEntityId

public void setEntityId(String value)

getExternalIdentifierTypeCode

public String getExternalIdentifierTypeCode()
Description copied from interface: EntityExternalIdentifierContract
Gets this EntityExternalIdentifierContract's type code.

Specified by:
getExternalIdentifierTypeCode in interface EntityExternalIdentifierContract
Returns:
the type code for this EntityExternalIdentifierContract, or null if none has been assigned.

to

public static EntityExternalIdentifier to(EntityExternalIdentifierBo bo)

from

public static EntityExternalIdentifierBo from(EntityExternalIdentifier immutable)

prePersist

protected void prePersist()
Description copied from class: PersistableBusinessObjectBase
Default implementation of the JPA PrePersist hook which generates the unique objectId for this persistable business object if it does not already have one. Any sub-class which overrides this method should take care to invoke super.prePersist to ensure that the objectId for this persistable business object is generated properly.

This method is currently invoked by the corresponding OJB PersistableBusinessObjectBase.beforeInsert(PersistenceBroker) hook.

Overrides:
prePersist in class PersistableBusinessObjectBase

postLoad

protected void postLoad()
Description copied from class: PersistableBusinessObjectBase
Default implementation of the JPA PostLoad hook. This implementation currently does nothing, however sub-classes can override and implement this method if needed.

This method is currently invoked by the corresponding OJB PersistableBusinessObjectBase.afterLookup(PersistenceBroker) hook.

Overrides:
postLoad in class PersistableBusinessObjectBase

preUpdate

protected void preUpdate()
Description copied from class: PersistableBusinessObjectBase
Default implementation of the JPA PreUpdate hook which generates the unique objectId for this persistable business object if it does not already have one. Any sub-class which overrides this method should take care to invoke super.preUpdate to ensure that the objectId for this persistable business object is generated properly.

This method is currently invoked by the corresponding OJB PersistableBusinessObjectBase.beforeUpdate(PersistenceBroker) hook.

Overrides:
preUpdate in class PersistableBusinessObjectBase

encryptExternalId

protected void encryptExternalId()

decryptExternalId

protected void decryptExternalId()

evaluateExternalIdentifierType

protected void evaluateExternalIdentifierType()

decryptedExternalId

protected String decryptedExternalId()

setExternalId

public void setExternalId(String externalId)

setExternalIdentifierTypeCode

public void setExternalIdentifierTypeCode(String externalIdentifierTypeCode)

setExternalIdentifierType

public void setExternalIdentifierType(EntityExternalIdentifierTypeBo externalIdentifierType)

getExternalIdentifierType

public EntityExternalIdentifierTypeBo getExternalIdentifierType()
Description copied from interface: EntityExternalIdentifierContract
Gets this EntityExternalIdentifierContract's type.

Specified by:
getExternalIdentifierType in interface EntityExternalIdentifierContract
Returns:
the type for this EntityExternalIdentifierContract, or null if none has been assigned.

getExternalId

public String getExternalId()
Description copied from interface: EntityExternalIdentifierContract
Gets this EntityExternalIdentifierContract's external id.

Specified by:
getExternalId in interface EntityExternalIdentifierContract
Returns:
the external id for this EntityExternalIdentifierContract, or null if none has been assigned.


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