Package org.alfresco.repo.admin
Class RepoServerMgmt
java.lang.Object
org.alfresco.repo.admin.RepoServerMgmt
- All Implemented Interfaces:
RepoServerMgmtMBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet limit for max users If number of non-expired logins is greater or equal to the limit then further logins will be prevented otherwise valid login attempt will be permitted.intGet count of all tickets This may be higher than the user count, since a user can have more than one ticket/sessionintGet count of non-expired tickets This may be higher than the user count, since a user can have more than one ticket/sessionintGet count of all users This may be lower than the ticket count, since a user can have more than one ticket/sessionintGet count of non-expired users This may be lower than the ticket count, since a user can have more than one ticket/sessionintInvalidate all tickets Note: This operation can be clustered (ie. all servers in the cluster will be affected)intInvalidate expired ticketsvoidinvalidateUser(String username) Invalidate given users ticketsbooleanDoes the Repository allows writes or not ?String[]Get set of all unique usernamesString[]Get set of unique non-expired usernamesvoidsetAuthenticationService(AbstractAuthenticationService authenticationService) voidsetTransactionService(TransactionServiceImpl transactionService)
-
Constructor Details
-
RepoServerMgmt
public RepoServerMgmt()
-
-
Method Details
-
setTransactionService
-
setAuthenticationService
-
isReadOnly
public boolean isReadOnly()Description copied from interface:RepoServerMgmtMBeanDoes the Repository allows writes or not ?- Specified by:
isReadOnlyin interfaceRepoServerMgmtMBean- Returns:
- boolean true is READONLY, false is WRITEABLE
-
getTicketCountNonExpired
public int getTicketCountNonExpired()Description copied from interface:RepoServerMgmtMBeanGet count of non-expired tickets This may be higher than the user count, since a user can have more than one ticket/session- Specified by:
getTicketCountNonExpiredin interfaceRepoServerMgmtMBean- Returns:
- int number of non-expired tickets
-
getTicketCountAll
public int getTicketCountAll()Description copied from interface:RepoServerMgmtMBeanGet count of all tickets This may be higher than the user count, since a user can have more than one ticket/session- Specified by:
getTicketCountAllin interfaceRepoServerMgmtMBean- Returns:
- int number of tickets (non-expired and expired)
-
getUserCountNonExpired
public int getUserCountNonExpired()Description copied from interface:RepoServerMgmtMBeanGet count of non-expired users This may be lower than the ticket count, since a user can have more than one ticket/session- Specified by:
getUserCountNonExpiredin interfaceRepoServerMgmtMBean- Returns:
- int number of non-expired users
-
getUserCountAll
public int getUserCountAll()Description copied from interface:RepoServerMgmtMBeanGet count of all users This may be lower than the ticket count, since a user can have more than one ticket/session- Specified by:
getUserCountAllin interfaceRepoServerMgmtMBean- Returns:
- int number of users (non-expired and expired)
-
listUserNamesNonExpired
Description copied from interface:RepoServerMgmtMBeanGet set of unique non-expired usernames- Specified by:
listUserNamesNonExpiredin interfaceRepoServerMgmtMBean- Returns:
- String[] array of non-expired usernames
-
listUserNamesAll
Description copied from interface:RepoServerMgmtMBeanGet set of all unique usernames- Specified by:
listUserNamesAllin interfaceRepoServerMgmtMBean- Returns:
- String[] array of all usernames (non-expired and expired)
-
invalidateTicketsExpired
public int invalidateTicketsExpired()Description copied from interface:RepoServerMgmtMBeanInvalidate expired tickets- Specified by:
invalidateTicketsExpiredin interfaceRepoServerMgmtMBean- Returns:
- int count of expired invalidated tickets
-
invalidateTicketsAll
public int invalidateTicketsAll()Description copied from interface:RepoServerMgmtMBeanInvalidate all tickets Note: This operation can be clustered (ie. all servers in the cluster will be affected)- Specified by:
invalidateTicketsAllin interfaceRepoServerMgmtMBean- Returns:
- int count of all invalidated tickets (non-expired and expired)
-
invalidateUser
Description copied from interface:RepoServerMgmtMBeanInvalidate given users tickets- Specified by:
invalidateUserin interfaceRepoServerMgmtMBean
-
getMaxUsers
public int getMaxUsers()Description copied from interface:RepoServerMgmtMBeanGet limit for max users If number of non-expired logins is greater or equal to the limit then further logins will be prevented otherwise valid login attempt will be permitted. However, single-user mode will take precedence. Max users = 0 prevents further logins Max users = -1 allow logins (without a max limit)- Specified by:
getMaxUsersin interfaceRepoServerMgmtMBean
-