public class WriterPermissions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_PREFIX |
static String |
EDITOR_PREFIX |
static String |
JOURNALIST_PREFIX |
static String |
SPAMMER_PREFIX |
Constructor and Description |
---|
WriterPermissions() |
Modifier and Type | Method and Description |
---|---|
static Expression |
getAdminExpression(String instance)
Builds and returns an expression that checks if the user is an admin of a specific writer instance
|
static Expression |
getEditorExpression(String instance)
Builds and returns an expression that checks if the user is an editor of a specific writer instance
|
static Expression |
getEditorOrAdminExpression(String instance)
Builds and returns an expression that checks if the user is an editor or an admin of a specific writer instance
|
static Expression |
getJournalistExpression(String instance)
Builds and returns an expression that checks if the user is a journalist of a specific writer instance
|
static Expression |
getJournalistOrEditorExpression(String instance)
Builds and returns an expression that checks if the user is a journalist or an editor of a specific writer instance
|
static Expression |
getSpammerExpression(String instance)
Builds and returns an expression that checks if the user is a spammer of a specific writer instance
|
public static final String SPAMMER_PREFIX
public static final String JOURNALIST_PREFIX
public static final String EDITOR_PREFIX
public static final String ADMIN_PREFIX
public WriterPermissions()
public static Expression getSpammerExpression(String instance)
instance
- Instance to check against.public static Expression getJournalistExpression(String instance)
instance
- Instance to check against.public static Expression getEditorExpression(String instance)
instance
- Instance to check against.public static Expression getAdminExpression(String instance)
instance
- Instance to check against.public static Expression getJournalistOrEditorExpression(String instance)
instance
- Instance to check against.public static Expression getEditorOrAdminExpression(String instance)
instance
- Instance to check against.Copyright © 2011–2014 The Kuali Foundation. All rights reserved.