Enum ResourceEvent.Type

  • All Implemented Interfaces:
    Serializable, Comparable<ResourceEvent.Type>
    Enclosing interface:
    ResourceEvent<T extends Serializable>

    public static enum ResourceEvent.Type
    extends Enum<ResourceEvent.Type>
    It defines the more common type of notification in use in Silverpeas. That is to say a notification related about the life-cycle event of a contribution, a content or an organizational object (component instance, space, ...).
    Author:
    mmoquillon
    • Enum Constant Detail

      • CREATION

        public static final ResourceEvent.Type CREATION
        The notification is about the creation of a resource in Silverpeas.
      • UPDATE

        public static final ResourceEvent.Type UPDATE
        The notification is about the update of a resource in Silverpeas.
      • MOVE

        public static final ResourceEvent.Type MOVE
        The notification is about the move of a resource from a location to another in Silverpeas.
      • REMOVING

        public static final ResourceEvent.Type REMOVING
        The notification is about the removing of a resource in Silverpeas. Some types of resources are never directly deleted but first removed in a trash. They are then again existent and recoverable. This event is about this state of the life-cycle of a such resource.
      • DELETION

        public static final ResourceEvent.Type DELETION
        The notification is about the deletion of a resource in Silverpeas. When a resource is deleted, it is then nonexistent and nonrecoverable.
      • UNLOCK

        public static final ResourceEvent.Type UNLOCK
        The notification is about the unlock of a resource in Silverpeas. When a resource is unlocked, it is again available.
    • Method Detail

      • values

        public static ResourceEvent.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ResourceEvent.Type c : ResourceEvent.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ResourceEvent.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null