mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
SAIL-240 (SAIL-294): DAO refactor for Audit.hbm.xml
- Removed audit.hbm.xml and related audit classes - Audit tests grouped into suite git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20870 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -19,88 +19,18 @@
|
||||
package org.alfresco.service.cmr.audit;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.service.NotAuditable;
|
||||
import org.alfresco.service.PublicService;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
|
||||
/**
|
||||
* The public API by which applications can create audit entries.
|
||||
* This does not affect auditing using method interceptors.
|
||||
* The information recorded can not be confused between the two.
|
||||
* The public API by which applications can query the audit logs and enable or disable auditing.
|
||||
*
|
||||
* This API could be used by an audit action.
|
||||
*
|
||||
* @author Andy Hind
|
||||
* @author Derek Hulley
|
||||
*/
|
||||
@PublicService
|
||||
public interface AuditService
|
||||
{
|
||||
/**
|
||||
* Add an application audit entry.
|
||||
*
|
||||
* @param source -
|
||||
* a string that represents the application
|
||||
* @param description -
|
||||
* the audit entry
|
||||
*/
|
||||
@NotAuditable
|
||||
public void audit(String source, String description);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param source -
|
||||
* a string that represents the application
|
||||
* @param description -
|
||||
* the audit entry
|
||||
* @param key -
|
||||
* a node ref to use as the key for filtering etc
|
||||
*/
|
||||
@NotAuditable
|
||||
public void audit(String source, String description, NodeRef key);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param source -
|
||||
* a string that represents the application
|
||||
* @param description -
|
||||
* the audit entry
|
||||
* @param args -
|
||||
* an arbitrary list of parameters
|
||||
*/
|
||||
@NotAuditable
|
||||
public void audit(String source, String description, Object... args);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param source -
|
||||
* a string that represents the application
|
||||
* @param description -
|
||||
* the audit entry *
|
||||
* @param key -
|
||||
* a node ref to use as the key for filtering etc
|
||||
* @param args -
|
||||
* an arbitrary list of parameters
|
||||
*/
|
||||
@NotAuditable
|
||||
public void audit(String source, String description, NodeRef key, Object... args);
|
||||
|
||||
|
||||
/**
|
||||
* Get the audit trail for a node ref.
|
||||
*
|
||||
* @param nodeRef - the node ref for which to get the audit trail.
|
||||
* @return - tha audit trail
|
||||
*/
|
||||
@NotAuditable
|
||||
public List<AuditInfo> getAuditTrail(NodeRef nodeRef);
|
||||
|
||||
/*
|
||||
* V3.2 from here on. Put all fixes to the older audit code before this point, please.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param applicationName the name of the application to check
|
||||
* @param path the path to check
|
||||
|
@@ -29,16 +29,12 @@ import org.alfresco.service.PublicService;
|
||||
* against a user id.
|
||||
*
|
||||
* @author Andy Hind
|
||||
*
|
||||
*/
|
||||
@PublicService
|
||||
public interface AuthenticationService
|
||||
{
|
||||
/**
|
||||
* Is an authentication enabled or disabled?
|
||||
*
|
||||
* @param userName
|
||||
* @return
|
||||
*/
|
||||
@Auditable(parameters = {"userName"})
|
||||
public boolean getAuthenticationEnabled(String userName) throws AuthenticationException;
|
||||
@@ -90,9 +86,6 @@ public interface AuthenticationService
|
||||
|
||||
/**
|
||||
* Invalidate any tickets held by the user.
|
||||
*
|
||||
* @param userName
|
||||
* @throws AuthenticationException
|
||||
*/
|
||||
@Auditable(parameters = {"userName"})
|
||||
public void invalidateUserSession(String userName) throws AuthenticationException;
|
||||
@@ -100,7 +93,6 @@ public interface AuthenticationService
|
||||
/**
|
||||
* Invalidate a single ticket by ID or remove its association with a given session ID.
|
||||
*
|
||||
* @param ticket
|
||||
* @param sessionId
|
||||
* the app server session ID (e.g. HttpSession ID) or <code>null</code> if not applicable.
|
||||
* @throws AuthenticationException
|
||||
@@ -145,22 +137,18 @@ public interface AuthenticationService
|
||||
* Get a new ticket as a string
|
||||
* @param sessionId
|
||||
* the app server session ID (e.g. HttpSession ID) or <code>null</code> if not applicable.
|
||||
* @return
|
||||
*/
|
||||
@Auditable(parameters = {"sessionId"}, recordable = {false})
|
||||
public String getNewTicket(String sessionId);
|
||||
|
||||
/**
|
||||
* Remove the current security information
|
||||
*
|
||||
*/
|
||||
@Auditable
|
||||
public void clearCurrentSecurityContext();
|
||||
|
||||
/**
|
||||
* Is the current user the system user?
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Auditable
|
||||
public boolean isCurrentUserTheSystemUser();
|
||||
@@ -175,24 +163,18 @@ public interface AuthenticationService
|
||||
|
||||
/**
|
||||
* Does this instance alow user to be created?
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Auditable
|
||||
public Set<String> getDomainsThatAllowUserCreation();
|
||||
|
||||
/**
|
||||
* Does this instance allow users to be deleted?
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Auditable
|
||||
public Set<String> getDomainsThatAllowUserDeletion();
|
||||
|
||||
/**
|
||||
* Does this instance allow users to update their passwords?
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Auditable
|
||||
public Set<String> getDomiansThatAllowUserPasswordChanges();
|
||||
|
Reference in New Issue
Block a user