com.liferay.portal.security.audit.storage.service.AuditEventLocalServiceWrapper Maven / Gradle / Ivy
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.security.audit.storage.service;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.service.ServiceWrapper;
/**
* Provides a wrapper for {@link AuditEventLocalService}.
*
* @author Brian Wing Shun Chan
* @see AuditEventLocalService
* @generated
*/
@ProviderType
public class AuditEventLocalServiceWrapper
implements AuditEventLocalService, ServiceWrapper {
public AuditEventLocalServiceWrapper(
AuditEventLocalService auditEventLocalService) {
_auditEventLocalService = auditEventLocalService;
}
/**
* Adds the audit event to the database. Also notifies the appropriate model listeners.
*
* @param auditEvent the audit event
* @return the audit event that was added
*/
@Override
public com.liferay.portal.security.audit.storage.model.AuditEvent
addAuditEvent(
com.liferay.portal.security.audit.storage.model.AuditEvent
auditEvent) {
return _auditEventLocalService.addAuditEvent(auditEvent);
}
@Override
public com.liferay.portal.security.audit.storage.model.AuditEvent
addAuditEvent(
com.liferay.portal.kernel.audit.AuditMessage auditMessage) {
return _auditEventLocalService.addAuditEvent(auditMessage);
}
/**
* Creates a new audit event with the primary key. Does not add the audit event to the database.
*
* @param auditEventId the primary key for the new audit event
* @return the new audit event
*/
@Override
public com.liferay.portal.security.audit.storage.model.AuditEvent
createAuditEvent(long auditEventId) {
return _auditEventLocalService.createAuditEvent(auditEventId);
}
/**
* Deletes the audit event from the database. Also notifies the appropriate model listeners.
*
* @param auditEvent the audit event
* @return the audit event that was removed
*/
@Override
public com.liferay.portal.security.audit.storage.model.AuditEvent
deleteAuditEvent(
com.liferay.portal.security.audit.storage.model.AuditEvent
auditEvent) {
return _auditEventLocalService.deleteAuditEvent(auditEvent);
}
/**
* Deletes the audit event with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param auditEventId the primary key of the audit event
* @return the audit event that was removed
* @throws PortalException if a audit event with the primary key could not be found
*/
@Override
public com.liferay.portal.security.audit.storage.model.AuditEvent
deleteAuditEvent(long auditEventId)
throws com.liferay.portal.kernel.exception.PortalException {
return _auditEventLocalService.deleteAuditEvent(auditEventId);
}
/**
* @throws PortalException
*/
@Override
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException {
return _auditEventLocalService.deletePersistedModel(persistedModel);
}
@Override
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
return _auditEventLocalService.dynamicQuery();
}
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
*/
@Override
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
return _auditEventLocalService.dynamicQuery(dynamicQuery);
}
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portal.security.audit.storage.model.impl.AuditEventModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
*/
@Override
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) {
return _auditEventLocalService.dynamicQuery(dynamicQuery, start, end);
}
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portal.security.audit.storage.model.impl.AuditEventModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching rows
*/
@Override
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) {
return _auditEventLocalService.dynamicQuery(
dynamicQuery, start, end, orderByComparator);
}
/**
* Returns the number of rows matching the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows matching the dynamic query
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
return _auditEventLocalService.dynamicQueryCount(dynamicQuery);
}
/**
* Returns the number of rows matching the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows matching the dynamic query
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection) {
return _auditEventLocalService.dynamicQueryCount(
dynamicQuery, projection);
}
@Override
public com.liferay.portal.security.audit.storage.model.AuditEvent
fetchAuditEvent(long auditEventId) {
return _auditEventLocalService.fetchAuditEvent(auditEventId);
}
@Override
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
getActionableDynamicQuery() {
return _auditEventLocalService.getActionableDynamicQuery();
}
/**
* Returns the audit event with the primary key.
*
* @param auditEventId the primary key of the audit event
* @return the audit event
* @throws PortalException if a audit event with the primary key could not be found
*/
@Override
public com.liferay.portal.security.audit.storage.model.AuditEvent
getAuditEvent(long auditEventId)
throws com.liferay.portal.kernel.exception.PortalException {
return _auditEventLocalService.getAuditEvent(auditEventId);
}
/**
* Returns a range of all the audit events.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portal.security.audit.storage.model.impl.AuditEventModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param start the lower bound of the range of audit events
* @param end the upper bound of the range of audit events (not inclusive)
* @return the range of audit events
*/
@Override
public java.util.List
getAuditEvents(int start, int end) {
return _auditEventLocalService.getAuditEvents(start, end);
}
@Override
public java.util.List
getAuditEvents(long companyId, int start, int end) {
return _auditEventLocalService.getAuditEvents(companyId, start, end);
}
@Override
public java.util.List
getAuditEvents(
long companyId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return _auditEventLocalService.getAuditEvents(
companyId, start, end, orderByComparator);
}
@Override
public java.util.List
getAuditEvents(
long companyId, long userId, String userName,
java.util.Date createDateGT, java.util.Date createDateLT,
String eventType, String className, String classPK,
String clientHost, String clientIP, String serverName,
int serverPort, String sessionID, boolean andSearch, int start,
int end) {
return _auditEventLocalService.getAuditEvents(
companyId, userId, userName, createDateGT, createDateLT, eventType,
className, classPK, clientHost, clientIP, serverName, serverPort,
sessionID, andSearch, start, end);
}
@Override
public java.util.List
getAuditEvents(
long companyId, long userId, String userName,
java.util.Date createDateGT, java.util.Date createDateLT,
String eventType, String className, String classPK,
String clientHost, String clientIP, String serverName,
int serverPort, String sessionID, boolean andSearch, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return _auditEventLocalService.getAuditEvents(
companyId, userId, userName, createDateGT, createDateLT, eventType,
className, classPK, clientHost, clientIP, serverName, serverPort,
sessionID, andSearch, start, end, orderByComparator);
}
/**
* Returns the number of audit events.
*
* @return the number of audit events
*/
@Override
public int getAuditEventsCount() {
return _auditEventLocalService.getAuditEventsCount();
}
@Override
public int getAuditEventsCount(long companyId) {
return _auditEventLocalService.getAuditEventsCount(companyId);
}
@Override
public int getAuditEventsCount(
long companyId, long userId, String userName,
java.util.Date createDateGT, java.util.Date createDateLT,
String eventType, String className, String classPK, String clientHost,
String clientIP, String serverName, int serverPort, String sessionID,
boolean andSearch) {
return _auditEventLocalService.getAuditEventsCount(
companyId, userId, userName, createDateGT, createDateLT, eventType,
className, classPK, clientHost, clientIP, serverName, serverPort,
sessionID, andSearch);
}
@Override
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
getIndexableActionableDynamicQuery() {
return _auditEventLocalService.getIndexableActionableDynamicQuery();
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
@Override
public String getOSGiServiceIdentifier() {
return _auditEventLocalService.getOSGiServiceIdentifier();
}
@Override
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException {
return _auditEventLocalService.getPersistedModel(primaryKeyObj);
}
/**
* Updates the audit event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param auditEvent the audit event
* @return the audit event that was updated
*/
@Override
public com.liferay.portal.security.audit.storage.model.AuditEvent
updateAuditEvent(
com.liferay.portal.security.audit.storage.model.AuditEvent
auditEvent) {
return _auditEventLocalService.updateAuditEvent(auditEvent);
}
@Override
public AuditEventLocalService getWrappedService() {
return _auditEventLocalService;
}
@Override
public void setWrappedService(
AuditEventLocalService auditEventLocalService) {
_auditEventLocalService = auditEventLocalService;
}
private AuditEventLocalService _auditEventLocalService;
}