Interface IThingNameInfo
- All Superinterfaces:
IThingNameView
- All Known Subinterfaces:
IArchived
,IBizPolicyData
,ICategory
,IContainer
,IContent
,IDirServiceThing
,IFolder
,IForm
,IForum
,IGroup
,IHandlerData
,ILink
,IMechanicsData
,IMessage
,IPortlet
,IPrincipal
,IRelation
,IRole
,ISchedule
,IServiceThing
,IStyle
,ITemplate
,IThing
,IThingComponentData
,ITopic
,ITopic
,IUser
,IWorkspace
,IXType
Get and set name data.
We store name/desc for each language.
The first language a thing was assigned a name/desc in becomes the "default" language.
getName(java.lang.String)
and getDescription(java.lang.String)
return the name/desc in the current language,
or in the default language getThingLang()
if an entry in the current language is not found- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
return structure for getNames -
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of all languages that name/description exist for this thinggetDescription
(String lang) gets description for default languageGets the name in the default languagegetNames()
get a list of all names as name atomsvoid
putNameDesc
(String name, String desc, String strISOLanguage) put the name & desc for a given lang in the cachevoid
setDescription
(String desc) sets description in default languagevoid
setDescription
(String desc, String strISOLanguage) sets description in specified languagevoid
sets the name in the default languagevoid
sets name in specified languagevoid
setNameDesc
(String name, String desc, String strISOLanguage) set the name/desc in the DB for a given lang It's more effiecient to call these togetherMethods inherited from interface com.webmethods.portal.service.meta2.thing.IThingNameView
getDescription, getName
-
Method Details
-
getThingLang
- Returns:
- the language of this thing by checking the name The first name entered indicates the default language.
- Throws:
MetaException
-
getName
Gets the name in the default language- Returns:
- String
- Throws:
MetaException
- if thing doesn't exist or DB error
-
setName
sets the name in the default language- Parameters:
name
- 256 char max- Throws:
MetaException
- if thing doesn't exist or DB error
-
setName
sets name in specified language- Parameters:
name
- 256 char maxstrISOLanguage
- language code- Throws:
MetaException
- if thing doesn't exist or DB error
-
getDescription
gets description for default language- Returns:
- String
- Throws:
MetaException
- if thing doesn't exist or DB error
-
setDescription
sets description in default language- Parameters:
desc
- 256 char max- Throws:
MetaException
- if thing doesn't exist or DB error
-
setDescription
sets description in specified language- Parameters:
desc
- 256 char maxstrISOLanguage
- language code- Throws:
MetaException
- if thing doesn't exist or DB error
-
putNameDesc
put the name & desc for a given lang in the cache- Parameters:
strISOLanguage
- null==default lang
-
setNameDesc
set the name/desc in the DB for a given lang It's more effiecient to call these together- Parameters:
strISOLanguage
- null==default lang- Throws:
MetaException
-
getNames
get a list of all names as name atoms- Throws:
MetaException
-
getAllLanguages
Returns a collection of all languages that name/description exist for this thing- Returns:
- Collection of String
- Throws:
MetaException
-