mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.2 to HEAD
7260: Basic JMX sys admin - to manage session/tickets and server modes such as read-only and single-user git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8242 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
package org.alfresco.repo.security.authentication;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
/**
|
||||
* Manage authentication tickets
|
||||
@@ -89,6 +91,34 @@ public interface TicketComponent
|
||||
* @param userName
|
||||
*/
|
||||
public void invalidateTicketByUser(String userName);
|
||||
|
||||
/**
|
||||
* Count tickets
|
||||
*
|
||||
* This may be higher than the user count, since a user can have more than one ticket/session
|
||||
*
|
||||
* @param nonExpiredOnly true for non expired tickets, false for all (including expired) tickets
|
||||
* @return int number of tickets
|
||||
*/
|
||||
public int countTickets(boolean nonExpiredOnly);
|
||||
|
||||
/**
|
||||
* Get set of users with tickets
|
||||
*
|
||||
* This may be lower than the ticket count, since a user can have more than one ticket/session
|
||||
*
|
||||
* @param nonExpiredOnly true for non expired tickets, false for all (including expired) tickets
|
||||
* @return Set<String> set of users with (one or more) tickets
|
||||
*/
|
||||
public Set<String> getUsersWithTickets(boolean nonExpiredOnly);
|
||||
|
||||
/**
|
||||
* Invalidate tickets
|
||||
*
|
||||
* @param expiredOnly true for EXPIRED tickets, false for ALL (including non-expired) tickets
|
||||
* @return int count of invalidated tickets
|
||||
*/
|
||||
public int invalidateTickets(boolean expiredOnly);
|
||||
|
||||
/**
|
||||
* Get the authority for the given ticket
|
||||
|
Reference in New Issue
Block a user