com.plumtree.server
Interface IPTLocalizable

All Superinterfaces:
IPTUnknown
All Known Subinterfaces:
IPTAdminFolder, IPTAuthSource, IPTCard, IPTCommunity, IPTCommunityTemplate, IPTCrawler, IPTDataSource, IPTDocumentType, IPTExternalOperation, IPTFederatedPortal, IPTFilter, IPTFolder, IPTGadget, IPTGadgetBundle, IPTGadgetContentServer, IPTGadgetTemplate, IPTInvitation, IPTJob, IPTObject, IPTPageTemplate, IPTProfilePage, IPTProfileSection, IPTProfileSource, IPTProperty, IPTSavedSearch, IPTSiteMapFolder, IPTSubPortal, IPTTaxonomist, IPTUser, IPTUserGroup, IPTUserInterface, IPTWebService

public interface IPTLocalizable
extends IPTUnknown

This interface is supported by objects that support localization of their names and descriptions. Localization allows a single object to have different strings for different languages- the name or description can be different for English and French speakers, for example.

See Also:
IPTStringLocalizationManager

Method Summary
 java.lang.String GetDescription()
          Returns the primary description of the object.
 boolean GetIsLocalized()
          Does this object support localization? Note that an object may support localization, but nonetheless have no actual localizations.
 java.lang.String GetLocalizedDescription()
          Return the description of this object localized to the language of the current user
 java.lang.Object[][] GetLocalizedDescriptions()
          Returns the localized descriptions for this object as a 2D array.
 java.lang.String GetLocalizedName()
          Return the name of this object localized to the language of the current user
 java.lang.Object[][] GetLocalizedNames()
          Returns the localized names for this object as a 2D array.
 java.lang.String GetName()
          Returns the primary name of the object.
 java.lang.String GetPrimaryLang()
          The primary language of the object is the language that the primary name and primary description are in.
 boolean GetSupportsLocalization()
          Does this type of object support localization? Some object types (IPTCard, for example) do not support localization.
 void SetDescription(java.lang.String Value)
          Sets the primary description of the object.
 void SetIsLocalized(boolean Value)
          Does this object support localization? Note that an object may support localization, but nonetheless have no actual localizations.
 void SetLocalizedDescriptions(java.lang.Object[][] Value)
          Sets the localized descriptions for this object.
 void SetLocalizedNames(java.lang.Object[][] Value)
          Sets the localized names for this object.
 void SetName(java.lang.String Value)
          Sets the primary name of the object.
 void SetPrimaryLang(java.lang.String Value)
          The primary language of the object is the language that the primary name and primary description are in.
 
Methods inherited from interface com.plumtree.server.IPTUnknown
GetInterfaces
 

Method Detail

GetName

public java.lang.String GetName()
Returns the primary name of the object. This name will be used when the language of the user isn't known or isn't supported.
Returns:
the name

SetName

public void SetName(java.lang.String Value)
Sets the primary name of the object. This name will be used when the language of the user isn't known or isn't supported.
Parameters:
Value - the name

GetDescription

public java.lang.String GetDescription()
Returns the primary description of the object. This description will be used when the language of the user isn't known or isn't supported.
Returns:
the description

SetDescription

public void SetDescription(java.lang.String Value)
Sets the primary description of the object. This description will be used when the language of the user isn't known or isn't supported.
Parameters:
Value - the description

GetLocalizedNames

public java.lang.Object[][] GetLocalizedNames()
Returns the localized names for this object as a 2D array. The purpose of each column is identified by the constants in PT_LOCALIZED_STRINGS_INDICES.
Returns:
the localized names
See Also:
PT_LOCALIZED_STRINGS_INDICES

SetLocalizedNames

public void SetLocalizedNames(java.lang.Object[][] Value)
Sets the localized names for this object.
Parameters:
Value - an array containing the data about localized names. The columns in the 2D array are identified by the constants in PT_LOCALIZED_STRINGS_INDICES.
See Also:
PT_LOCALIZED_STRINGS_INDICES

GetLocalizedName

public java.lang.String GetLocalizedName()
Return the name of this object localized to the language of the current user
Returns:
the localized name

GetLocalizedDescriptions

public java.lang.Object[][] GetLocalizedDescriptions()
Returns the localized descriptions for this object as a 2D array. The purpose of each column is identified by the constants in PT_LOCALIZED_STRINGS_INDICES.
Returns:
the localized descriptions
See Also:
PT_LOCALIZED_STRINGS_INDICES

SetLocalizedDescriptions

public void SetLocalizedDescriptions(java.lang.Object[][] Value)
Sets the localized descriptions for this object.
Parameters:
Value - an array containing the data about localized descriptions. The columns in the 2D array are identified by the constants in PT_LOCALIZED_STRINGS_INDICES.
See Also:
PT_LOCALIZED_STRINGS_INDICES

GetLocalizedDescription

public java.lang.String GetLocalizedDescription()
Return the description of this object localized to the language of the current user
Returns:
the localized description

GetIsLocalized

public boolean GetIsLocalized()
Does this object support localization? Note that an object may support localization, but nonetheless have no actual localizations. That is, the object is marked to be localized, but localization hasn't been done yet.
Returns:
does the object support localization?

SetIsLocalized

public void SetIsLocalized(boolean Value)
Does this object support localization? Note that an object may support localization, but nonetheless have no actual localizations. That is, the object is marked to be localized, but localization hasn't been done yet. Note that if an object supports localization, and SetIsLocalized(false) is called, all localized strings will be removed from the object.
Parameters:
Value - boolean indicating whether this object should support localization.

GetPrimaryLang

public java.lang.String GetPrimaryLang()
The primary language of the object is the language that the primary name and primary description are in. Other metadata about the object (which cannot be localized) is also expected to be in this language.
Returns:
the primary language

SetPrimaryLang

public void SetPrimaryLang(java.lang.String Value)
The primary language of the object is the language that the primary name and primary description are in. Other metadata about the object (which cannot be localized) is also expected to be in this language.
Parameters:
Value - the primary language

GetSupportsLocalization

public boolean GetSupportsLocalization()
Does this type of object support localization? Some object types (IPTCard, for example) do not support localization. Calling functions like SetLocalizedNames on an object that does not support localization will result in an error.
Returns:
Does this type of object support localization?


Copyright © 2003 Plumtree Software Inc. All Rights Reserved.