Package com.alfresco.content.models
Class Favorite
-
- All Implemented Interfaces:
@JsonClass(generateAdapter = true) public final class FavoriteA favorite describes an Alfresco entity that a person has marked as a favorite. The target can be a site, file or folder.
-
-
Field Summary
Fields Modifier and Type Field Description private StringtargetGuidprivate FavoriteTargettargetprivate ZonedDateTimecreatedAtprivate Map<String, Object>properties
-
Constructor Summary
Constructors Constructor Description Favorite(String targetGuid, FavoriteTarget target, ZonedDateTime createdAt, Map<String, Object> properties)
-
Method Summary
Modifier and Type Method Description final StringgetTargetGuid()The guid of the object that is a favorite. final UnitsetTargetGuid(@Json(name = "targetGuid") String targetGuid)The guid of the object that is a favorite. final FavoriteTargetgetTarget()final UnitsetTarget(@Json(name = "target") FavoriteTarget target)final ZonedDateTimegetCreatedAt()The time the object was made a favorite. final UnitsetCreatedAt(@Json(name = "createdAt") ZonedDateTime createdAt)The time the object was made a favorite. final Map<String, Object>getProperties()A subset of the target favorite properties, system properties and properties already available in the target are excluded. final UnitsetProperties(@Json(name = "properties") Map<String, Object> properties)A subset of the target favorite properties, system properties and properties already available in the target are excluded. -
-
Constructor Detail
-
Favorite
Favorite(String targetGuid, FavoriteTarget target, ZonedDateTime createdAt, Map<String, Object> properties)
-
-
Method Detail
-
getTargetGuid
final String getTargetGuid()
The guid of the object that is a favorite.
-
setTargetGuid
final Unit setTargetGuid(@Json(name = "targetGuid") String targetGuid)
The guid of the object that is a favorite.
-
getTarget
final FavoriteTarget getTarget()
-
setTarget
final Unit setTarget(@Json(name = "target") FavoriteTarget target)
-
getCreatedAt
final ZonedDateTime getCreatedAt()
The time the object was made a favorite.
-
setCreatedAt
final Unit setCreatedAt(@Json(name = "createdAt") ZonedDateTime createdAt)
The time the object was made a favorite.
-
getProperties
final Map<String, Object> getProperties()
A subset of the target favorite properties, system properties and properties already available in the target are excluded.
-
setProperties
final Unit setProperties(@Json(name = "properties") Map<String, Object> properties)
A subset of the target favorite properties, system properties and properties already available in the target are excluded.
-
-
-
-