mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Get JMX working again for subsystem monitor beans.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55331 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package org.alfresco.repo.security.authentication;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
/**
|
||||
* Event emmitted when an Authenticator is deleted, the source is the zoneId deleted.
|
||||
*
|
||||
* @author mrogers
|
||||
*/
|
||||
public class AuthenticatorDeletedEvent extends ApplicationEvent
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 3641164223727881175L;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param source a String with the zoneid
|
||||
*/
|
||||
public AuthenticatorDeletedEvent(Object source)
|
||||
{
|
||||
super(source);
|
||||
}
|
||||
|
||||
}
|
@@ -148,16 +148,18 @@ public class Monitor
|
||||
return syncMonitor.getSynchronizationStatus(getZone(component.getId()));
|
||||
}
|
||||
|
||||
public Date getSynchronizationLastUserUpdateTime()
|
||||
{
|
||||
return syncMonitor.getSynchronizationLastUserUpdateTime(getZone(component.getId()));
|
||||
}
|
||||
|
||||
public Date getSynchronizationLastGroupUpdateTime()
|
||||
{
|
||||
return syncMonitor.getSynchronizationLastGroupUpdateTime(getZone(component.getId()));
|
||||
}
|
||||
|
||||
// public Date getSynchronizationLastUserUpdateTime()
|
||||
// {
|
||||
// // TODO This method fails due to a unable to find transaction error - Comment out for now
|
||||
// return syncMonitor.getSynchronizationLastUserUpdateTime(getZone(component.getId()));
|
||||
// }
|
||||
//
|
||||
// public Date getSynchronizationLastGroupUpdateTime()
|
||||
// {
|
||||
// // TODO This method fails due to a unable to find transaction error - Comment out for now
|
||||
// return syncMonitor.getSynchronizationLastGroupUpdateTime(getZone(component.getId()));
|
||||
// }
|
||||
//
|
||||
public String getSynchronizationLastError()
|
||||
{
|
||||
return syncMonitor.getSynchronizationLastError(getZone(component.getId()));
|
||||
@@ -168,6 +170,21 @@ public class Monitor
|
||||
return syncMonitor.getSynchronizationSummary(getZone(component.getId()));
|
||||
}
|
||||
|
||||
public String getLastRunOnServer()
|
||||
{
|
||||
return syncMonitor.getLastRunOnServer();
|
||||
}
|
||||
|
||||
public Date getSyncStartTime()
|
||||
{
|
||||
return syncMonitor.getSyncStartTime();
|
||||
}
|
||||
|
||||
public Date getSyncEndTime()
|
||||
{
|
||||
return syncMonitor.getSyncEndTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the zone for an ldap authentication component. e.g given [managed,ldap1] return ldap1
|
||||
* @param id ths id of the subsystem
|
||||
|
Reference in New Issue
Block a user