public class LayoutUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROP_LAYOUT_DEFAULT |
static String |
PROP_LAYOUT_EDITABLE |
Constructor and Description |
---|
LayoutUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultLayout(Properties kmeProperties)
Gets the default layout
|
static String |
getValidLayout(String requestedLayout,
Properties kmeProperties)
Returns a valid layout.
|
static boolean |
isLayoutAllowed(String layout,
Properties kmeProperties)
Returns tre if the layout is an allowed layout
|
static boolean |
isLayoutChangeAllowed(Properties kmeProperties)
Returns true if users are allowed to change their layout
|
static boolean |
isValidLayout(String layout)
Returns true uf the specified layout is a valid layout
|
public static final String PROP_LAYOUT_DEFAULT
public static final String PROP_LAYOUT_EDITABLE
public LayoutUtil()
public static final String getValidLayout(String requestedLayout, Properties kmeProperties)
requestedLayout
- The layout requestedkmeProperties
- A reference to the KME Propertiespublic static final boolean isLayoutAllowed(String layout, Properties kmeProperties)
layout
- Layout to check if it is allowedkmeProperties
- A reference to the KME Propertiespublic static final boolean isLayoutChangeAllowed(Properties kmeProperties)
kmeProperties
- public static final String getDefaultLayout(Properties kmeProperties)
kmeProperties
- public static final boolean isValidLayout(String layout)
layout
- Layout name to checkCopyright © 2011–2015 The Kuali Foundation. All rights reserved.