net.wimpi.pim.contact.basicimpl
Class OrganizationalIdentityImpl

java.lang.Object
  |
  +--net.wimpi.pim.contact.basicimpl.OrganizationalIdentityImpl
All Implemented Interfaces:
OrganizationalIdentity, java.io.Serializable

public class OrganizationalIdentityImpl
extends java.lang.Object
implements OrganizationalIdentity

A basic and simple implementation of an OrganizationalIdentity.

Version:
0.1 (22/07/2003)
Author:
Dieter Wimberger
See Also:
Serialized Form

Field Summary
protected  Contact m_Agent
           
protected  Organization m_Organization
           
protected  java.lang.String m_Role
           
protected  java.lang.String m_Title
           
 
Constructor Summary
OrganizationalIdentityImpl()
           
 
Method Summary
 Contact getAgent()
          Returns the agent.
 Organization getOrganization()
          Returns the Organization instance with information about the organization.
 java.lang.String getRole()
          Returns the organizational role.
 java.lang.String getTitle()
          Returns the title.
 boolean hasOrganization()
          Tests if this OrganizationalIdentity has an Organization instance.
 void setAgent(Contact agent)
          Sets the agent.
 void setOrganization(Organization org)
          Sets the Organization instance with information about the organization.
 void setRole(java.lang.String role)
          Sets the organizational role.
 void setTitle(java.lang.String title)
          Sets the organizational title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Title

protected java.lang.String m_Title

m_Role

protected java.lang.String m_Role

m_Agent

protected transient Contact m_Agent

m_Organization

protected Organization m_Organization
Constructor Detail

OrganizationalIdentityImpl

public OrganizationalIdentityImpl()
Method Detail

getTitle

public java.lang.String getTitle()
Description copied from interface: OrganizationalIdentity
Returns the title.
Title refers to job title, functional position or function.

Specified by:
getTitle in interface OrganizationalIdentity
Returns:
the title as String.

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: OrganizationalIdentity
Sets the organizational title.
Title refers to job title, functional position or function.

Specified by:
setTitle in interface OrganizationalIdentity
Parameters:
title - the title as String.

getRole

public java.lang.String getRole()
Description copied from interface: OrganizationalIdentity
Returns the organizational role.
Role refers to the role, occupation, or business category.

Specified by:
getRole in interface OrganizationalIdentity
Returns:
the role as String.

setRole

public void setRole(java.lang.String role)
Description copied from interface: OrganizationalIdentity
Sets the organizational role.
Role refers to the role, occupation, or business category.

Specified by:
setRole in interface OrganizationalIdentity
Parameters:
role - the role as String.

getAgent

public Contact getAgent()
Description copied from interface: OrganizationalIdentity
Returns the agent.
Agent refers to another person who will act on behalf of the individual or organization.

Specified by:
getAgent in interface OrganizationalIdentity
Returns:
the agent as Contact.

setAgent

public void setAgent(Contact agent)
Description copied from interface: OrganizationalIdentity
Sets the agent.
Agent refers to another person who will act on behalf of the individual or organization.

Specified by:
setAgent in interface OrganizationalIdentity
Parameters:
agent - the agent as Contact.

getOrganization

public Organization getOrganization()
Description copied from interface: OrganizationalIdentity
Returns the Organization instance with information about the organization.

Specified by:
getOrganization in interface OrganizationalIdentity
Returns:
the organization as Organization.

setOrganization

public void setOrganization(Organization org)
Description copied from interface: OrganizationalIdentity
Sets the Organization instance with information about the organization.

Specified by:
setOrganization in interface OrganizationalIdentity
Parameters:
org - the organization as Organization.

hasOrganization

public boolean hasOrganization()
Description copied from interface: OrganizationalIdentity
Tests if this OrganizationalIdentity has an Organization instance.

Specified by:
hasOrganization in interface OrganizationalIdentity
Returns:
true if it has, false otherwise.


Copyright © 2001-2003 jpim team.