Enum Verb
- java.lang.Object
-
- java.lang.Enum<Verb>
-
- com.rometools.modules.activitystreams.types.Verb
-
- All Implemented Interfaces:
Serializable,Comparable<Verb>
public enum Verb extends Enum<Verb>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JOINThe "join" Verb indicates that the actor has become a member of the Object.MAKE_FRIENDThe "make friend" Verb indicates the creation of a friendship that is reciprocated by the object.MARK_AS_FAVORITEThe "mark as favorite" Verb indicates that the Subject marked the Object as an item of special interest.MARK_AS_LIKEDThe "mark as liked" verb indicates that the actor indicated that it likes the object.PLAYThe "play" verb indicates that the subject spent some time enjoying the object.POSTThe "Post" Verb is described in section 8 of the AtomActivity specification.RSVP_MAYBEThe "possible RSVP" verb indicates that the actor has made a possible RSVP for the object.RSVP_NOThe "negative RSVP" verb indicates that the actor has made a negative RSVP for the object.RSVP_YESThe "positive RSVP" verb indicates that the actor has made a positive RSVP for the object.SAVEThe "save" Verb indicates that the Subject has called out the Object as being of interest primarily to him- or herself.SHAREThe "share" Verb indicates that the Subject has called out the Object to readers.START_FOLLOWINGThe "start following" Verb indicates that the Subject began following the activity of the Object.TAGThe "tag" verb indicates that the actor has identified the presence of a target inside another object.UPDATEThe "update" Verb indicates that the Subject has modified the referenced Object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VerbfromIRI(String iri)StringtoString()static VerbvalueOf(String name)Returns the enum constant of this type with the specified name.static Verb[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MARK_AS_FAVORITE
public static final Verb MARK_AS_FAVORITE
The "mark as favorite" Verb indicates that the Subject marked the Object as an item of special interest. Objects so marked often appear in a collection of such Objects which MAY be published as a feed of entries annotated with this Verb. If a particular service uses favorites as a mechanism by which a user can recall items that were earlier marked, it MAY be appropriate to also mark activities of this type with the "save" Verb as described in Section 3.1.8. The verb URI for the "mark as favorite" Verb is http://activitystrea.ms/schema/1.0/favorite.
-
START_FOLLOWING
public static final Verb START_FOLLOWING
The "start following" Verb indicates that the Subject began following the activity of the Object. In most cases, the Object of this Verb will be a user, but it can potentially be of any type that can sensibly generate activity. The verb URI for the "start following" Verb is http://activitystrea.ms/schema/1.0/follow. Processors MAY ignore (silently drop) successive identical "start following" activities regardless of whether they maintain state sufficient to determine (A), (B), or (C) above.
-
MARK_AS_LIKED
public static final Verb MARK_AS_LIKED
The "mark as liked" verb indicates that the actor indicated that it likes the object. The verb URI for the "mark as liked" Verb is http://activitystrea.ms/schema/1.0/like.
-
MAKE_FRIEND
public static final Verb MAKE_FRIEND
The "make friend" Verb indicates the creation of a friendship that is reciprocated by the object. Since this verb implies an activity on the part of its object, processors MUST NOT accept activities with this Verb unless they are able to verify through some external means that there is in fact a reciprocated connection. For example, a processor MAY have received a guarantee from a particular publisher that the publisher will only use this Verb in cases where a reciprocal relationship exists. The verb URI for the "make friend" Verb is http://activitystrea.ms/schema/1.0/make-friend.
-
JOIN
public static final Verb JOIN
The "join" Verb indicates that the actor has become a member of the Object. This specification only defines the meaning of this Verb when its Object is a Group, though implementors SHOULD be prepared to handle other Object types as meaning MAY be provided by extension specifications. Processors MAY ignore (silently drop) successive identical "join" activities regardless of whether they maintain state sufficient to determine (A) or (B) above. The "join" Verb is identified by the URI http://activitystrea.ms/schema/1.0/join.
-
PLAY
public static final Verb PLAY
The "play" verb indicates that the subject spent some time enjoying the object. For example, if the object is a video this indicates that the subject watched all or part of the video. The "play" Verb is identified by the URI http://activitystrea.ms/schema/1.0/play.
-
POST
public static final Verb POST
The "Post" Verb is described in section 8 of the AtomActivity specification. It is only referenced here for completeness. http://activitystrea.ms/schema/1.0/post
-
SAVE
public static final Verb SAVE
The "save" Verb indicates that the Subject has called out the Object as being of interest primarily to him- or herself. Though this action MAY be shared publicly, the implication is that the Object has been saved primarily for the actor's own benefit rather than to show it to others as would be indicated by the "share" Verb (Section 3.1.9). The "save" Verb is identified by the URI http://activitystrea.ms/schema/1.0/save.
-
SHARE
public static final Verb SHARE
The "share" Verb indicates that the Subject has called out the Object to readers. In most cases, the actor did not create the Object being shared, but is instead drawing attention to it. The "share" Verb is identified by the URI http://activitystrea.ms/schema/1.0/share.
-
TAG
public static final Verb TAG
The "tag" verb indicates that the actor has identified the presence of a target inside another object. For example, the actor may have specified that a particular user appears in a photo. The "tag" verb is identified by the URI http://activitystrea.ms/schema/1.0/tag. The target of the "tag" verb gives the object in which the tag has been added. For example, if a user appears in a photo, the activity:object is the user and the activity:target is the photo.
-
UPDATE
public static final Verb UPDATE
The "update" Verb indicates that the Subject has modified the referenced Object. Implementors SHOULD use verbs such as Section 3.1.7 where the Subject is adding new items to a Section 3.2.8 or similar. Update is reserved for modifications to existing Objects or data such as changing a user's profile information. The "update" Verb is identified by the URI http://activitystrea.ms/schema/1.0/update.
-
RSVP_YES
public static final Verb RSVP_YES
The "positive RSVP" verb indicates that the actor has made a positive RSVP for the object. This specification only defines the meaning of this verb when its object is an event (see Section 4.2.1 (Event)), though implementors SHOULD be prepared to handle other object types as meaning MAY be provided by extension specifications.
The use of this Verb is only appropriate when the RSVP was created by an explicit action by the actor. It is not appropriate to use this verb when a user has been added as an attendee by an event organiser or administrator.
The verb URI for the "positive RSVP" Verb is http://activitystrea.ms/schema/1.0/rsvp-yes.
-
RSVP_MAYBE
public static final Verb RSVP_MAYBE
The "possible RSVP" verb indicates that the actor has made a possible RSVP for the object. This specification only defines the meaning of this verb when its object is an event (see Section 4.2.1 (Event)), though implementors SHOULD be prepared to handle other object types as meaning MAY be provided by extension specifications.
The use of this Verb is only appropriate when the RSVP was created by an explicit action by the actor. It is not appropriate to use this verb when a user has been added as an attendee by an event organiser or administrator.
The verb URI for the "possible RSVP" Verb is http://activitystrea.ms/schema/1.0/rsvp-maybe.
-
RSVP_NO
public static final Verb RSVP_NO
The "negative RSVP" verb indicates that the actor has made a negative RSVP for the object. This specification only defines the meaning of this verb when its object is an event (see Section 4.2.1 (Event)), though implementors SHOULD be prepared to handle other object types as meaning MAY be provided by extension specifications.
The use of this Verb is only appropriate when the RSVP was created by an explicit action by the actor. It is not appropriate to use this verb when a user has been added as an attendee by an event organiser or administrator.
The verb URI for the "negative RSVP" Verb is http://activitystrea.ms/schema/1.0/rsvp-no.
-
-
Method Detail
-
values
public static Verb[] 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 (Verb c : Verb.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Verb 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 nameNullPointerException- if the argument is null
-
-