Class EsbEvent
java.lang.Object
edu.internet2.middleware.grouper.changeLog.esb.consumer.EsbEvent
Simple class to hold changelog event details for dispatch to external system. If an event
does not contain a value for a property it will be null
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubjectAttribute
(String attributeName, String attributeValue) Method to add attribute name/value pair to subjectAttribute arraygenerally: assignid of attribute assign actionattributeAssignIdattribute assign type: group, group_asgn, member, member_asgn, stem, stem_asgn, any_mem, any_mem_asgn, attr_def, attr_def_asgn, imm_mem, imm_mem_asgnattribute def name id for attribute assignmentsname of attributeDefNamemicroseconds since 1970 that this event was created.T or F for permissionsfield idgetId()
messageid of messagegetName()
for attribute assignments, if the attributeAssignType is any_mem, then ownerId1 is the groupId and ownerId2 is the memberIdif this is a full syncif doing a sync, this is the provisionersync type of the sync.sequence number of event for logging or whatnotString[][]
getType()
type of value: nullValue, memberId, string, floating, integerValueboolean
if a change occurred but no sensitive data is being sentfor full sync, or even for group sync potentially, true if the sync should block other sync, false if should not block and should just add more lowel level sync eventsstatic void
retrieve the subject for this recordvoid
setAttributeAssignAction
(String attributeAssignAction1) generally: assignvoid
setAttributeAssignActionId
(String attributeAssignActionId1) id of attribute assign actionvoid
setAttributeAssignId
(String attributeAssignId1) attributeAssignIdvoid
setAttributeAssignType
(String attributeAssignType1) attribute assign type: group, group_asgn, member, member_asgn, stem, stem_asgn, any_mem, any_mem_asgn, attr_def, attr_def_asgn, imm_mem, imm_mem_asgnvoid
setAttributeDefNameId
(String attributeDefNameId1) attribute def name id for attribute assignmentsvoid
setAttributeDefNameName
(String attributeDefNameName1) name of attributeDefNamevoid
setChangeOccurred
(boolean changeOccurred) if a change occurred but no sensitive data is being sentvoid
setCompositeLeftFactorId
(String compositeLeftFactorId) void
setCompositeLeftFactorName
(String compositeLeftFactorName) void
setCompositeOwnerId
(String compositeOwnerId) void
setCompositeOwnerName
(String compositeOwnerName) void
setCompositeRightFactorId
(String compositeRightFactorId) void
setCompositeRightFactorName
(String compositeRightFactorName) void
setCompositeType
(String compositeType) void
setCreatedOnMicros
(Long createdOnMicros1) microseconds since 1970 that this event was created.void
setDescription
(String description) void
setDisallowed
(String disallowed1) T or F for permissionsvoid
setDisplayExtension
(String displayExtension) void
setDisplayName
(String displayName) void
void
setEventType
(String eventType) void
setFieldId
(String fieldId1) field idvoid
setFieldName
(String fieldName) void
setGroupId
(String groupId) void
setGroupIdIndex
(String groupIdIndex) void
setGroupName
(String groupName) void
setGroupTypeId
(String groupTypeId) void
setGroupTypeName
(String groupTypeName) void
void
setMemberId
(String memberId) void
setMembershipType
(String membershipType) void
setMessageId
(String messageId1) messageid of messagevoid
void
setOwnerId
(String ownerId) void
setOwnerId2
(String ownerId2) for attribute assignments, if the attributeAssignType is any_mem, then ownerId1 is the groupId and ownerId2 is the memberIdvoid
setOwnerName
(String ownerName) void
setOwnerType
(String ownerType) void
setParentStemId
(String parentStemId) void
setPrivilegeName
(String privilegeName) void
setPrivilegeType
(String privilegeType) void
setPropertyChanged
(String propertyChanged) void
setPropertyNewValue
(String propertyNewValue) void
setPropertyOldValue
(String propertyOldValue) void
setProvisionerBlocking
(Boolean provisionerBlocking1) void
setProvisionerFullSync
(Boolean provisionerFullSync1) if this is a full syncvoid
setProvisionerName
(String provisionerName1) if doing a sync, this is the provisionervoid
setProvisionerSyncType
(String provisionerSyncType1) sync type of the sync.void
setReadPrivilege
(String readPrivilege) void
void
setRoleName
(String roleName) void
setSequenceNumber
(String sequenceNumber1) sequence number of event for logging or whatnotvoid
setSourceId
(String sourceId) void
setSubjectAttributes
(String[][] subjectAttributes) void
setSubjectId
(String subjectId) void
setSubjectIdentifier0
(String subjectIdentifier) void
setSubjectIdentifier1
(String subjectIdentifier) void
setSubjectIdentifier2
(String subjectIdentifier) void
void
setValueType
(String valueType1) type of value: nullValue, memberId, string, floating, integerValuevoid
setWritePrivilege
(String writePrivilege) subjectAttribute
(String attributeName) get a subject attribute by nameboolean
subjectHasAttribute
(String attributeName) see if has non blank attributetoString()
-
Constructor Details
-
EsbEvent
public EsbEvent()
-
-
Method Details
-
getMessageId
messageid of message- Returns:
- message id
-
setMessageId
messageid of message- Parameters:
messageId1
-
-
getCreatedOnMicros
microseconds since 1970 that this event was created. divide by 1000 for millis- Returns:
- the createdOnMicros
-
setCreatedOnMicros
microseconds since 1970 that this event was created. divide by 1000 for millis- Parameters:
createdOnMicros1
- the createdOnMicros to set
-
subjectAttribute
get a subject attribute by name- Parameters:
attributeName
-- Returns:
- the name
-
subjectHasAttribute
see if has non blank attribute- Parameters:
attributeName
-- Returns:
- true if the subject has attribute
-
isChangeOccurred
public boolean isChangeOccurred()if a change occurred but no sensitive data is being sent- Returns:
- the changeOccurred
-
setChangeOccurred
public void setChangeOccurred(boolean changeOccurred) if a change occurred but no sensitive data is being sent- Parameters:
changeOccurred
- the changeOccurred to set
-
getProvisionerName
if doing a sync, this is the provisioner- Returns:
- provisioner name
-
setProvisionerName
if doing a sync, this is the provisioner- Parameters:
provisionerName1
-
-
isProvisionerBlocking
for full sync, or even for group sync potentially, true if the sync should block other sync, false if should not block and should just add more lowel level sync events- Returns:
-
setProvisionerBlocking
-
getProvisionerFullSync
if this is a full sync- Returns:
- if full sync
-
setProvisionerFullSync
if this is a full sync- Parameters:
provisionerFullSync1
-
-
getProvisionerSyncType
sync type of the sync. e.g. fullSyncFull or fullSyncGroup, groupSync, userSync, membershipSync- Returns:
- sync type
-
setProvisionerSyncType
sync type of the sync. e.g. fullSyncFull or fullSyncGroup, groupSync, userSync, membershipSync- Parameters:
provisionerSyncType1
-
-
getSequenceNumber
sequence number of event for logging or whatnot- Returns:
- sequence number
-
setSequenceNumber
sequence number of event for logging or whatnot- Parameters:
sequenceNumber1
-
-
retrieveSubject
retrieve the subject for this record- Returns:
- the subject or null if not found
-
getEventType
- Returns:
- eventType
-
setEventType
- Parameters:
eventType
-
-
getId
- Returns:
- id
-
setId
- Parameters:
id
-
-
getSubjectIdentifier0
- Returns:
- the subjectIdentifier
-
setSubjectIdentifier0
- Parameters:
subjectIdentifier
- the subjectIdentifier to set
-
getSubjectIdentifier1
- Returns:
- the subjectIdentifier
-
setSubjectIdentifier1
- Parameters:
subjectIdentifier
- the subjectIdentifier to set
-
getSubjectIdentifier2
- Returns:
- the subjectIdentifier
-
setSubjectIdentifier2
- Parameters:
subjectIdentifier
- the subjectIdentifier to set
-
getEmail0
- Returns:
- the email0
-
setEmail0
- Parameters:
email0
-
-
getName
- Returns:
- name
-
setName
- Parameters:
name
-
-
getDescription
- Returns:
- description
-
setDescription
- Parameters:
description
-
-
getDisplayExtension
- Returns:
- displayExtension
-
setDisplayExtension
- Parameters:
displayExtension
-
-
getDisplayName
- Returns:
- displayName
-
setDisplayName
- Parameters:
displayName
-
-
getFieldId
field id- Returns:
- field id
-
setFieldId
field id- Parameters:
fieldId1
-
-
getProvisionerBlocking
-
getFieldName
- Returns:
- fieldName
-
setFieldName
- Parameters:
fieldName
-
-
getGroupId
- Returns:
- groupId
-
setGroupId
- Parameters:
groupId
-
-
getGroupName
- Returns:
- groupName
-
setGroupName
- Parameters:
groupName
-
-
getGroupTypeId
- Returns:
- groupTypeId
-
setGroupTypeId
- Parameters:
groupTypeId
-
-
getGroupTypeName
- Returns:
- groupTypeName
-
setGroupTypeName
- Parameters:
groupTypeName
-
-
getMembershipType
- Returns:
- membershipType
-
setMembershipType
- Parameters:
membershipType
-
-
getOwnerId
- Returns:
- ownerId
-
setOwnerId
- Parameters:
ownerId
-
-
getOwnerName
- Returns:
- ownerName
-
setOwnerName
- Parameters:
ownerName
-
-
getOwnerType
- Returns:
- ownerType
-
setOwnerType
- Parameters:
ownerType
-
-
getParentStemId
- Returns:
- parentStemId
-
setParentStemId
- Parameters:
parentStemId
-
-
getPrivilegeName
- Returns:
- privilegeName
-
setPrivilegeName
- Parameters:
privilegeName
-
-
getPrivilegeType
- Returns:
- privilegeType
-
setPrivilegeType
- Parameters:
privilegeType
-
-
getPropertyChanged
- Returns:
- propertyChanged
-
setPropertyChanged
- Parameters:
propertyChanged
-
-
getPropertyNewValue
- Returns:
- propertyNewValue
-
setPropertyNewValue
- Parameters:
propertyNewValue
-
-
getPropertyOldValue
- Returns:
- propertyOldValue
-
setPropertyOldValue
- Parameters:
propertyOldValue
-
-
getReadPrivilege
- Returns:
- readPrivilege
-
setReadPrivilege
- Parameters:
readPrivilege
-
-
getSourceId
- Returns:
- sourceId
-
setSourceId
- Parameters:
sourceId
-
-
getSubjectId
- Returns:
- subjectId
-
setSubjectId
- Parameters:
subjectId
-
-
getType
- Returns:
- type
-
setType
- Parameters:
type
-
-
getWritePrivilege
- Returns:
- writePrivilege
-
setWritePrivilege
- Parameters:
writePrivilege
-
-
getSubjectAttributes
- Returns:
- subjectAttributes
-
setSubjectAttributes
- Parameters:
subjectAttributes
-
-
main
- Parameters:
args
-
-
addSubjectAttribute
Method to add attribute name/value pair to subjectAttribute array- Parameters:
attributeName
-attributeValue
-
-
getRoleId
- Returns:
- the roleId
-
setRoleId
- Parameters:
roleId
- the roleId to set
-
getRoleName
- Returns:
- the roleName
-
setRoleName
- Parameters:
roleName
- the roleName to set
-
getMemberId
- Returns:
- the memberId
-
setMemberId
- Parameters:
memberId
- the memberId to set
-
toString
-
getOwnerId2
for attribute assignments, if the attributeAssignType is any_mem, then ownerId1 is the groupId and ownerId2 is the memberId- Returns:
- ownerId2
-
setOwnerId2
for attribute assignments, if the attributeAssignType is any_mem, then ownerId1 is the groupId and ownerId2 is the memberId- Parameters:
ownerId2
-
-
getAttributeDefNameId
attribute def name id for attribute assignments- Returns:
- attribute def name id
-
setAttributeDefNameId
attribute def name id for attribute assignments- Parameters:
attributeDefNameId1
-
-
getAttributeDefNameName
name of attributeDefName- Returns:
- name
-
setAttributeDefNameName
name of attributeDefName- Parameters:
attributeDefNameName1
-
-
getAttributeAssignId
attributeAssignId- Returns:
- id
-
setAttributeAssignId
attributeAssignId- Parameters:
attributeAssignId1
-
-
getValueType
type of value: nullValue, memberId, string, floating, integerValue- Returns:
- vlaue type
-
setValueType
type of value: nullValue, memberId, string, floating, integerValue- Parameters:
valueType1
-
-
getAttributeAssignType
attribute assign type: group, group_asgn, member, member_asgn, stem, stem_asgn, any_mem, any_mem_asgn, attr_def, attr_def_asgn, imm_mem, imm_mem_asgn- Returns:
- type
-
setAttributeAssignType
attribute assign type: group, group_asgn, member, member_asgn, stem, stem_asgn, any_mem, any_mem_asgn, attr_def, attr_def_asgn, imm_mem, imm_mem_asgn- Parameters:
attributeAssignType1
-
-
getAttributeAssignAction
generally: assign- Returns:
- action
-
setAttributeAssignAction
generally: assign- Parameters:
attributeAssignAction1
-
-
getAttributeAssignActionId
id of attribute assign action- Returns:
- id
-
setAttributeAssignActionId
id of attribute assign action- Parameters:
attributeAssignActionId1
-
-
getDisallowed
T or F for permissions- Returns:
- T or F
-
setDisallowed
T or F for permissions- Parameters:
disallowed1
-
-
getGroupIdIndex
-
setGroupIdIndex
-
getCompositeOwnerId
-
setCompositeOwnerId
-
getCompositeLeftFactorId
-
setCompositeLeftFactorId
-
getCompositeRightFactorId
-
setCompositeRightFactorId
-
getCompositeType
-
setCompositeType
-
getCompositeOwnerName
-
setCompositeOwnerName
-
getCompositeLeftFactorName
-
setCompositeLeftFactorName
-
getCompositeRightFactorName
-
setCompositeRightFactorName
-