com.sun.identity.policy
クラス ReferralTypeManager

java.lang.Object
  上位を拡張 com.sun.identity.policy.ReferralTypeManager

public class ReferralTypeManager
extends Object

The class ReferralTypeManager provides methods to get a list of configured Referral objects


コンストラクタの概要
protected ReferralTypeManager()
          Creates a ReferralTypeManager object
protected ReferralTypeManager(PolicyManager pm)
          Creates a ReferralTypeManager object
 
メソッドの概要
 String getDisplayName(String referralType)
          Gets the display name for the referral type
 String getI18NKey(String referralType)
          Returns the I18N key to be used to localize the display name for the referral type name.
protected  String getI18NPropertiesFileName(String referralType)
          Returns the I18N properties file name that should be used to localize display names for the given referral type.
 Referral getReferral(String referralType)
          Returns an instance of the Referral given the referral type name.
 String getReferralTypeName(Referral referral)
          Returns the type of the Referral implementation.
 Set getReferralTypeNames()
          Returns a set of all valid referral type names defined by the policy service.
 Set getSelectedReferralTypeNames()
          Returns a set of valid referral type names configured for the organization.
 String getViewBeanURL(Referral referral)
          Gets the view bean URL given the Referral
 

コンストラクタの詳細

ReferralTypeManager

protected ReferralTypeManager()
                       throws SSOException
Creates a ReferralTypeManager object

例外:
SSOException

ReferralTypeManager

protected ReferralTypeManager(PolicyManager pm)
Creates a ReferralTypeManager object

パラメータ:
pm - PolicyManager to initialize the ReferralTypeManager with
メソッドの詳細

getReferralTypeNames

public Set getReferralTypeNames()
                         throws SSOException,
                                PolicyException
Returns a set of all valid referral type names defined by the policy service. Examples are PeerOrgReferral, SubOrgReferral

戻り値:
a set of all valid referral type names defined by the policy service.
例外:
SSOException - if the SSOToken used to create the PolicyManager has become invalid
PolicyException - for any other abnormal condition

getSelectedReferralTypeNames

public Set getSelectedReferralTypeNames()
                                 throws SSOException,
                                        PolicyException
Returns a set of valid referral type names configured for the organization. Examples are PeerOrgReferral, SubOrgReferral

戻り値:
a set of valid referral type names configured for the organization.
例外:
SSOException - if the SSOToken used to create the PolicyManager has become invalid
PolicyException - for any other abnormal condition

getReferralTypeName

public String getReferralTypeName(Referral referral)
Returns the type of the Referral implementation. For example, PeerOrgReferral, SubOrgReferral

パラメータ:
referral - referral object for which this method will return its associated type
戻り値:
type of the referral, e.g., PeerOrgReferral, SubOrgReferral Returns null if not present.

getI18NPropertiesFileName

protected String getI18NPropertiesFileName(String referralType)
Returns the I18N properties file name that should be used to localize display names for the given referral type.

パラメータ:
referralType - referral type name
戻り値:
i18n properties file name

getI18NKey

public String getI18NKey(String referralType)
Returns the I18N key to be used to localize the display name for the referral type name.

パラメータ:
referralType - referral type name
戻り値:
i18n key to obtain the display name

getDisplayName

public String getDisplayName(String referralType)
Gets the display name for the referral type

パラメータ:
referralType - referral type
戻り値:
display name for the referral type

getReferral

public Referral getReferral(String referralType)
                     throws NameNotFoundException,
                            PolicyException
Returns an instance of the Referral given the referral type name.

パラメータ:
referralType - type of referral.
戻り値:
an instance of the Referral given the referral type name.
例外:
NameNotFoundException - if the Referral for the referralType name is not found
PolicyException - for any other abnormal condition

getViewBeanURL

public String getViewBeanURL(Referral referral)
Gets the view bean URL given the Referral

パラメータ:
referral - referral for which to get the view bean URL
戻り値:
view bean URL defined for the referral plugin in the policy service PluginSchema