public class LayoutService extends Object implements ILayoutService
| Constructor and Description |
|---|
LayoutService(org.carewebframework.api.property.IPropertyService propertyService) |
| Modifier and Type | Method and Description |
|---|---|
void |
cloneLayout(LayoutIdentifier layout,
LayoutIdentifier layout2)
Clone a layout.
|
void |
deleteLayout(LayoutIdentifier layout)
Delete a layout.
|
String |
getLayoutContent(LayoutIdentifier layout)
Returns the layout content.
|
String |
getLayoutContentByAppId(String appId)
Load the layout associated with the specified application id.
|
List<String> |
getLayouts(boolean shared)
Returns a list of saved layouts.
|
boolean |
layoutExists(LayoutIdentifier layout)
Returns true if the specified layout exists.
|
void |
renameLayout(LayoutIdentifier layout,
String newName)
Rename a layout.
|
void |
saveLayout(LayoutIdentifier layout,
String content)
Saves a layout with the specified name and content.
|
boolean |
validateName(String name)
Validates a layout name.
|
public LayoutService(org.carewebframework.api.property.IPropertyService propertyService)
public boolean validateName(String name)
validateName in interface ILayoutServicename - Layout name to validate.public boolean layoutExists(LayoutIdentifier layout)
layoutExists in interface ILayoutServicelayout - The layout identifier.public void saveLayout(LayoutIdentifier layout, String content)
saveLayout in interface ILayoutServicelayout - The layout identifier.content - The layout content.public void renameLayout(LayoutIdentifier layout, String newName)
renameLayout in interface ILayoutServicelayout - The original layout identifier.newName - The new layout name.public void cloneLayout(LayoutIdentifier layout, LayoutIdentifier layout2)
cloneLayout in interface ILayoutServicelayout - The original layout identifier.layout2 - The new layout identifier.public void deleteLayout(LayoutIdentifier layout)
deleteLayout in interface ILayoutServicelayout - The layout identifier.public String getLayoutContent(LayoutIdentifier layout)
getLayoutContent in interface ILayoutServicelayout - The layout identifier.public String getLayoutContentByAppId(String appId)
getLayoutContentByAppId in interface ILayoutServiceappId - An application id.public List<String> getLayouts(boolean shared)
getLayouts in interface ILayoutServiceshared - If true, return shared layouts; otherwise, return personal layouts.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.