/**
* Copyright (c) 2009-2014 Câmara dos Deputados. Todos os direitos reservados.
*
* e-Democracia é um software livre; você pode redistribuí-lo e/ou modificá-lo dentro
* dos termos da Licença Pública Geral Menor GNU como publicada pela Fundação do
* Software Livre (FSF); na versão 2.1 da Licença, ou (na sua opinião) qualquer versão.
*
* Este programa é distribuído na esperança de que possa ser útil, mas SEM NENHUMA GARANTIA;
* sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR.
* Veja a Licença Pública Geral Menor GNU para maiores detalhes.
*/
package br.gov.camara.edemocracia.portlets.chat.service;
import com.liferay.portal.service.InvokableLocalService;
public class ChatRoomLocalServiceClp implements ChatRoomLocalService {
private InvokableLocalService _invokableLocalService;
private String _methodName0;
private String[] _methodParameterTypes0;
private String _methodName1;
private String[] _methodParameterTypes1;
private String _methodName2;
private String[] _methodParameterTypes2;
private String _methodName3;
private String[] _methodParameterTypes3;
private String _methodName4;
private String[] _methodParameterTypes4;
private String _methodName5;
private String[] _methodParameterTypes5;
private String _methodName6;
private String[] _methodParameterTypes6;
private String _methodName7;
private String[] _methodParameterTypes7;
private String _methodName8;
private String[] _methodParameterTypes8;
private String _methodName9;
private String[] _methodParameterTypes9;
private String _methodName10;
private String[] _methodParameterTypes10;
private String _methodName11;
private String[] _methodParameterTypes11;
private String _methodName12;
private String[] _methodParameterTypes12;
private String _methodName13;
private String[] _methodParameterTypes13;
private String _methodName14;
private String[] _methodParameterTypes14;
private String _methodName15;
private String[] _methodParameterTypes15;
private String _methodName16;
private String[] _methodParameterTypes16;
private String _methodName17;
private String[] _methodParameterTypes17;
private String _methodName19;
private String[] _methodParameterTypes19;
private String _methodName20;
private String[] _methodParameterTypes20;
private String _methodName21;
private String[] _methodParameterTypes21;
private String _methodName22;
private String[] _methodParameterTypes22;
private String _methodName23;
private String[] _methodParameterTypes23;
private String _methodName24;
private String[] _methodParameterTypes24;
private String _methodName25;
private String[] _methodParameterTypes25;
private String _methodName26;
private String[] _methodParameterTypes26;
private String _methodName27;
private String[] _methodParameterTypes27;
private String _methodName28;
private String[] _methodParameterTypes28;
private String _methodName29;
private String[] _methodParameterTypes29;
private String _methodName30;
private String[] _methodParameterTypes30;
private String _methodName31;
private String[] _methodParameterTypes31;
private String _methodName32;
private String[] _methodParameterTypes32;
private String _methodName33;
private String[] _methodParameterTypes33;
private String _methodName34;
private String[] _methodParameterTypes34;
private String _methodName35;
private String[] _methodParameterTypes35;
private String _methodName36;
private String[] _methodParameterTypes36;
private String _methodName37;
private String[] _methodParameterTypes37;
private String _methodName38;
private String[] _methodParameterTypes38;
public ChatRoomLocalServiceClp(InvokableLocalService invokableLocalService) {
_invokableLocalService = invokableLocalService;
_methodName0 = "addChatRoom";
_methodParameterTypes0 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom"
};
_methodName1 = "createChatRoom";
_methodParameterTypes1 = new String[] { "long" };
_methodName2 = "deleteChatRoom";
_methodParameterTypes2 = new String[] { "long" };
_methodName3 = "deleteChatRoom";
_methodParameterTypes3 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom"
};
_methodName4 = "dynamicQuery";
_methodParameterTypes4 = new String[] { };
_methodName5 = "dynamicQuery";
_methodParameterTypes5 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName6 = "dynamicQuery";
_methodParameterTypes6 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int"
};
_methodName7 = "dynamicQuery";
_methodParameterTypes7 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName8 = "dynamicQueryCount";
_methodParameterTypes8 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName9 = "fetchChatRoom";
_methodParameterTypes9 = new String[] { "long" };
_methodName10 = "getChatRoom";
_methodParameterTypes10 = new String[] { "long" };
_methodName11 = "getPersistedModel";
_methodParameterTypes11 = new String[] { "java.io.Serializable" };
_methodName12 = "getChatRooms";
_methodParameterTypes12 = new String[] { "int", "int" };
_methodName13 = "getChatRoomsCount";
_methodParameterTypes13 = new String[] { };
_methodName14 = "updateChatRoom";
_methodParameterTypes14 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom"
};
_methodName15 = "updateChatRoom";
_methodParameterTypes15 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom",
"boolean"
};
_methodName16 = "getBeanIdentifier";
_methodParameterTypes16 = new String[] { };
_methodName17 = "setBeanIdentifier";
_methodParameterTypes17 = new String[] { "java.lang.String" };
_methodName19 = "findOpenAndEnterableClosedRoomsInCompany";
_methodParameterTypes19 = new String[] { "long", "boolean" };
_methodName20 = "findScheduledRoomsInCompany";
_methodParameterTypes20 = new String[] { "long" };
_methodName21 = "findExportedRoomsInCompany";
_methodParameterTypes21 = new String[] { "long" };
_methodName22 = "listUsersStartingBy";
_methodParameterTypes22 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom",
"java.lang.String"
};
_methodName23 = "isFullNameInUseInPortal";
_methodParameterTypes23 = new String[] { "long", "java.lang.String" };
_methodName24 = "getUsersCountInChatRoom";
_methodParameterTypes24 = new String[] { "long" };
_methodName25 = "roomHaveSpaceLeft";
_methodParameterTypes25 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom"
};
_methodName26 = "addUserToRoom";
_methodParameterTypes26 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom",
"com.liferay.portal.model.User", "java.util.Date"
};
_methodName27 = "addModeratorToRoom";
_methodParameterTypes27 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom",
"com.liferay.portal.model.User", "java.util.Date"
};
_methodName28 = "addAnonUser";
_methodParameterTypes28 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom",
"java.util.Date", "java.lang.String", "java.lang.String", "long"
};
_methodName29 = "addSpyUser";
_methodParameterTypes29 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom",
"java.util.Date", "com.liferay.portal.model.User"
};
_methodName30 = "banirUsuario";
_methodParameterTypes30 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoom",
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser",
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser",
"java.util.Date", "boolean"
};
_methodName31 = "isUserInRoom";
_methodParameterTypes31 = new String[] {
"java.lang.Long",
"br.gov.camara.edemocracia.portlets.chat.service.UserActivityId"
};
_methodName32 = "updateUserTimestamp";
_methodParameterTypes32 = new String[] {
"java.lang.Long",
"br.gov.camara.edemocracia.portlets.chat.service.UserActivityId"
};
_methodName33 = "removeSpyUser";
_methodParameterTypes33 = new String[] {
"java.lang.Long",
"br.gov.camara.edemocracia.portlets.chat.service.UserActivityId"
};
_methodName34 = "removeUser";
_methodParameterTypes34 = new String[] {
"br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser",
"java.util.Date"
};
_methodName35 = "checkScheduledRoomState";
_methodParameterTypes35 = new String[] { "java.util.Date" };
_methodName36 = "removerUsuariosInativos";
_methodParameterTypes36 = new String[] { };
_methodName37 = "removerUsuariosBanidosDeSalasFechadas";
_methodParameterTypes37 = new String[] { };
_methodName38 = "synchronizeActivityManagerAndDatabase";
_methodParameterTypes38 = new String[] { };
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoom addChatRoom(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom chatRoom)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName0,
_methodParameterTypes0,
new Object[] { ClpSerializer.translateInput(chatRoom) });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoom) ClpSerializer.translateOutput(returnObj);
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoom createChatRoom(
long roomId) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName1,
_methodParameterTypes1, new Object[] { roomId });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoom) ClpSerializer.translateOutput(returnObj);
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoom deleteChatRoom(
long roomId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName2,
_methodParameterTypes2, new Object[] { roomId });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException) t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoom) ClpSerializer.translateOutput(returnObj);
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoom deleteChatRoom(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom chatRoom)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName3,
_methodParameterTypes3,
new Object[] { ClpSerializer.translateInput(chatRoom) });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoom) ClpSerializer.translateOutput(returnObj);
}
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName4,
_methodParameterTypes4, new Object[] { });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.portal.kernel.dao.orm.DynamicQuery) ClpSerializer.translateOutput(returnObj);
}
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName5,
_methodParameterTypes5,
new Object[] { ClpSerializer.translateInput(dynamicQuery) });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List) ClpSerializer.translateOutput(returnObj);
}
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName6,
_methodParameterTypes6,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
start,
end
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List) ClpSerializer.translateOutput(returnObj);
}
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName7,
_methodParameterTypes7,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
start,
end,
ClpSerializer.translateInput(orderByComparator)
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List) ClpSerializer.translateOutput(returnObj);
}
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName8,
_methodParameterTypes8,
new Object[] { ClpSerializer.translateInput(dynamicQuery) });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Long) returnObj).longValue();
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoom fetchChatRoom(
long roomId) throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName9,
_methodParameterTypes9, new Object[] { roomId });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoom) ClpSerializer.translateOutput(returnObj);
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoom getChatRoom(
long roomId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName10,
_methodParameterTypes10, new Object[] { roomId });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException) t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoom) ClpSerializer.translateOutput(returnObj);
}
public com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName11,
_methodParameterTypes11,
new Object[] { ClpSerializer.translateInput(primaryKeyObj) });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException) t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.portal.model.PersistedModel) ClpSerializer.translateOutput(returnObj);
}
public java.util.List<br.gov.camara.edemocracia.portlets.chat.model.ChatRoom> getChatRooms(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName12,
_methodParameterTypes12, new Object[] { start, end });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List<br.gov.camara.edemocracia.portlets.chat.model.ChatRoom>) ClpSerializer.translateOutput(returnObj);
}
public int getChatRoomsCount()
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName13,
_methodParameterTypes13, new Object[] { });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Integer) returnObj).intValue();
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoom updateChatRoom(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom chatRoom)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName14,
_methodParameterTypes14,
new Object[] { ClpSerializer.translateInput(chatRoom) });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoom) ClpSerializer.translateOutput(returnObj);
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoom updateChatRoom(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom chatRoom,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName15,
_methodParameterTypes15,
new Object[] { ClpSerializer.translateInput(chatRoom), merge });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoom) ClpSerializer.translateOutput(returnObj);
}
public java.lang.String getBeanIdentifier() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName16,
_methodParameterTypes16, new Object[] { });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.lang.String) ClpSerializer.translateOutput(returnObj);
}
public void setBeanIdentifier(java.lang.String beanIdentifier) {
try {
_invokableLocalService.invokeMethod(_methodName17,
_methodParameterTypes17,
new Object[] { ClpSerializer.translateInput(beanIdentifier) });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
throw new UnsupportedOperationException();
}
public java.util.List<br.gov.camara.edemocracia.portlets.chat.model.ChatRoom> findOpenAndEnterableClosedRoomsInCompany(
long companyId, boolean userLogado)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName19,
_methodParameterTypes19,
new Object[] { companyId, userLogado });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List<br.gov.camara.edemocracia.portlets.chat.model.ChatRoom>) ClpSerializer.translateOutput(returnObj);
}
public java.util.List<br.gov.camara.edemocracia.portlets.chat.model.ChatRoom> findScheduledRoomsInCompany(
long groupId)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName20,
_methodParameterTypes20, new Object[] { groupId });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List<br.gov.camara.edemocracia.portlets.chat.model.ChatRoom>) ClpSerializer.translateOutput(returnObj);
}
public java.util.List<br.gov.camara.edemocracia.portlets.chat.model.ChatRoom> findExportedRoomsInCompany(
long groupId)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName21,
_methodParameterTypes21, new Object[] { groupId });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List<br.gov.camara.edemocracia.portlets.chat.model.ChatRoom>) ClpSerializer.translateOutput(returnObj);
}
public java.util.HashSet<java.lang.String> listUsersStartingBy(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom room,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName22,
_methodParameterTypes22,
new Object[] {
ClpSerializer.translateInput(room),
ClpSerializer.translateInput(name)
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.HashSet<java.lang.String>) ClpSerializer.translateOutput(returnObj);
}
public boolean isFullNameInUseInPortal(long companyId,
java.lang.String fullName) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName23,
_methodParameterTypes23,
new Object[] {
companyId,
ClpSerializer.translateInput(fullName)
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Boolean) returnObj).booleanValue();
}
public long getUsersCountInChatRoom(long roomId)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName24,
_methodParameterTypes24, new Object[] { roomId });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Long) returnObj).longValue();
}
public boolean roomHaveSpaceLeft(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom room)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName25,
_methodParameterTypes25,
new Object[] { ClpSerializer.translateInput(room) });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Boolean) returnObj).booleanValue();
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser addUserToRoom(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom room,
com.liferay.portal.model.User portalUser, java.util.Date timestamp)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName26,
_methodParameterTypes26,
new Object[] {
ClpSerializer.translateInput(room),
ClpSerializer.translateInput(portalUser),
ClpSerializer.translateInput(timestamp)
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException) t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser) ClpSerializer.translateOutput(returnObj);
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser addModeratorToRoom(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom room,
com.liferay.portal.model.User portalUser, java.util.Date timestamp)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName27,
_methodParameterTypes27,
new Object[] {
ClpSerializer.translateInput(room),
ClpSerializer.translateInput(portalUser),
ClpSerializer.translateInput(timestamp)
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException) t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser) ClpSerializer.translateOutput(returnObj);
}
public br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser addAnonUser(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom room,
java.util.Date timestamp, java.lang.String name,
java.lang.String email, long uf)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName28,
_methodParameterTypes28,
new Object[] {
ClpSerializer.translateInput(room),
ClpSerializer.translateInput(timestamp),
ClpSerializer.translateInput(name),
ClpSerializer.translateInput(email),
uf
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException) t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser) ClpSerializer.translateOutput(returnObj);
}
public br.gov.camara.edemocracia.portlets.chat.service.UserActivityId addSpyUser(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom room,
java.util.Date timestamp, com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName29,
_methodParameterTypes29,
new Object[] {
ClpSerializer.translateInput(room),
ClpSerializer.translateInput(timestamp),
ClpSerializer.translateInput(user)
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException) t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (br.gov.camara.edemocracia.portlets.chat.service.UserActivityId) ClpSerializer.translateOutput(returnObj);
}
public void banirUsuario(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoom sala,
br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser moderador,
br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser usuarioParaBanir,
java.util.Date timestamp, boolean banido)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName30,
_methodParameterTypes30,
new Object[] {
ClpSerializer.translateInput(sala),
ClpSerializer.translateInput(moderador),
ClpSerializer.translateInput(usuarioParaBanir),
ClpSerializer.translateInput(timestamp),
banido
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException) t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
public boolean isUserInRoom(java.lang.Long roomId,
br.gov.camara.edemocracia.portlets.chat.service.UserActivityId userActivityId) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName31,
_methodParameterTypes31,
new Object[] {
ClpSerializer.translateInput(roomId),
ClpSerializer.translateInput(userActivityId)
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Boolean) returnObj).booleanValue();
}
public void updateUserTimestamp(java.lang.Long roomId,
br.gov.camara.edemocracia.portlets.chat.service.UserActivityId userActivityId) {
try {
_invokableLocalService.invokeMethod(_methodName32,
_methodParameterTypes32,
new Object[] {
ClpSerializer.translateInput(roomId),
ClpSerializer.translateInput(userActivityId)
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
public void removeSpyUser(java.lang.Long roomId,
br.gov.camara.edemocracia.portlets.chat.service.UserActivityId userActivityId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName33,
_methodParameterTypes33,
new Object[] {
ClpSerializer.translateInput(roomId),
ClpSerializer.translateInput(userActivityId)
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException) t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
public void removeUser(
br.gov.camara.edemocracia.portlets.chat.model.ChatRoomUser user,
java.util.Date timestamp) {
try {
_invokableLocalService.invokeMethod(_methodName34,
_methodParameterTypes34,
new Object[] {
ClpSerializer.translateInput(user),
ClpSerializer.translateInput(timestamp)
});
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
public void checkScheduledRoomState(java.util.Date timestamp)
throws com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName35,
_methodParameterTypes35,
new Object[] { ClpSerializer.translateInput(timestamp) });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
public void removerUsuariosInativos()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName36,
_methodParameterTypes36, new Object[] { });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException) t;
}
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
public void removerUsuariosBanidosDeSalasFechadas() {
try {
_invokableLocalService.invokeMethod(_methodName37,
_methodParameterTypes37, new Object[] { });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
public void synchronizeActivityManagerAndDatabase() {
try {
_invokableLocalService.invokeMethod(_methodName38,
_methodParameterTypes38, new Object[] { });
} catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
} else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
}