RepoAuditLogger.java revision cb5b6129f5ce624da5e34cbe3983cd85450d33dd
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright © 2011 ForgeRock AS. All rights reserved.
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*/
/**
* Audit logger that logs to a repository
* @author aegloff
*/
public class RepoAuditLogger implements AuditLogger {
}
public void cleanup() {
}
/**
* {@inheritdoc}
*/
try {
} catch (ObjectSetException ex) {
throw ex;
} catch (RuntimeException ex) {
throw ex;
}
return result;
}
/**
* {@inheritdoc}
*/
public Map<String, Object> query(String fullId, Map<String, Object> params) throws ObjectSetException {
try {
} catch (ObjectSetException ex) {
throw ex;
} catch (RuntimeException ex) {
throw ex;
}
return result;
}
/**
* {@inheritdoc}
*/
try {
} catch (ObjectSetException ex) {
throw ex;
} catch (RuntimeException ex) {
throw ex;
}
}
private RepositoryService getRepoService() throws ServiceUnavailableException, InternalServerErrorException {
try {
int timeout = 10000;
throw new InternalServerErrorException("Repository audit logger failure to obtain the repo service."
}
}
}
throw new ServiceUnavailableException("Repository audit logger could not find the repository service.");
}
return repo;
}
/**
* Audit service does not support changing audit entries.
*/
throw new UnsupportedOperationException();
}
/**
* Audit service currently does not support deleting audit entries.
*/
throw new UnsupportedOperationException();
}
/**
* Audit service does not support changing audit entries.
*/
throw new UnsupportedOperationException();
}
}