org.alfresco.repo.admin
Interface RepoServerMgmtMBean

All Known Implementing Classes:
RepoServerMgmt

public interface RepoServerMgmtMBean

Repository Server Management Note: The attributes/operations below can be clustered (ie. when configured all servers in the cluster will be affected)


Method Summary
 int getMaxUsers()
          Get 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.
 int getTicketCountAll()
          Get count of all tickets This may be higher than the user count, since a user can have more than one ticket/session
 int getTicketCountNonExpired()
          Get count of non-expired tickets This may be higher than the user count, since a user can have more than one ticket/session
 int getUserCountAll()
          Get count of all users This may be lower than the ticket count, since a user can have more than one ticket/session
 int getUserCountNonExpired()
          Get count of non-expired users This may be lower than the ticket count, since a user can have more than one ticket/session
 int invalidateTicketsAll()
          Invalidate all tickets Note: This operation can be clustered (ie.
 int invalidateTicketsExpired()
          Invalidate expired tickets
 void invalidateUser(java.lang.String username)
          Invalidate given users tickets
 boolean isReadOnly()
          Does the Repository allows writes or not ?
 java.lang.String[] listUserNamesAll()
          Get set of all unique usernames
 java.lang.String[] listUserNamesNonExpired()
          Get set of unique non-expired usernames
 

Method Detail

isReadOnly

boolean isReadOnly()
Does the Repository allows writes or not ?

Returns:
boolean true is READONLY, false is WRITEABLE

getTicketCountNonExpired

int getTicketCountNonExpired()
Get count of non-expired tickets This may be higher than the user count, since a user can have more than one ticket/session

Returns:
int number of non-expired tickets

getTicketCountAll

int getTicketCountAll()
Get count of all tickets This may be higher than the user count, since a user can have more than one ticket/session

Returns:
int number of tickets (non-expired and expired)

getUserCountNonExpired

int getUserCountNonExpired()
Get count of non-expired users This may be lower than the ticket count, since a user can have more than one ticket/session

Returns:
int number of non-expired users

getUserCountAll

int getUserCountAll()
Get count of all users This may be lower than the ticket count, since a user can have more than one ticket/session

Returns:
int number of users (non-expired and expired)

listUserNamesNonExpired

java.lang.String[] listUserNamesNonExpired()
Get set of unique non-expired usernames

Returns:
String[] array of non-expired usernames

listUserNamesAll

java.lang.String[] listUserNamesAll()
Get set of all unique usernames

Returns:
String[] array of all usernames (non-expired and expired)

invalidateTicketsExpired

int invalidateTicketsExpired()
Invalidate expired tickets

Returns:
int count of expired invalidated tickets

invalidateTicketsAll

int invalidateTicketsAll()
Invalidate all tickets Note: This operation can be clustered (ie. all servers in the cluster will be affected)

Returns:
int count of all invalidated tickets (non-expired and expired)

invalidateUser

void invalidateUser(java.lang.String username)
Invalidate given users tickets


getMaxUsers

int getMaxUsers()
Get 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)

Parameters:
int - maxUsers


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.