net.wimpi.pim.contact.model
Interface OrganizationalIdentity

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
OrganizationalIdentityImpl

public interface OrganizationalIdentity
extends java.io.Serializable

An interface modeling the organizational identity of a contact based on the types and information defined by the vCard Mime directory profile standard.

For reference see RFC 2426:
3.5 Organizational Types
3.5.1 TITLE Type Definition
3.5.2 ROLE Type Definition
3.5.4 AGENT Type Definition

Note that the information concerning the organization have been placed in a seperate type (i.e. Organization.

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

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.
 

Method Detail

getTitle

public java.lang.String getTitle()
Returns the title.
Title refers to job title, functional position or function.

Returns:
the title as String.

setTitle

public void setTitle(java.lang.String title)
Sets the organizational title.
Title refers to job title, functional position or function.

Parameters:
title - the title as String.

getRole

public java.lang.String getRole()
Returns the organizational role.
Role refers to the role, occupation, or business category.

Returns:
the role as String.

setRole

public void setRole(java.lang.String role)
Sets the organizational role.
Role refers to the role, occupation, or business category.

Parameters:
role - the role as String.

getAgent

public Contact getAgent()
Returns the agent.
Agent refers to another person who will act on behalf of the individual or organization.

Returns:
the agent as Contact.

setAgent

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

Parameters:
agent - the agent as Contact.

getOrganization

public Organization getOrganization()
Returns the Organization instance with information about the organization.

Returns:
the organization as Organization.

setOrganization

public void setOrganization(Organization org)
Sets the Organization instance with information about the organization.

Parameters:
org - the organization as Organization.

hasOrganization

public boolean hasOrganization()
Tests if this OrganizationalIdentity has an Organization instance.

Returns:
true if it has, false otherwise.


Copyright © 2001-2003 jpim team.