| java.lang.Object com.flexive.core.security.UserTicketImpl
UserTicketImpl | public class UserTicketImpl implements UserTicket,Serializable(Code) | | Implementation of the interface UserTicket.
The UserTicket caches informations about a user.
author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Method Summary | |
public UserTicketImpl | cloneAsGlobalSupervisor() | public ACLAssignment[] | getACLAssignments() | public ACLAssignment[] | getACLAssignments(ACL.Category category, long ownerId, ACL.Permission... perms) | public ACL[] | getACLs(long owner, ACL.Category category, ACL.Permission... perms) | public String | getACLsCSV(long ownerId, ACL.Category category, ACL.Permission... perms) | public Long[] | getACLsId(long ownerId, ACL.Category category, ACL.Permission... perms) | public String | getApplicationId() | public AuthenticationSource | getAuthenticationSource() | public FxPK | getContactData() | public long | getCreationTime() Returns the time that this ticket was created at. | public long | getFailedLoginAttempts() | public long[] | getGroups() | public static synchronized UserTicket | getGuestTicket() Returns a guest ticket, based on the request information data. | public FxLanguage | getLanguage() | public String | getLoginName() | public long | getMandatorId() | public long | getUserId() | public String | getUserName() | public boolean | hasAtLeastOneACL(long[] acls) Returns true if the user is assigned to at least one of the given ACLs. | public boolean | isAssignedToACL(long aclId) | public boolean | isDirty() If true the ticket is dirty and needs to be synced with the database. | public boolean | isGlobalSupervisor() | public boolean | isGuest() | public boolean | isInAtLeastOneGroup(long[] groups) | public boolean | isInGroup(long group) | public boolean | isInGroups(int groups) | final public boolean | isInRole(Role role) | public boolean | isMandatorSupervisor() | public boolean | isMultiLogin() | public boolean | isWebDav() | public boolean | mayCreateACL(long aclId, long ownerId) | public boolean | mayDeleteACL(long aclId, long ownerId) | public boolean | mayEditACL(long aclId, long ownerId) | public boolean | mayExportACL(long aclId, long ownerId) | public boolean | mayReadACL(long aclId, long ownerId) | public boolean | mayRelateACL(long aclId, long ownerId) | public void | overrideLanguage(FxLanguage language) | public static synchronized void | reloadGuestTicketAssignments(boolean flagDirty) | public void | setAuthenticationSource(AuthenticationSource authenticationSource) | public void | setDirty(boolean value) Sets the dirty flag. | public void | setFailedLoginAttempts(long failedLoginAttempts) | public String | toString() Returns a string representation of the ticket. |
UserTicketImpl | public UserTicketImpl(String applicationId, boolean isWebDav, Account acc, long[] groups, Role[] roles, ACLAssignment aad, FxLanguage language)(Code) | | Constructor.
Parameters: applicationId - the application id this ticket belongs to Parameters: acc - the account Parameters: groups - the groups Parameters: roles - the roles Parameters: aad - the acl assignemnts Parameters: language - the language Parameters: isWebDav - true if this is a webdav ticket |
getCreationTime | public long getCreationTime()(Code) | | Returns the time that this ticket was created at.
the time that the ticket was created at |
getFailedLoginAttempts | public long getFailedLoginAttempts()(Code) | | |
getGroups | public long[] getGroups()(Code) | | |
getGuestTicket | public static synchronized UserTicket getGuestTicket()(Code) | | Returns a guest ticket, based on the request information data.
The guest ticket always belong to the MANDATOR_PUBLIC.
the guest ticket |
getMandatorId | public long getMandatorId()(Code) | | |
getUserId | public long getUserId()(Code) | | |
hasAtLeastOneACL | public boolean hasAtLeastOneACL(long[] acls)(Code) | | Returns true if the user is assigned to at least one of the given ACLs.
Returns false if the acls parameter is null or empty
Parameters: acls - the ACLs to check for true if the user is a assigned to at least one of the given ACLs |
isAssignedToACL | public boolean isAssignedToACL(long aclId)(Code) | | |
isDirty | public boolean isDirty()(Code) | | If true the ticket is dirty and needs to be synced with the database.
true the ticket is dirty and needs to be synced with the database |
isGlobalSupervisor | public boolean isGlobalSupervisor()(Code) | | |
isGuest | public boolean isGuest()(Code) | | |
isInAtLeastOneGroup | public boolean isInAtLeastOneGroup(long[] groups)(Code) | | |
isInGroup | public boolean isInGroup(long group)(Code) | | |
isInGroups | public boolean isInGroups(int groups)(Code) | | |
isInRole | final public boolean isInRole(Role role)(Code) | | |
isMandatorSupervisor | public boolean isMandatorSupervisor()(Code) | | |
isMultiLogin | public boolean isMultiLogin()(Code) | | |
isWebDav | public boolean isWebDav()(Code) | | |
mayCreateACL | public boolean mayCreateACL(long aclId, long ownerId)(Code) | | |
mayDeleteACL | public boolean mayDeleteACL(long aclId, long ownerId)(Code) | | |
mayEditACL | public boolean mayEditACL(long aclId, long ownerId)(Code) | | |
mayExportACL | public boolean mayExportACL(long aclId, long ownerId)(Code) | | |
mayReadACL | public boolean mayReadACL(long aclId, long ownerId)(Code) | | |
mayRelateACL | public boolean mayRelateACL(long aclId, long ownerId)(Code) | | |
reloadGuestTicketAssignments | public static synchronized void reloadGuestTicketAssignments(boolean flagDirty)(Code) | | (Re)load all assignments for the guest user ticket
Parameters: flagDirty - flag the UserTicketStores guest ticket as dirty? |
setDirty | public void setDirty(boolean value)(Code) | | Sets the dirty flag.
Parameters: value - true the ticket is dirty and needs to be synced with the database |
setFailedLoginAttempts | public void setFailedLoginAttempts(long failedLoginAttempts)(Code) | | |
toString | public String toString()(Code) | | Returns a string representation of the ticket.
a string representation of the ticket. |
|
|