public class Address extends Object
AddressType
はAPIのIN/OUTでは説明どおりのものになりますが、
内部的にはグループのアドレスからユーザに展開したものの場合に、
内容はユーザでも AddressType
はグループになっている場合があります。修飾子とタイプ | クラスと説明 |
---|---|
static class |
Address.AddressType
アドレスの種別
|
static class |
Address.RecipientType
送信区分(SEND/TO/CC/BCC)
|
コンストラクタと説明 |
---|
Address() |
修飾子とタイプ | メソッドと説明 |
---|---|
Address.AddressType |
getAddressType()
addressTypeを返します。
|
String |
getCompanyCd()
companyCdを返します。
|
String |
getDepartmentCd()
departmentCdを返します。
|
String |
getDepartmentSetCd()
departmentSetCdを返します。
|
String |
getName()
nameを返します。
|
String |
getPrivateGroupCd()
privateGroupCdを返します。
|
String |
getPublicGroupCd()
publicGroupCdを返します。
|
String |
getPublicGroupSetCd()
publicGroupSetCdを返します。
|
Address.RecipientType |
getRecipentType()
recipentTypeを返します。
|
String |
getUserCd()
userCdを返します。
|
AddressIdentifier |
identifier()
このアドレスオブジェクトの
AddressIdentifier インスタンスを生成して返します。 |
boolean |
isGroup()
このアドレスがグループ宛かどうかを返します。
|
static Address |
ofDepartment(String name,
String companyCd,
String departmentSetCd,
String departmentCd)
組織のアドレスオブジェクトを生成します。
|
static Address |
ofPrivateGroup(String name,
String userCd,
String groupCd)
プライベートグループのアドレスオブジェクトを生成します。
|
static Address |
ofPublicGroup(String name,
String groupSetCd,
String groupCd)
パブリックグループのアドレスオブジェクトを生成します。
|
static Address |
ofUser(String name,
String userCd)
ユーザのアドレスオブジェクトを生成します。
|
void |
setAddressType(Address.AddressType addressType)
addressType を設定します。
|
void |
setCompanyCd(String companyCd)
companyCd を設定します。
|
void |
setDepartmentCd(String departmentCd)
departmentCd を設定します。
|
void |
setDepartmentSetCd(String departmentSetCd)
departmentSetCd を設定します。
|
void |
setName(String name)
name を設定します。
|
void |
setPrivateGroupCd(String privateGroupCd)
privateGroupCd を設定します。
|
void |
setPublicGroupCd(String publicGroupCd)
publicGroupCd を設定します。
|
void |
setPublicGroupSetCd(String publicGroupSetCd)
publicGroupSetCd を設定します。
|
void |
setRecipentType(Address.RecipientType recipentType)
recipentType を設定します。
|
void |
setUserCd(String userCd)
userCd を設定します。
|
String |
toString() |
public static Address ofDepartment(String name, String companyCd, String departmentSetCd, String departmentCd)
name
- 表示名companyCd
- 会社コードdepartmentSetCd
- 組織セットコードdepartmentCd
- 組織コードpublic static Address ofPrivateGroup(String name, String userCd, String groupCd)
name
- 表示名userCd
- ユーザコードgroupCd
- プライベートグループコードpublic static Address ofPublicGroup(String name, String groupSetCd, String groupCd)
name
- 表示名groupSetCd
- パブリックグループセットコードgroupCd
- パブリックグループコードpublic static Address ofUser(String name, String userCd)
name
- 表示名userCd
- ユーザコードpublic Address.AddressType getAddressType()
public String getCompanyCd()
public String getDepartmentCd()
public String getDepartmentSetCd()
public String getName()
public String getPrivateGroupCd()
public String getPublicGroupCd()
public String getPublicGroupSetCd()
public Address.RecipientType getRecipentType()
public String getUserCd()
public AddressIdentifier identifier()
AddressIdentifier
インスタンスを生成して返します。AddressIdentifier
インスタンスpublic boolean isGroup()
public void setAddressType(Address.AddressType addressType)
addressType
- 設定する addressTypepublic void setCompanyCd(String companyCd)
companyCd
- 設定する companyCdpublic void setDepartmentCd(String departmentCd)
departmentCd
- 設定する departmentCdpublic void setDepartmentSetCd(String departmentSetCd)
departmentSetCd
- 設定する departmentSetCdpublic void setName(String name)
name
- 設定する namepublic void setPrivateGroupCd(String privateGroupCd)
privateGroupCd
- 設定する privateGroupCdpublic void setPublicGroupCd(String publicGroupCd)
publicGroupCd
- 設定する publicGroupCdpublic void setPublicGroupSetCd(String publicGroupSetCd)
publicGroupSetCd
- 設定する publicGroupSetCdpublic void setRecipentType(Address.RecipientType recipentType)
recipentType
- 設定する recipentTypepublic void setUserCd(String userCd)
userCd
- 設定する userCdCopyright © 2022 UCM Co., Ltd.. All rights reserved.