Store for all currently logged in user(ticket)s
author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
Inner Class :static class SubjectWithPath
Method Summary
public static void
flagDirtyHavingACL(long aclId) Flags all active UserTickets with a given ACL id as dirty, which will
force them to sync with the database upon the next access.
public static void
flagDirtyHavingGroupId(Long groupId) Flags all active UserTickets with a given group id as dirty, which will
force them to sync with the database upon the next access.
public static void
flagDirtyHavingUserId(Long userId) Flags all active UserTickets with a given user id as dirty, which will
force them to sync with the database upon the next access.
removeUserId(long userId, String applicationId) Removes all data matching a given user id.
public static void
storeSubject(Subject sub) Stores a subject (and its ticket) for the current session.
Method Detail
flagDirtyHavingACL
public static void flagDirtyHavingACL(long aclId)(Code)
Flags all active UserTickets with a given ACL id as dirty, which will
force them to sync with the database upon the next access.
Parameters: aclId - the acl
flagDirtyHavingGroupId
public static void flagDirtyHavingGroupId(Long groupId)(Code)
Flags all active UserTickets with a given group id as dirty, which will
force them to sync with the database upon the next access.
Parameters: groupId - the group id
flagDirtyHavingUserId
public static void flagDirtyHavingUserId(Long userId)(Code)
Flags all active UserTickets with a given user id as dirty, which will
force them to sync with the database upon the next access.
Parameters: userId - the user id, or null
Gets the user ticket for the current request.
the user ticket for the current request.
getTicket
public static UserTicket getTicket(boolean refreshIfDirty)(Code)
Gets the user ticket for the current request.
Parameters: refreshIfDirty - true: syncs the ticket with the database if it is dirty the user ticket for the current request.
public static int removeUserId(long userId, String applicationId)(Code)
Removes all data matching a given user id.
Parameters: userId - the user id Parameters: applicationId - the application id, may be null for all applications amount of deleted entries