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

public interface IThingNameInfo extends IThingNameView
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:
  • Method Details

    • getThingLang

      String getThingLang() throws MetaException
      Returns:
      the language of this thing by checking the name The first name entered indicates the default language.
      Throws:
      MetaException
    • getName

      String getName(String lang) throws MetaException
      Gets the name in the default language
      Returns:
      String
      Throws:
      MetaException - if thing doesn't exist or DB error
    • setName

      void setName(String name) throws MetaException
      sets the name in the default language
      Parameters:
      name - 256 char max
      Throws:
      MetaException - if thing doesn't exist or DB error
    • setName

      void setName(String name, String strISOLanguage) throws MetaException
      sets name in specified language
      Parameters:
      name - 256 char max
      strISOLanguage - language code
      Throws:
      MetaException - if thing doesn't exist or DB error
    • getDescription

      String getDescription(String lang) throws MetaException
      gets description for default language
      Returns:
      String
      Throws:
      MetaException - if thing doesn't exist or DB error
    • setDescription

      void setDescription(String desc) throws MetaException
      sets description in default language
      Parameters:
      desc - 256 char max
      Throws:
      MetaException - if thing doesn't exist or DB error
    • setDescription

      void setDescription(String desc, String strISOLanguage) throws MetaException
      sets description in specified language
      Parameters:
      desc - 256 char max
      strISOLanguage - language code
      Throws:
      MetaException - if thing doesn't exist or DB error
    • putNameDesc

      void putNameDesc(String name, String desc, String strISOLanguage)
      put the name & desc for a given lang in the cache
      Parameters:
      strISOLanguage - null==default lang
    • setNameDesc

      void setNameDesc(String name, String desc, String strISOLanguage) throws MetaException
      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

      Collection<String> getAllLanguages() throws MetaException
      Returns a collection of all languages that name/description exist for this thing
      Returns:
      Collection of String
      Throws:
      MetaException