public class WorkspaceLanguageConfiguration extends Object
Constructor and Description |
---|
WorkspaceLanguageConfiguration()
Creates a new
WorkspaceLanguageConfiguration with no
language mappings defined. |
Modifier and Type | Method and Description |
---|---|
void |
addWorkspaceMapping(String contentType,
String language)
Maps a content type id to a language id.
|
String |
getLanguageForContentType(String contentTypeId)
Returns the language id that is mapped to the given content type.
|
Map<String,String> |
getWorkspaceMappings()
Returns a read-only copy of the workspace-wide language mappings.
|
void |
removeWorkspaceMapping(String contentType)
Removes the given content type mapping (if it exists).
|
void |
setWorkspaceMappings(Map<String,String> mappings)
Replaces the existing language mappings with the given
mappings.
|
public WorkspaceLanguageConfiguration()
WorkspaceLanguageConfiguration
with no
language mappings defined.public void addWorkspaceMapping(String contentType, String language)
contentType
- language
- public void removeWorkspaceMapping(String contentType)
contentType
- public void setWorkspaceMappings(Map<String,String> mappings)
String
) and language ids (String
)mappings
- public Map<String,String> getWorkspaceMappings()
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.