public boolean isContactDisplay ( ) { String strUserContactType = this . getProperty ( DBParams . CONTACT_TYPE ) ; String strUserContactID = this . getProperty ( DBParams . CONTACT_ID ) ; String strContactType = ( ( ReferenceField ) this . getScreenRecord ( ) . getField ( MessageLogScreenRecord . CONTACT_TYPE_ID ) ) . getReference ( ) . getField ( ContactType . CODE ) . toString ( ) ; String strContactID = this . getScreenRecord ( ) . getField ( MessageLogScreenRecord . CONTACT_ID ) . toString ( ) ; if ( ( strUserContactID != null ) && ( strUserContactID . equals ( strContactID ) ) ) if ( ( strUserContactType != null ) && ( strUserContactType . equals ( strContactType ) ) ) return true ; return false ; }
IsContactDisplay Method .