Uses of Class
com.logicaldoc.core.security.User
Package
Description
Core plug-in that contains the most important domain objects
Automation subsystem that allows you to program your own logic inside the
platform.
The automation engine can be accessed through the class
Please note the special annotation
The automation engine can be accessed through the class
Automation
Please note the special annotation
AutomationDictionary
that is used to
automatically put in the Dictionary whatever bean you need.The pluggable authentication mechanism.
GWT services implementations.
-
Uses of User in com.logicaldoc.core
-
Uses of User in com.logicaldoc.core.automation
-
Uses of User in com.logicaldoc.core.document
Modifier and TypeMethodDescriptionstatic Version
Factory method that creates a Version and replicate all given document's properties.
The new version and fileVersion will be set in both Document and Version
Important: The created Version is not persistent -
Uses of User in com.logicaldoc.core.security
Modifier and TypeMethodDescriptionGroup.getUser()
If this is a user group, then it returns the userSession.getUser()
Modifier and TypeMethodDescriptionvoid
UserListener.afterStore
(User user, UserHistory transaction, Map<String, Object> dictionary) Called after a user is stored in the databasevoid
UserListener.beforeStore
(User user, UserHistory transaction, Map<String, Object> dictionary) Called before a user is stored in the databaseSessionManager.createSession
(User user, Client client) Creates a new session by authenticated the given user and stores it in the pool of opened sessions -
Uses of User in com.logicaldoc.core.security.authentication
Modifier and TypeMethodDescriptionAbstractAuthenticator.authenticate
(String username, String password, String key) AbstractAuthenticator.authenticate
(String username, String password, String key, Client client) final User
AuthenticationChain.authenticate
(String username, String password) final User
AuthenticationChain.authenticate
(String username, String password, String key, Client client) Authenticator.authenticate
(String username, String password) Authenticates the user using the given credentials, if successful, the corresponding user is returned.Authenticator.authenticate
(String username, String password, String key) Authenticates the user using the given credentials, if successful, the corresponding user is returned.Authenticator.authenticate
(String username, String password, String key, Client client) Authenticates the user using the given credentials, if successful, the corresponding user is returned.DefaultAuthenticator.authenticate
(String username, String password) DefaultAuthenticator.authenticate
(String username, String password, String key, Client client) This method does not authenticate the user but just retrieves his detailsModifier and TypeMethodDescriptionvoid
DefaultAuthenticator.validateUser
(User user) Perform some security validations on the user but does not check the password. -
Uses of User in com.logicaldoc.core.security.dao
Modifier and TypeMethodDescriptionHibernateUserDAO.findAdminUser
(String tenantName) UserDAO.findAdminUser
(String tenantName) Retrieve the administrator for the given tenant.HibernateUserDAO.findById
(long id) HibernateUserDAO.findByUsername
(String username) UserDAO.findByUsername
(String username) This method finds an User by its username.HibernateUserDAO.findByUsernameIgnoreCase
(String username) UserDAO.findByUsernameIgnoreCase
(String username) This method finds an User by its username.Depending on the global setting, it invokes findByUsername or findByUsernameIgnoreCaseModifier and TypeMethodDescriptionHibernateUserDAO.findByGroup
(long groupId) UserDAO.findByGroup
(long groupId) Retrieves the users belonging to a given group.HibernateUserDAO.findByLikeUsername
(String username) UserDAO.findByLikeUsername
(String username) This method finds an User by username.HibernateUserDAO.findByName
(String name) UserDAO.findByName
(String name) This method finds an User by name.HibernateUserDAO.findByUsernameAndName
(String username, String name) UserDAO.findByUsernameAndName
(String username, String name) This method finds an User by username and name.Modifier and TypeMethodDescriptionHibernateUserHistoryDAO.createUserHistory
(User user, String eventType, String comment, String sessionId, Client client) UserHistoryDAO.createUserHistory
(User user, String event, String comment, String sessionId, Client client) Creates an user history entryvoid
HibernateUserDAO.initialize
(User user) void
void
HibernateUserDAO.store
(User user, UserHistory transaction) void
UserDAO.store
(User user, UserHistory transaction) This method persists the user object and insert a new user history entry.DeviceDAO.trustDevice
(User user, Device device) Trusts a device for a userHibernateDeviceDAO.trustDevice
(User user, Device requestDevice) -
Uses of User in com.logicaldoc.core.util
Modifier and TypeMethodDescriptionstatic void
UserUtil.generateDefaultAvatar
(User user) Updates the avatar of a user with the default avatar that is the Gravatar or the auto-generated image(in case Gravatar is not available)static void
UserUtil.saveAvatar
(User user, File avatarImageFile) Updates the avatar of a user with a given .png image -
Uses of User in com.logicaldoc.web.service
Modifier and TypeMethodDescriptionstatic GUIDocument
DocumentServiceImpl.fromDocument
(Document doc, GUIFolder folder, User sessionUser) TemplateServiceImpl.prepareGUIAttributes
(Template template, ExtensibleObject extensibleObject, User sessionUser) -
Uses of User in com.logicaldoc.web.util
Modifier and TypeMethodDescriptionstatic User
ServletUtil.getSessionUser
(String sid) static User
ServletUtil.getSessionUser
(javax.servlet.http.HttpServletRequest request) Modifier and TypeMethodDescriptionstatic void
ServletUtil.downloadDocument
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String sid, long docId, String fileVersion, String fileName, String suffix, User user) Sends the specified document to the response object; the client will receive it as a downloadstatic void
ServletUtil.downloadDocument
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String sid, String docId, String fileVersion, String fileName, User user) Sends the specified document to the response object; the client will receive it as a downloadstatic void
ServletUtil.downloadDocumentText
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, long docId, User user) Sends the specified document's indexed text to the response object; the client will receive it as a download -
Uses of User in com.logicaldoc.webservice.model