Class PortalEvent
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
org.json.simple.JSONObject
org.gcube.event.publisher.Event
org.gcube.portal.event.publisher.lr62.PortalEvent
- All Implemented Interfaces:
Serializable,Cloneable,Map,org.json.simple.JSONAware,org.json.simple.JSONStreamAware
public class PortalEvent
extends org.gcube.event.publisher.Event
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object> -
Field Summary
Fields Modifier and Type Field Description static StringGROUP_ENTRYprotected static org.gcube.vomanagement.usermanagement.GroupManagerGROUP_MANAGERprotected static com.liferay.portal.kernel.log.Loglogstatic StringROLE_ENTRYprotected static org.gcube.vomanagement.usermanagement.RoleManagerROLE_MANAGERstatic StringTYPEstatic StringUSER_ENTRYprotected static org.gcube.vomanagement.usermanagement.UserManagerUSER_MANAGERFields inherited from class org.gcube.event.publisher.Event
NAME_ENTRY, SENDER_ENTRY, TIMESTAMP_ENTRY, TYPE_ENTRY, UUID_ENTRY -
Constructor Summary
Constructors Constructor Description PortalEvent(String name)PortalEvent(String name, Map<String,String> data) -
Method Summary
Modifier and Type Method Description StringgetGroup()protected StringgetGroupIdentifier(com.liferay.portal.model.Group group)StringgetRole()protected StringgetRoleIdentifier(com.liferay.portal.model.Role role)StringgetUser()protected StringgetUserIdentifier(com.liferay.portal.model.User user)voidsetGroup(com.liferay.portal.model.Group group)voidsetGroup(String group)voidsetRole(com.liferay.portal.model.Role role)voidsetRole(String role)voidsetUser(com.liferay.portal.model.User user)voidsetUser(String user)Methods inherited from class org.gcube.event.publisher.Event
getName, getSender, getTimestamp, getType, getUUID, set, setAll, setName, setSender, setTimestamp, setType, setUUIDMethods inherited from class org.json.simple.JSONObject
escape, toJSONString, toJSONString, toString, toString, writeJSONString, writeJSONStringMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
log
protected static final com.liferay.portal.kernel.log.Log log -
USER_MANAGER
protected static final org.gcube.vomanagement.usermanagement.UserManager USER_MANAGER -
GROUP_MANAGER
protected static final org.gcube.vomanagement.usermanagement.GroupManager GROUP_MANAGER -
ROLE_MANAGER
protected static final org.gcube.vomanagement.usermanagement.RoleManager ROLE_MANAGER -
TYPE
- See Also:
- Constant Field Values
-
USER_ENTRY
- See Also:
- Constant Field Values
-
GROUP_ENTRY
- See Also:
- Constant Field Values
-
ROLE_ENTRY
- See Also:
- Constant Field Values
-
-
Constructor Details
-
PortalEvent
-
PortalEvent
-
-
Method Details
-
setUser
public void setUser(com.liferay.portal.model.User user) -
getUserIdentifier
-
setUser
-
getUser
-
setGroup
-
getGroup
-
setGroup
public void setGroup(com.liferay.portal.model.Group group) -
getGroupIdentifier
-
setRole
-
getRole
-
setRole
public void setRole(com.liferay.portal.model.Role role) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException- Throws:
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException
-
getRoleIdentifier
protected String getRoleIdentifier(com.liferay.portal.model.Role role) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException- Throws:
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException
-