Package org.javlo.context
Class EditContext
- java.lang.Object
-
- org.javlo.context.EditContext
-
- All Implemented Interfaces:
Serializable
public class EditContext extends Object implements Serializable
- Author:
- pvanderm
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADMIN_USER_VIEW
static int
CONTENT_VIEW
static int
DATA_VIEW
protected static Logger
logger
create a static logger.static int
MAILING_VIEW
static int
STAT_VIEW
static int
STATIC_VIEW
static String
USER_ROLES_SEPARATOR
static int
USER_VIEW
-
Method Summary
-
-
-
Field Detail
-
logger
protected static Logger logger
create a static logger.
-
CONTENT_VIEW
public static final int CONTENT_VIEW
- See Also:
- Constant Field Values
-
USER_VIEW
public static final int USER_VIEW
- See Also:
- Constant Field Values
-
STAT_VIEW
public static final int STAT_VIEW
- See Also:
- Constant Field Values
-
STATIC_VIEW
public static final int STATIC_VIEW
- See Also:
- Constant Field Values
-
MAILING_VIEW
public static final int MAILING_VIEW
- See Also:
- Constant Field Values
-
ADMIN_USER_VIEW
public static final int ADMIN_USER_VIEW
- See Also:
- Constant Field Values
-
DATA_VIEW
public static final int DATA_VIEW
- See Also:
- Constant Field Values
-
USER_ROLES_SEPARATOR
public static final String USER_ROLES_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static final EditContext getInstance(GlobalContext globalContext, javax.servlet.http.HttpSession session)
-
getActiveType
public String getActiveType()
- Returns:
-
setActiveType
public void setActiveType(String string)
- Parameters:
string
-
-
getTeasersDirectory
public String getTeasersDirectory()
- Returns:
-
setTeasersDirectory
public void setTeasersDirectory(String string)
- Parameters:
string
-
-
getFilter
public String getFilter()
- Returns:
-
setFilter
public void setFilter(String string)
- Parameters:
string
-
-
getContextForCopy
public ContentContext getContextForCopy(ContentContext ctx)
- Returns:
-
setPathForCopy
public void setPathForCopy(ContentContext ctx) throws Exception
- Parameters:
string
-- Throws:
Exception
-
getCurrentAdminView
public int getCurrentAdminView()
- Returns:
-
getUserEditFilter
public UserEditFilter getUserEditFilter()
- Returns:
-
getViews
public String[][] getViews()
-
getAdminViews
public String[][] getAdminViews()
-
getDefaultViewLanguage
public String getDefaultViewLanguage()
- Returns:
- Returns the defaultViewLanguage.
-
getActions
public String[] getActions(GlobalContext globalContext)
-
haveLicence
public boolean haveLicence(String module)
-
hardLogin
public boolean hardLogin(String inUser, String inPassword)
log user with user define in config file and not in user interface.- Parameters:
inUser
-inPassword
-- Returns:
- true if user is logged.
-
hardAutoLogin
public boolean hardAutoLogin(String inUser)
autolog user with user define in WEB.XML and not in user interface.- Parameters:
inUser
-- Returns:
- true if user is logged.
-
logout
public void logout()
-
getUserPrincipal
public Principal getUserPrincipal()
-
getEditTemplate
public String getEditTemplate()
-
getMessageTemplate
public String getMessageTemplate()
-
getBoxTemplate
public String getBoxTemplate()
-
getBreadcrumbsTemplate
public String getBreadcrumbsTemplate()
-
setMessageTemplate
public void setMessageTemplate(String messageTemplate)
-
getLoginRenderer
public String getLoginRenderer()
-
setLoginRenderer
public void setLoginRenderer(String loginRenderer)
-
getAjaxRenderer
public String getAjaxRenderer()
-
setAjaxRenderer
public void setAjaxRenderer(String ajaxRenderer)
-
getAdminUserEditFilter
public UserEditFilter getAdminUserEditFilter()
-
getEditUser
public User getEditUser()
-
setEditUser
public void setEditUser(User editUser)
-
isMailing
public boolean isMailing()
-
setMailing
public void setMailing(boolean mailing)
-
getMainRenderer
public String getMainRenderer()
-
setMainRenderer
public void setMainRenderer(String mainRenderer)
-
getCommandRenderer
public String getCommandRenderer()
-
setCommandRenderer
public void setCommandRenderer(String commandRenderer)
-
isViewCommand
public boolean isViewCommand()
-
setViewCommand
public void setViewCommand(boolean viewCommand)
-
isViewComponent
public boolean isViewComponent()
-
setViewComponent
public void setViewComponent(boolean viewComponent)
-
isViewMode
public boolean isViewMode()
-
setViewMode
public void setViewMode(boolean viewMode)
-
getCurrentArea
public String getCurrentArea()
-
setCurrentArea
public void setCurrentArea(String currentArea)
-
isLightInterface
public boolean isLightInterface()
-
setLightInterface
public void setLightInterface(Boolean isLightInterface)
-
isPreviewEditionMode
public boolean isPreviewEditionMode()
-
setPreviewEditionMode
public void setPreviewEditionMode(boolean editPreview)
-
-