org.alfresco.repo.admin
Class RepoServerMgmt

java.lang.Object
  extended by org.alfresco.repo.admin.RepoServerMgmt
All Implemented Interfaces:
RepoServerMgmtMBean

public class RepoServerMgmt
extends java.lang.Object
implements RepoServerMgmtMBean


Constructor Summary
RepoServerMgmt()
           
 
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
 void setAuthenticationService(AbstractAuthenticationService authenticationService)
           
 void setTransactionService(TransactionServiceImpl transactionService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepoServerMgmt

public RepoServerMgmt()
Method Detail

setTransactionService

public void setTransactionService(TransactionServiceImpl transactionService)

setAuthenticationService

public void setAuthenticationService(AbstractAuthenticationService authenticationService)

isReadOnly

public boolean isReadOnly()
Description copied from interface: RepoServerMgmtMBean
Does the Repository allows writes or not ?

Specified by:
isReadOnly in interface RepoServerMgmtMBean
Returns:
boolean true is READONLY, false is WRITEABLE

getTicketCountNonExpired

public int getTicketCountNonExpired()
Description copied from interface: RepoServerMgmtMBean
Get 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:
getTicketCountNonExpired in interface RepoServerMgmtMBean
Returns:
int number of non-expired tickets

getTicketCountAll

public int getTicketCountAll()
Description copied from interface: RepoServerMgmtMBean
Get count of all tickets This may be higher than the user count, since a user can have more than one ticket/session

Specified by:
getTicketCountAll in interface RepoServerMgmtMBean
Returns:
int number of tickets (non-expired and expired)

getUserCountNonExpired

public int getUserCountNonExpired()
Description copied from interface: RepoServerMgmtMBean
Get 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:
getUserCountNonExpired in interface RepoServerMgmtMBean
Returns:
int number of non-expired users

getUserCountAll

public int getUserCountAll()
Description copied from interface: RepoServerMgmtMBean
Get count of all users This may be lower than the ticket count, since a user can have more than one ticket/session

Specified by:
getUserCountAll in interface RepoServerMgmtMBean
Returns:
int number of users (non-expired and expired)

listUserNamesNonExpired

public java.lang.String[] listUserNamesNonExpired()
Description copied from interface: RepoServerMgmtMBean
Get set of unique non-expired usernames

Specified by:
listUserNamesNonExpired in interface RepoServerMgmtMBean
Returns:
String[] array of non-expired usernames

listUserNamesAll

public java.lang.String[] listUserNamesAll()
Description copied from interface: RepoServerMgmtMBean
Get set of all unique usernames

Specified by:
listUserNamesAll in interface RepoServerMgmtMBean
Returns:
String[] array of all usernames (non-expired and expired)

invalidateTicketsExpired

public int invalidateTicketsExpired()
Description copied from interface: RepoServerMgmtMBean
Invalidate expired tickets

Specified by:
invalidateTicketsExpired in interface RepoServerMgmtMBean
Returns:
int count of expired invalidated tickets

invalidateTicketsAll

public int invalidateTicketsAll()
Description copied from interface: RepoServerMgmtMBean
Invalidate all tickets Note: This operation can be clustered (ie. all servers in the cluster will be affected)

Specified by:
invalidateTicketsAll in interface RepoServerMgmtMBean
Returns:
int count of all invalidated tickets (non-expired and expired)

invalidateUser

public void invalidateUser(java.lang.String username)
Description copied from interface: RepoServerMgmtMBean
Invalidate given users tickets

Specified by:
invalidateUser in interface RepoServerMgmtMBean

getMaxUsers

public int getMaxUsers()
Description copied from interface: RepoServerMgmtMBean
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)

Specified by:
getMaxUsers in interface RepoServerMgmtMBean


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