Class AuditEvent

java.lang.Object
cz.metacentrum.perun.audit.events.AuditEvent
Direct Known Subclasses:
AllAttributesRemovedForFacilityAndUser, AllAttributesRemovedForGroup, AllAttributesRemovedForGroupAndResource, AllAttributesRemovedForHost, AllAttributesRemovedForMember, AllAttributesRemovedForMemberAndGroup, AllAttributesRemovedForResource, AllAttributesRemovedForResourceAndMember, AllAttributesRemovedForUser, AllAttributesRemovedForUserExtSource, AllAttributesRemovedForVo, AllGroupResourceAttributesRemovedForGroups, AllGroupsFromVoDeleted, AllMemberResourceAttributesRemovedForMembers, AllRequiredAttributesRemovedFromService, AllUserExtSourcesDeletedForUser, AllUserFacilityAttributesRemoved, AllUserFacilityAttributesRemovedForFacilitiesAndUser, ApplicationApproved, ApplicationCreated, ApplicationDeleted, ApplicationRejected, ApplicationVerified, AttributeAddedAsRequiredToService, AttributeAuthzDeleted, AttributeChangedForFacility, AttributeChangedForResourceAndMember, AttributeChangedForUser, AttributeCreated, AttributeDeleted, AttributeRemovedForFacility, AttributeRemovedForFacilityAndUser, AttributeRemovedForGroup, AttributeRemovedForGroupAndResource, AttributeRemovedForHost, AttributeRemovedForKey, AttributeRemovedForMember, AttributeRemovedForMemberAndGroup, AttributeRemovedForResource, AttributeRemovedForResourceAndMember, AttributeRemovedForUes, AttributeRemovedForUser, AttributeRemovedForVo, AttributeRightsSet, AttributesAddedAsRequiredToService, AttributeSetForFacility, AttributeSetForFacilityAndUser, AttributeSetForGroup, AttributeSetForGroupAndResource, AttributeSetForHost, AttributeSetForKey, AttributeSetForMember, AttributeSetForMemberAndGroup, AttributeSetForResource, AttributeSetForResourceAndMember, AttributeSetForUes, AttributeSetForUser, AttributeSetForVo, AttributeUpdated, AuthorshipCreated, AuthorshipDeleted, BanRemovedForFacility, BanRemovedForResource, BanServiceOnDestination, BanServiceOnFacility, BanSetForFacility, BanSetForResource, BanUpdatedForFacility, BanUpdatedForResource, DestinationAddedToServiceAndFacility, DestinationCreated, DestinationRemovedFromService, DestinationsRemovedFromAllServices, DestinationsRemovedFromService, DirectMemberAddedToGroup, DirectMemberRemovedFromGroup, ExtSourceAddedToGroup, ExtSourceAddedToVo, ExtSourceCreated, ExtSourceDeleted, ExtSourceRemovedFromGroup, ExtSourceRemovedFromVo, FacilityAllAttributesRemoved, FacilityCreated, FacilityDeleted, FacilityUpdated, ForcePropagationOnFacilityAndService, ForcePropagationOnService, FormItemAdded, FormItemDeleted, FormItemsUpdated, FormItemUpdated, FormUpdated, FreeAllDenialsOnDestination, FreeAllDenialsOnFacility, FreeDenialServiceOnDestination, FreeDenialServiceOnFacility, GroupAssignedToResource, GroupCreatedAsSubgroup, GroupCreatedInVo, GroupDeleted, GroupMembershipExpirationInDays, GroupMembershipExpirationInMonthNotification, GroupMembershipExpired, GroupMoved, GroupRemovedFromResource, GroupStructureSyncFailed, GroupStructureSyncFinishedWithErrors, GroupSyncFailed, GroupSyncFinished, GroupSyncFinishedWithErrors, GroupSyncStarted, GroupUpdated, HostAddedToFacility, HostRemovedFromFacility, IndirectMemberAddedToGroup, IndirectMemberRemovedFromGroup, InvitationSentEvent, MailForGroupIdAdded, MailForGroupIdRemoved, MailForGroupIdUpdated, MailForVoIdAdded, MailForVoIdRemoved, MailForVoIdUpdated, MailSending, MailSentForApplication, MemberCreated, MemberCreatedForApprovedApp, MemberDeleted, MemberDisabled, MemberExpired, MemberExpiredInGroup, MemberInvalidated, MemberRemovedFromGroupTotally, MembershipExpirationInDays, MembershipExpirationInMonthNotification, MembershipExpired, MembershipExtendedForMemberInApprovedApp, MemberSuspended, MemberUnsuspended, MemberValidated, MemberValidatedFailed, MemberValidatedInGroup, OwnerCreated, OwnerDeleted, OwnershipDisabledForSpecificUser, OwnershipEnabledForSpecificUser, OwnershipRemovedForSpecificUser, PropagationPlannedOnFacilityAndService, PropagationPlannedOnService, RequiredAttributeRemovedFromService, RequiredAttributesRemovedFromService, ResourceCreated, ResourceDeleted, ResourceSelfServiceAddedForGroup, ResourceSelfServiceAddedForUser, ResourceSelfServiceRemovedForGroup, ResourceSelfServiceRemovedForUser, ResourceUpdated, RoleSetForGroup, RoleSetForUser, RoleUnsetForGroup, RoleUnsetForUser, SecurityTeamAssignedToFacility, SecurityTeamCreated, SecurityTeamDeleted, SecurityTeamRemovedFromFacility, SecurityTeamUpdated, ServiceAddedToServicePackage, ServiceAssignedToResource, ServiceCreated, ServiceDeleted, ServiceRemovedFromResource, ServiceRemovedFromServicesPackage, ServicesPackageCreated, ServicesPackageDeleted, ServicesPackageUpdated, ServiceUpdated, SponsoredMemberSet, SponsoredMemberUnset, SponsorshipEstablished, SponsorshipExpirationInAMonth, SponsorshipExpirationInDays, SponsorshipExpired, SponsorshipRemoved, SponsorshipValidityUpdated, StringMessageEvent, UserAddedToBlackListOfSecurityTeam, UserAddedToOwnersOfSpecificUser, UserCreated, UserDeleted, UserExtSourceAddedToUser, UserExtSourceRemovedFromUser, UserExtSourceUpdated, UserPromotedToPerunAdmin, UserRemovedFromBlackListOfSecurityTeam, UserRemovedFromBlacklists, UserSyncFailed, UserSyncFinishedWithErrors, UserUpdated, VoCreated, VoDeleted, VoUpdated

public abstract class AuditEvent extends Object
Author:
Vojtech Sassmann
  • Field Details

    • name

      protected String name
  • Constructor Details

    • AuditEvent

      public AuditEvent()
  • Method Details

    • getMessage

      public abstract String getMessage()
      Get message that should be logged.
      Returns:
      message
    • getName

      public String getName()
      Get name of the event class
      Returns:
      name of event class
    • formatMessage

      protected String formatMessage(String formatString, Object... args)
      Formats the given args in format that can be audited. For PerunBeans calls 'serializeToString, for any other type 'toString'.
      Parameters:
      formatString - format String
      args - arguments
      Returns:
      formatted message
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object