alfresco_api 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +351 -0
- data/Rakefile +8 -0
- data/alfresco_api.gemspec +45 -0
- data/docs/ActivitiesApi.md +74 -0
- data/docs/Activity.md +14 -0
- data/docs/ActivityEntry.md +8 -0
- data/docs/ActivityPaging.md +8 -0
- data/docs/ActivityPagingList.md +9 -0
- data/docs/Association.md +9 -0
- data/docs/AssociationBody.md +9 -0
- data/docs/AssociationEntry.md +8 -0
- data/docs/AssociationInfo.md +8 -0
- data/docs/AuditApi.md +495 -0
- data/docs/AuditApp.md +10 -0
- data/docs/AuditAppEntry.md +8 -0
- data/docs/AuditAppPaging.md +8 -0
- data/docs/AuditAppPagingList.md +9 -0
- data/docs/AuditBodyUpdate.md +8 -0
- data/docs/AuditEntry.md +12 -0
- data/docs/AuditEntryEntry.md +8 -0
- data/docs/AuditEntryPaging.md +8 -0
- data/docs/AuditEntryPagingList.md +9 -0
- data/docs/ChildAssociation.md +9 -0
- data/docs/ChildAssociationBody.md +9 -0
- data/docs/ChildAssociationEntry.md +8 -0
- data/docs/ChildAssociationInfo.md +9 -0
- data/docs/ClientBody.md +8 -0
- data/docs/Comment.md +16 -0
- data/docs/CommentBody.md +8 -0
- data/docs/CommentEntry.md +8 -0
- data/docs/CommentPaging.md +8 -0
- data/docs/CommentPagingList.md +9 -0
- data/docs/CommentsApi.md +251 -0
- data/docs/Company.md +15 -0
- data/docs/ContentInfo.md +11 -0
- data/docs/DeletedNode.md +27 -0
- data/docs/DeletedNodeEntry.md +8 -0
- data/docs/DeletedNodesPaging.md +8 -0
- data/docs/DeletedNodesPagingList.md +9 -0
- data/docs/Download.md +13 -0
- data/docs/DownloadBodyCreate.md +8 -0
- data/docs/DownloadEntry.md +8 -0
- data/docs/DownloadsApi.md +177 -0
- data/docs/Error.md +8 -0
- data/docs/ErrorError.md +13 -0
- data/docs/Favorite.md +10 -0
- data/docs/FavoriteBodyCreate.md +8 -0
- data/docs/FavoriteEntry.md +8 -0
- data/docs/FavoritePaging.md +8 -0
- data/docs/FavoritePagingList.md +9 -0
- data/docs/FavoriteSite.md +8 -0
- data/docs/FavoriteSiteBodyCreate.md +8 -0
- data/docs/FavoriteSiteEntry.md +8 -0
- data/docs/FavoritesApi.md +496 -0
- data/docs/Group.md +12 -0
- data/docs/GroupBodyCreate.md +10 -0
- data/docs/GroupBodyUpdate.md +8 -0
- data/docs/GroupEntry.md +8 -0
- data/docs/GroupMember.md +10 -0
- data/docs/GroupMemberEntry.md +8 -0
- data/docs/GroupMemberPaging.md +8 -0
- data/docs/GroupMemberPagingList.md +9 -0
- data/docs/GroupMembershipBodyCreate.md +9 -0
- data/docs/GroupPaging.md +8 -0
- data/docs/GroupPagingList.md +9 -0
- data/docs/GroupsApi.md +564 -0
- data/docs/NetworkQuota.md +10 -0
- data/docs/NetworksApi.md +189 -0
- data/docs/Node.md +25 -0
- data/docs/NodeAssociation.md +26 -0
- data/docs/NodeAssociationEntry.md +8 -0
- data/docs/NodeAssociationPaging.md +8 -0
- data/docs/NodeAssociationPagingList.md +10 -0
- data/docs/NodeBodyCopy.md +9 -0
- data/docs/NodeBodyCreate.md +15 -0
- data/docs/NodeBodyCreateAssociation.md +8 -0
- data/docs/NodeBodyLock.md +10 -0
- data/docs/NodeBodyMove.md +9 -0
- data/docs/NodeBodyUpdate.md +12 -0
- data/docs/NodeChildAssociation.md +26 -0
- data/docs/NodeChildAssociationEntry.md +8 -0
- data/docs/NodeChildAssociationPaging.md +8 -0
- data/docs/NodeChildAssociationPagingList.md +10 -0
- data/docs/NodeEntry.md +8 -0
- data/docs/NodePaging.md +8 -0
- data/docs/NodePagingList.md +10 -0
- data/docs/NodesApi.md +1206 -0
- data/docs/Pagination.md +12 -0
- data/docs/PasswordResetBody.md +10 -0
- data/docs/PathElement.md +11 -0
- data/docs/PathInfo.md +10 -0
- data/docs/PeopleApi.md +530 -0
- data/docs/PermissionElement.md +10 -0
- data/docs/PermissionsBodyUpdate.md +9 -0
- data/docs/PermissionsInfo.md +11 -0
- data/docs/Person.md +27 -0
- data/docs/PersonBodyCreate.md +26 -0
- data/docs/PersonBodyUpdate.md +26 -0
- data/docs/PersonEntry.md +8 -0
- data/docs/PersonNetwork.md +14 -0
- data/docs/PersonNetworkEntry.md +8 -0
- data/docs/PersonNetworkPaging.md +8 -0
- data/docs/PersonNetworkPagingList.md +9 -0
- data/docs/PersonPaging.md +8 -0
- data/docs/PersonPagingList.md +9 -0
- data/docs/Preference.md +9 -0
- data/docs/PreferenceEntry.md +8 -0
- data/docs/PreferencePaging.md +8 -0
- data/docs/PreferencePagingList.md +9 -0
- data/docs/PreferencesApi.md +131 -0
- data/docs/QueriesApi.md +206 -0
- data/docs/Rating.md +11 -0
- data/docs/RatingAggregate.md +9 -0
- data/docs/RatingBody.md +9 -0
- data/docs/RatingEntry.md +8 -0
- data/docs/RatingPaging.md +8 -0
- data/docs/RatingPagingList.md +9 -0
- data/docs/RatingsApi.md +248 -0
- data/docs/Rendition.md +10 -0
- data/docs/RenditionBodyCreate.md +8 -0
- data/docs/RenditionEntry.md +8 -0
- data/docs/RenditionPaging.md +8 -0
- data/docs/RenditionPagingList.md +9 -0
- data/docs/RenditionsApi.md +243 -0
- data/docs/RevertBody.md +9 -0
- data/docs/SharedLink.md +19 -0
- data/docs/SharedLinkBodyCreate.md +9 -0
- data/docs/SharedLinkBodyEmail.md +11 -0
- data/docs/SharedLinkEntry.md +8 -0
- data/docs/SharedLinkPaging.md +8 -0
- data/docs/SharedLinkPagingList.md +9 -0
- data/docs/SharedlinksApi.md +530 -0
- data/docs/Site.md +14 -0
- data/docs/SiteBodyCreate.md +11 -0
- data/docs/SiteBodyUpdate.md +10 -0
- data/docs/SiteContainer.md +9 -0
- data/docs/SiteContainerEntry.md +8 -0
- data/docs/SiteContainerPaging.md +8 -0
- data/docs/SiteContainerPagingList.md +9 -0
- data/docs/SiteEntry.md +8 -0
- data/docs/SiteMember.md +10 -0
- data/docs/SiteMemberEntry.md +8 -0
- data/docs/SiteMemberPaging.md +8 -0
- data/docs/SiteMemberPagingList.md +9 -0
- data/docs/SiteMembershipBodyCreate.md +9 -0
- data/docs/SiteMembershipBodyUpdate.md +8 -0
- data/docs/SiteMembershipRequest.md +11 -0
- data/docs/SiteMembershipRequestBodyCreate.md +10 -0
- data/docs/SiteMembershipRequestBodyUpdate.md +8 -0
- data/docs/SiteMembershipRequestEntry.md +8 -0
- data/docs/SiteMembershipRequestPaging.md +8 -0
- data/docs/SiteMembershipRequestPagingList.md +9 -0
- data/docs/SitePaging.md +8 -0
- data/docs/SitePagingList.md +9 -0
- data/docs/SiteRole.md +11 -0
- data/docs/SiteRoleEntry.md +8 -0
- data/docs/SiteRolePaging.md +8 -0
- data/docs/SiteRolePagingList.md +9 -0
- data/docs/SitesApi.md +1225 -0
- data/docs/Tag.md +9 -0
- data/docs/TagBody.md +8 -0
- data/docs/TagEntry.md +8 -0
- data/docs/TagPaging.md +8 -0
- data/docs/TagPagingList.md +9 -0
- data/docs/TagsApi.md +365 -0
- data/docs/TrashcanApi.md +474 -0
- data/docs/UserInfo.md +9 -0
- data/docs/Version.md +18 -0
- data/docs/VersionEntry.md +8 -0
- data/docs/VersionPaging.md +8 -0
- data/docs/VersionPagingList.md +9 -0
- data/docs/VersionsApi.md +311 -0
- data/git_push.sh +55 -0
- data/lib/alfresco_api.rb +208 -0
- data/lib/alfresco_api/api/activities_api.rb +101 -0
- data/lib/alfresco_api/api/audit_api.rb +558 -0
- data/lib/alfresco_api/api/comments_api.rb +289 -0
- data/lib/alfresco_api/api/downloads_api.rb +193 -0
- data/lib/alfresco_api/api/favorites_api.rb +555 -0
- data/lib/alfresco_api/api/groups_api.rb +627 -0
- data/lib/alfresco_api/api/networks_api.rb +217 -0
- data/lib/alfresco_api/api/nodes_api.rb +1314 -0
- data/lib/alfresco_api/api/people_api.rb +572 -0
- data/lib/alfresco_api/api/preferences_api.rb +159 -0
- data/lib/alfresco_api/api/queries_api.rb +260 -0
- data/lib/alfresco_api/api/ratings_api.rb +283 -0
- data/lib/alfresco_api/api/renditions_api.rb +271 -0
- data/lib/alfresco_api/api/sharedlinks_api.rb +570 -0
- data/lib/alfresco_api/api/sites_api.rb +1342 -0
- data/lib/alfresco_api/api/tags_api.rb +407 -0
- data/lib/alfresco_api/api/trashcan_api.rb +507 -0
- data/lib/alfresco_api/api/versions_api.rb +355 -0
- data/lib/alfresco_api/api_client.rb +389 -0
- data/lib/alfresco_api/api_error.rb +38 -0
- data/lib/alfresco_api/configuration.rb +209 -0
- data/lib/alfresco_api/models/activity.rb +271 -0
- data/lib/alfresco_api/models/activity_entry.rb +193 -0
- data/lib/alfresco_api/models/activity_paging.rb +188 -0
- data/lib/alfresco_api/models/activity_paging_list.rb +209 -0
- data/lib/alfresco_api/models/association.rb +207 -0
- data/lib/alfresco_api/models/association_body.rb +207 -0
- data/lib/alfresco_api/models/association_entry.rb +193 -0
- data/lib/alfresco_api/models/association_info.rb +193 -0
- data/lib/alfresco_api/models/audit_app.rb +213 -0
- data/lib/alfresco_api/models/audit_app_entry.rb +188 -0
- data/lib/alfresco_api/models/audit_app_paging.rb +188 -0
- data/lib/alfresco_api/models/audit_app_paging_list.rb +199 -0
- data/lib/alfresco_api/models/audit_body_update.rb +188 -0
- data/lib/alfresco_api/models/audit_entry.rb +246 -0
- data/lib/alfresco_api/models/audit_entry_entry.rb +188 -0
- data/lib/alfresco_api/models/audit_entry_paging.rb +188 -0
- data/lib/alfresco_api/models/audit_entry_paging_list.rb +199 -0
- data/lib/alfresco_api/models/child_association.rb +207 -0
- data/lib/alfresco_api/models/child_association_body.rb +207 -0
- data/lib/alfresco_api/models/child_association_entry.rb +193 -0
- data/lib/alfresco_api/models/child_association_info.rb +207 -0
- data/lib/alfresco_api/models/client_body.rb +194 -0
- data/lib/alfresco_api/models/comment.rb +305 -0
- data/lib/alfresco_api/models/comment_body.rb +193 -0
- data/lib/alfresco_api/models/comment_entry.rb +193 -0
- data/lib/alfresco_api/models/comment_paging.rb +188 -0
- data/lib/alfresco_api/models/comment_paging_list.rb +209 -0
- data/lib/alfresco_api/models/company.rb +251 -0
- data/lib/alfresco_api/models/content_info.rb +230 -0
- data/lib/alfresco_api/models/deleted_node.rb +440 -0
- data/lib/alfresco_api/models/deleted_node_entry.rb +188 -0
- data/lib/alfresco_api/models/deleted_nodes_paging.rb +188 -0
- data/lib/alfresco_api/models/deleted_nodes_paging_list.rb +199 -0
- data/lib/alfresco_api/models/download.rb +274 -0
- data/lib/alfresco_api/models/download_body_create.rb +195 -0
- data/lib/alfresco_api/models/download_entry.rb +193 -0
- data/lib/alfresco_api/models/error.rb +188 -0
- data/lib/alfresco_api/models/error_error.rb +253 -0
- data/lib/alfresco_api/models/favorite.rb +218 -0
- data/lib/alfresco_api/models/favorite_body_create.rb +193 -0
- data/lib/alfresco_api/models/favorite_entry.rb +193 -0
- data/lib/alfresco_api/models/favorite_paging.rb +188 -0
- data/lib/alfresco_api/models/favorite_paging_list.rb +209 -0
- data/lib/alfresco_api/models/favorite_site.rb +193 -0
- data/lib/alfresco_api/models/favorite_site_body_create.rb +193 -0
- data/lib/alfresco_api/models/favorite_site_entry.rb +193 -0
- data/lib/alfresco_api/models/group.rb +245 -0
- data/lib/alfresco_api/models/group_body_create.rb +218 -0
- data/lib/alfresco_api/models/group_body_update.rb +193 -0
- data/lib/alfresco_api/models/group_entry.rb +193 -0
- data/lib/alfresco_api/models/group_member.rb +254 -0
- data/lib/alfresco_api/models/group_member_entry.rb +193 -0
- data/lib/alfresco_api/models/group_member_paging.rb +188 -0
- data/lib/alfresco_api/models/group_member_paging_list.rb +199 -0
- data/lib/alfresco_api/models/group_membership_body_create.rb +240 -0
- data/lib/alfresco_api/models/group_paging.rb +188 -0
- data/lib/alfresco_api/models/group_paging_list.rb +199 -0
- data/lib/alfresco_api/models/network_quota.rb +221 -0
- data/lib/alfresco_api/models/node.rb +412 -0
- data/lib/alfresco_api/models/node_association.rb +421 -0
- data/lib/alfresco_api/models/node_association_entry.rb +193 -0
- data/lib/alfresco_api/models/node_association_paging.rb +188 -0
- data/lib/alfresco_api/models/node_association_paging_list.rb +208 -0
- data/lib/alfresco_api/models/node_body_copy.rb +219 -0
- data/lib/alfresco_api/models/node_body_create.rb +289 -0
- data/lib/alfresco_api/models/node_body_create_association.rb +188 -0
- data/lib/alfresco_api/models/node_body_lock.rb +271 -0
- data/lib/alfresco_api/models/node_body_move.rb +219 -0
- data/lib/alfresco_api/models/node_body_update.rb +245 -0
- data/lib/alfresco_api/models/node_child_association.rb +421 -0
- data/lib/alfresco_api/models/node_child_association_entry.rb +193 -0
- data/lib/alfresco_api/models/node_child_association_paging.rb +188 -0
- data/lib/alfresco_api/models/node_child_association_paging_list.rb +208 -0
- data/lib/alfresco_api/models/node_entry.rb +193 -0
- data/lib/alfresco_api/models/node_paging.rb +188 -0
- data/lib/alfresco_api/models/node_paging_list.rb +208 -0
- data/lib/alfresco_api/models/pagination.rb +249 -0
- data/lib/alfresco_api/models/password_reset_body.rb +224 -0
- data/lib/alfresco_api/models/path_element.rb +217 -0
- data/lib/alfresco_api/models/path_info.rb +208 -0
- data/lib/alfresco_api/models/permission_element.rb +241 -0
- data/lib/alfresco_api/models/permissions_body_update.rb +199 -0
- data/lib/alfresco_api/models/permissions_info.rb +221 -0
- data/lib/alfresco_api/models/person.rb +387 -0
- data/lib/alfresco_api/models/person_body_create.rb +378 -0
- data/lib/alfresco_api/models/person_body_update.rb +354 -0
- data/lib/alfresco_api/models/person_entry.rb +193 -0
- data/lib/alfresco_api/models/person_network.rb +289 -0
- data/lib/alfresco_api/models/person_network_entry.rb +193 -0
- data/lib/alfresco_api/models/person_network_paging.rb +188 -0
- data/lib/alfresco_api/models/person_network_paging_list.rb +209 -0
- data/lib/alfresco_api/models/person_paging.rb +188 -0
- data/lib/alfresco_api/models/person_paging_list.rb +199 -0
- data/lib/alfresco_api/models/preference.rb +204 -0
- data/lib/alfresco_api/models/preference_entry.rb +193 -0
- data/lib/alfresco_api/models/preference_paging.rb +188 -0
- data/lib/alfresco_api/models/preference_paging_list.rb +209 -0
- data/lib/alfresco_api/models/rating.rb +221 -0
- data/lib/alfresco_api/models/rating_aggregate.rb +202 -0
- data/lib/alfresco_api/models/rating_body.rb +244 -0
- data/lib/alfresco_api/models/rating_entry.rb +193 -0
- data/lib/alfresco_api/models/rating_paging.rb +188 -0
- data/lib/alfresco_api/models/rating_paging_list.rb +209 -0
- data/lib/alfresco_api/models/rendition.rb +239 -0
- data/lib/alfresco_api/models/rendition_body_create.rb +193 -0
- data/lib/alfresco_api/models/rendition_entry.rb +193 -0
- data/lib/alfresco_api/models/rendition_paging.rb +188 -0
- data/lib/alfresco_api/models/rendition_paging_list.rb +199 -0
- data/lib/alfresco_api/models/revert_body.rb +197 -0
- data/lib/alfresco_api/models/shared_link.rb +310 -0
- data/lib/alfresco_api/models/shared_link_body_create.rb +202 -0
- data/lib/alfresco_api/models/shared_link_body_email.rb +217 -0
- data/lib/alfresco_api/models/shared_link_entry.rb +193 -0
- data/lib/alfresco_api/models/shared_link_paging.rb +188 -0
- data/lib/alfresco_api/models/shared_link_paging_list.rb +209 -0
- data/lib/alfresco_api/models/site.rb +307 -0
- data/lib/alfresco_api/models/site_body_create.rb +260 -0
- data/lib/alfresco_api/models/site_body_update.rb +239 -0
- data/lib/alfresco_api/models/site_container.rb +207 -0
- data/lib/alfresco_api/models/site_container_entry.rb +193 -0
- data/lib/alfresco_api/models/site_container_paging.rb +188 -0
- data/lib/alfresco_api/models/site_container_paging_list.rb +209 -0
- data/lib/alfresco_api/models/site_entry.rb +193 -0
- data/lib/alfresco_api/models/site_member.rb +254 -0
- data/lib/alfresco_api/models/site_member_entry.rb +193 -0
- data/lib/alfresco_api/models/site_member_paging.rb +188 -0
- data/lib/alfresco_api/models/site_member_paging_list.rb +209 -0
- data/lib/alfresco_api/models/site_membership_body_create.rb +240 -0
- data/lib/alfresco_api/models/site_membership_body_update.rb +226 -0
- data/lib/alfresco_api/models/site_membership_request.rb +230 -0
- data/lib/alfresco_api/models/site_membership_request_body_create.rb +211 -0
- data/lib/alfresco_api/models/site_membership_request_body_update.rb +188 -0
- data/lib/alfresco_api/models/site_membership_request_entry.rb +193 -0
- data/lib/alfresco_api/models/site_membership_request_paging.rb +188 -0
- data/lib/alfresco_api/models/site_membership_request_paging_list.rb +209 -0
- data/lib/alfresco_api/models/site_paging.rb +188 -0
- data/lib/alfresco_api/models/site_paging_list.rb +209 -0
- data/lib/alfresco_api/models/site_role.rb +268 -0
- data/lib/alfresco_api/models/site_role_entry.rb +193 -0
- data/lib/alfresco_api/models/site_role_paging.rb +188 -0
- data/lib/alfresco_api/models/site_role_paging_list.rb +209 -0
- data/lib/alfresco_api/models/tag.rb +207 -0
- data/lib/alfresco_api/models/tag_body.rb +193 -0
- data/lib/alfresco_api/models/tag_entry.rb +193 -0
- data/lib/alfresco_api/models/tag_paging.rb +188 -0
- data/lib/alfresco_api/models/tag_paging_list.rb +209 -0
- data/lib/alfresco_api/models/user_info.rb +207 -0
- data/lib/alfresco_api/models/version.rb +337 -0
- data/lib/alfresco_api/models/version_entry.rb +188 -0
- data/lib/alfresco_api/models/version_paging.rb +188 -0
- data/lib/alfresco_api/models/version_paging_list.rb +199 -0
- data/lib/alfresco_api/version.rb +15 -0
- data/spec/api/activities_api_spec.rb +52 -0
- data/spec/api/audit_api_spec.rb +152 -0
- data/spec/api/comments_api_spec.rb +92 -0
- data/spec/api/downloads_api_spec.rb +73 -0
- data/spec/api/favorites_api_spec.rb +151 -0
- data/spec/api/groups_api_spec.rb +170 -0
- data/spec/api/networks_api_spec.rb +77 -0
- data/spec/api/nodes_api_spec.rb +327 -0
- data/spec/api/people_api_spec.rb +157 -0
- data/spec/api/preferences_api_spec.rb +64 -0
- data/spec/api/queries_api_spec.rb +86 -0
- data/spec/api/ratings_api_spec.rb +91 -0
- data/spec/api/renditions_api_spec.rb +90 -0
- data/spec/api/sharedlinks_api_spec.rb +157 -0
- data/spec/api/sites_api_spec.rb +323 -0
- data/spec/api/tags_api_spec.rb +118 -0
- data/spec/api/trashcan_api_spec.rb +143 -0
- data/spec/api/versions_api_spec.rb +107 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/activity_entry_spec.rb +42 -0
- data/spec/models/activity_paging_list_spec.rb +48 -0
- data/spec/models/activity_paging_spec.rb +42 -0
- data/spec/models/activity_spec.rb +78 -0
- data/spec/models/association_body_spec.rb +48 -0
- data/spec/models/association_entry_spec.rb +42 -0
- data/spec/models/association_info_spec.rb +42 -0
- data/spec/models/association_spec.rb +48 -0
- data/spec/models/audit_app_entry_spec.rb +42 -0
- data/spec/models/audit_app_paging_list_spec.rb +48 -0
- data/spec/models/audit_app_paging_spec.rb +42 -0
- data/spec/models/audit_app_spec.rb +54 -0
- data/spec/models/audit_body_update_spec.rb +42 -0
- data/spec/models/audit_entry_entry_spec.rb +42 -0
- data/spec/models/audit_entry_paging_list_spec.rb +48 -0
- data/spec/models/audit_entry_paging_spec.rb +42 -0
- data/spec/models/audit_entry_spec.rb +66 -0
- data/spec/models/child_association_body_spec.rb +48 -0
- data/spec/models/child_association_entry_spec.rb +42 -0
- data/spec/models/child_association_info_spec.rb +48 -0
- data/spec/models/child_association_spec.rb +48 -0
- data/spec/models/client_body_spec.rb +42 -0
- data/spec/models/comment_body_spec.rb +42 -0
- data/spec/models/comment_entry_spec.rb +42 -0
- data/spec/models/comment_paging_list_spec.rb +48 -0
- data/spec/models/comment_paging_spec.rb +42 -0
- data/spec/models/comment_spec.rb +90 -0
- data/spec/models/company_spec.rb +84 -0
- data/spec/models/content_info_spec.rb +60 -0
- data/spec/models/deleted_node_entry_spec.rb +42 -0
- data/spec/models/deleted_node_spec.rb +156 -0
- data/spec/models/deleted_nodes_paging_list_spec.rb +48 -0
- data/spec/models/deleted_nodes_paging_spec.rb +42 -0
- data/spec/models/download_body_create_spec.rb +42 -0
- data/spec/models/download_entry_spec.rb +42 -0
- data/spec/models/download_spec.rb +76 -0
- data/spec/models/error_error_spec.rb +72 -0
- data/spec/models/error_spec.rb +42 -0
- data/spec/models/favorite_body_create_spec.rb +42 -0
- data/spec/models/favorite_entry_spec.rb +42 -0
- data/spec/models/favorite_paging_list_spec.rb +48 -0
- data/spec/models/favorite_paging_spec.rb +42 -0
- data/spec/models/favorite_site_body_create_spec.rb +42 -0
- data/spec/models/favorite_site_entry_spec.rb +42 -0
- data/spec/models/favorite_site_spec.rb +42 -0
- data/spec/models/favorite_spec.rb +54 -0
- data/spec/models/group_body_create_spec.rb +54 -0
- data/spec/models/group_body_update_spec.rb +42 -0
- data/spec/models/group_entry_spec.rb +42 -0
- data/spec/models/group_member_entry_spec.rb +42 -0
- data/spec/models/group_member_paging_list_spec.rb +48 -0
- data/spec/models/group_member_paging_spec.rb +42 -0
- data/spec/models/group_member_spec.rb +58 -0
- data/spec/models/group_membership_body_create_spec.rb +52 -0
- data/spec/models/group_paging_list_spec.rb +48 -0
- data/spec/models/group_paging_spec.rb +42 -0
- data/spec/models/group_spec.rb +66 -0
- data/spec/models/network_quota_spec.rb +54 -0
- data/spec/models/node_association_entry_spec.rb +42 -0
- data/spec/models/node_association_paging_list_spec.rb +54 -0
- data/spec/models/node_association_paging_spec.rb +42 -0
- data/spec/models/node_association_spec.rb +150 -0
- data/spec/models/node_body_copy_spec.rb +48 -0
- data/spec/models/node_body_create_association_spec.rb +42 -0
- data/spec/models/node_body_create_spec.rb +84 -0
- data/spec/models/node_body_lock_spec.rb +62 -0
- data/spec/models/node_body_move_spec.rb +48 -0
- data/spec/models/node_body_update_spec.rb +66 -0
- data/spec/models/node_child_association_entry_spec.rb +42 -0
- data/spec/models/node_child_association_paging_list_spec.rb +54 -0
- data/spec/models/node_child_association_paging_spec.rb +42 -0
- data/spec/models/node_child_association_spec.rb +150 -0
- data/spec/models/node_entry_spec.rb +42 -0
- data/spec/models/node_paging_list_spec.rb +54 -0
- data/spec/models/node_paging_spec.rb +42 -0
- data/spec/models/node_spec.rb +144 -0
- data/spec/models/pagination_spec.rb +66 -0
- data/spec/models/password_reset_body_spec.rb +54 -0
- data/spec/models/path_element_spec.rb +60 -0
- data/spec/models/path_info_spec.rb +54 -0
- data/spec/models/permission_element_spec.rb +58 -0
- data/spec/models/permissions_body_update_spec.rb +48 -0
- data/spec/models/permissions_info_spec.rb +60 -0
- data/spec/models/person_body_create_spec.rb +150 -0
- data/spec/models/person_body_update_spec.rb +150 -0
- data/spec/models/person_entry_spec.rb +42 -0
- data/spec/models/person_network_entry_spec.rb +42 -0
- data/spec/models/person_network_paging_list_spec.rb +48 -0
- data/spec/models/person_network_paging_spec.rb +42 -0
- data/spec/models/person_network_spec.rb +82 -0
- data/spec/models/person_paging_list_spec.rb +48 -0
- data/spec/models/person_paging_spec.rb +42 -0
- data/spec/models/person_spec.rb +156 -0
- data/spec/models/preference_entry_spec.rb +42 -0
- data/spec/models/preference_paging_list_spec.rb +48 -0
- data/spec/models/preference_paging_spec.rb +42 -0
- data/spec/models/preference_spec.rb +48 -0
- data/spec/models/rating_aggregate_spec.rb +48 -0
- data/spec/models/rating_body_spec.rb +52 -0
- data/spec/models/rating_entry_spec.rb +42 -0
- data/spec/models/rating_paging_list_spec.rb +48 -0
- data/spec/models/rating_paging_spec.rb +42 -0
- data/spec/models/rating_spec.rb +60 -0
- data/spec/models/rendition_body_create_spec.rb +42 -0
- data/spec/models/rendition_entry_spec.rb +42 -0
- data/spec/models/rendition_paging_list_spec.rb +48 -0
- data/spec/models/rendition_paging_spec.rb +42 -0
- data/spec/models/rendition_spec.rb +58 -0
- data/spec/models/revert_body_spec.rb +48 -0
- data/spec/models/shared_link_body_create_spec.rb +48 -0
- data/spec/models/shared_link_body_email_spec.rb +60 -0
- data/spec/models/shared_link_entry_spec.rb +42 -0
- data/spec/models/shared_link_paging_list_spec.rb +48 -0
- data/spec/models/shared_link_paging_spec.rb +42 -0
- data/spec/models/shared_link_spec.rb +108 -0
- data/spec/models/site_body_create_spec.rb +64 -0
- data/spec/models/site_body_update_spec.rb +58 -0
- data/spec/models/site_container_entry_spec.rb +42 -0
- data/spec/models/site_container_paging_list_spec.rb +48 -0
- data/spec/models/site_container_paging_spec.rb +42 -0
- data/spec/models/site_container_spec.rb +48 -0
- data/spec/models/site_entry_spec.rb +42 -0
- data/spec/models/site_member_entry_spec.rb +42 -0
- data/spec/models/site_member_paging_list_spec.rb +48 -0
- data/spec/models/site_member_paging_spec.rb +42 -0
- data/spec/models/site_member_spec.rb +58 -0
- data/spec/models/site_membership_body_create_spec.rb +52 -0
- data/spec/models/site_membership_body_update_spec.rb +46 -0
- data/spec/models/site_membership_request_body_create_spec.rb +54 -0
- data/spec/models/site_membership_request_body_update_spec.rb +42 -0
- data/spec/models/site_membership_request_entry_spec.rb +42 -0
- data/spec/models/site_membership_request_paging_list_spec.rb +48 -0
- data/spec/models/site_membership_request_paging_spec.rb +42 -0
- data/spec/models/site_membership_request_spec.rb +60 -0
- data/spec/models/site_paging_list_spec.rb +48 -0
- data/spec/models/site_paging_spec.rb +42 -0
- data/spec/models/site_role_entry_spec.rb +42 -0
- data/spec/models/site_role_paging_list_spec.rb +48 -0
- data/spec/models/site_role_paging_spec.rb +42 -0
- data/spec/models/site_role_spec.rb +64 -0
- data/spec/models/site_spec.rb +86 -0
- data/spec/models/tag_body_spec.rb +42 -0
- data/spec/models/tag_entry_spec.rb +42 -0
- data/spec/models/tag_paging_list_spec.rb +48 -0
- data/spec/models/tag_paging_spec.rb +42 -0
- data/spec/models/tag_spec.rb +48 -0
- data/spec/models/user_info_spec.rb +48 -0
- data/spec/models/version_entry_spec.rb +42 -0
- data/spec/models/version_paging_list_spec.rb +48 -0
- data/spec/models/version_paging_spec.rb +42 -0
- data/spec/models/version_spec.rb +102 -0
- data/spec/spec_helper.rb +111 -0
- metadata +918 -0
data/docs/Company.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# AlfrescoAPI::Company
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**organization** | **String** | | [optional]
|
7
|
+
**address1** | **String** | | [optional]
|
8
|
+
**address2** | **String** | | [optional]
|
9
|
+
**address3** | **String** | | [optional]
|
10
|
+
**postcode** | **String** | | [optional]
|
11
|
+
**telephone** | **String** | | [optional]
|
12
|
+
**fax** | **String** | | [optional]
|
13
|
+
**email** | **String** | | [optional]
|
14
|
+
|
15
|
+
|
data/docs/ContentInfo.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# AlfrescoAPI::ContentInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**mime_type** | **String** | |
|
7
|
+
**mime_type_name** | **String** | |
|
8
|
+
**size_in_bytes** | **Integer** | |
|
9
|
+
**encoding** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/DeletedNode.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# AlfrescoAPI::DeletedNode
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**name** | **String** | The name must not contain spaces or the following special characters: * \" < > \\ / ? : and |. The character . must not be used at the end of the name. |
|
8
|
+
**node_type** | **String** | |
|
9
|
+
**is_folder** | **BOOLEAN** | |
|
10
|
+
**is_file** | **BOOLEAN** | |
|
11
|
+
**is_locked** | **BOOLEAN** | | [optional] [default to false]
|
12
|
+
**modified_at** | **DateTime** | |
|
13
|
+
**modified_by_user** | [**UserInfo**](UserInfo.md) | |
|
14
|
+
**created_at** | **DateTime** | |
|
15
|
+
**created_by_user** | [**UserInfo**](UserInfo.md) | |
|
16
|
+
**parent_id** | **String** | | [optional]
|
17
|
+
**is_link** | **BOOLEAN** | | [optional]
|
18
|
+
**content** | [**ContentInfo**](ContentInfo.md) | | [optional]
|
19
|
+
**aspect_names** | **Array<String>** | | [optional]
|
20
|
+
**properties** | **Object** | | [optional]
|
21
|
+
**allowable_operations** | **Array<String>** | | [optional]
|
22
|
+
**path** | [**PathInfo**](PathInfo.md) | | [optional]
|
23
|
+
**permissions** | [**PermissionsInfo**](PermissionsInfo.md) | | [optional]
|
24
|
+
**archived_by_user** | [**UserInfo**](UserInfo.md) | |
|
25
|
+
**archived_at** | **DateTime** | |
|
26
|
+
|
27
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# AlfrescoAPI::DeletedNodesPagingList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
7
|
+
**entries** | [**Array<DeletedNodeEntry>**](DeletedNodeEntry.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/Download.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# AlfrescoAPI::Download
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**files_added** | **Integer** | number of files added so far in the zip | [optional]
|
7
|
+
**bytes_added** | **Integer** | number of bytes added so far in the zip | [optional]
|
8
|
+
**id** | **String** | the id of the download node | [optional]
|
9
|
+
**total_files** | **Integer** | the total number of files to be added in the zip | [optional]
|
10
|
+
**total_bytes** | **Integer** | the total number of bytes to be added in the zip | [optional]
|
11
|
+
**status** | **String** | the current status of the download node creation | [optional] [default to "PENDING"]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,177 @@
|
|
1
|
+
# AlfrescoAPI::DownloadsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://localhost/alfresco/api/-default-/public/alfresco/versions/1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**cancel_download**](DownloadsApi.md#cancel_download) | **DELETE** /downloads/{downloadId} | Cancel a download
|
8
|
+
[**create_download**](DownloadsApi.md#create_download) | **POST** /downloads | Create a new download
|
9
|
+
[**get_download**](DownloadsApi.md#get_download) | **GET** /downloads/{downloadId} | Get a download
|
10
|
+
|
11
|
+
|
12
|
+
# **cancel_download**
|
13
|
+
> cancel_download(download_id)
|
14
|
+
|
15
|
+
Cancel a download
|
16
|
+
|
17
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Cancels the creation of a download request. **Note:** The download node can be deleted using the **DELETE /nodes/{downloadId}** endpoint By default, if the download node is not deleted it will be picked up by a cleaner job which removes download nodes older than a configurable amount of time (default is 1 hour) Information about the existing progress at the time of cancelling can be retrieved by calling the **GET /downloads/{downloadId}** endpoint The cancel operation is done asynchronously.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'alfresco_api'
|
23
|
+
# setup authorization
|
24
|
+
AlfrescoAPI.configure do |config|
|
25
|
+
# Configure HTTP basic authorization: basicAuth
|
26
|
+
config.username = 'YOUR USERNAME'
|
27
|
+
config.password = 'YOUR PASSWORD'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = AlfrescoAPI::DownloadsApi.new
|
31
|
+
|
32
|
+
download_id = "download_id_example" # String | The identifier of a download node.
|
33
|
+
|
34
|
+
|
35
|
+
begin
|
36
|
+
#Cancel a download
|
37
|
+
api_instance.cancel_download(download_id)
|
38
|
+
rescue AlfrescoAPI::ApiError => e
|
39
|
+
puts "Exception when calling DownloadsApi->cancel_download: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**download_id** | **String**| The identifier of a download node. |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
nil (empty response body)
|
52
|
+
|
53
|
+
### Authorization
|
54
|
+
|
55
|
+
[basicAuth](../README.md#basicAuth)
|
56
|
+
|
57
|
+
### HTTP request headers
|
58
|
+
|
59
|
+
- **Content-Type**: application/json
|
60
|
+
- **Accept**: application/json
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
# **create_download**
|
65
|
+
> DownloadEntry create_download(download_body_create, opts)
|
66
|
+
|
67
|
+
Create a new download
|
68
|
+
|
69
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Creates a new download node asynchronously, the content of which will be the zipped content of the **nodeIds** specified in the JSON body like this: ```JSON { \"nodeIds\": [ \"c8bb482a-ff3c-4704-a3a3-de1c83ccd84c\", \"cffa62db-aa01-493d-9594-058bc058eeb1\" ] } ``` **Note:** The content of the download node can be obtained using the **GET /nodes/{downloadId}/content** endpoint
|
70
|
+
|
71
|
+
### Example
|
72
|
+
```ruby
|
73
|
+
# load the gem
|
74
|
+
require 'alfresco_api'
|
75
|
+
# setup authorization
|
76
|
+
AlfrescoAPI.configure do |config|
|
77
|
+
# Configure HTTP basic authorization: basicAuth
|
78
|
+
config.username = 'YOUR USERNAME'
|
79
|
+
config.password = 'YOUR PASSWORD'
|
80
|
+
end
|
81
|
+
|
82
|
+
api_instance = AlfrescoAPI::DownloadsApi.new
|
83
|
+
|
84
|
+
download_body_create = AlfrescoAPI::DownloadBodyCreate.new # DownloadBodyCreate | The nodeIds the content of which will be zipped, which zip will be set as the content of our download node.
|
85
|
+
|
86
|
+
opts = {
|
87
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
88
|
+
}
|
89
|
+
|
90
|
+
begin
|
91
|
+
#Create a new download
|
92
|
+
result = api_instance.create_download(download_body_create, opts)
|
93
|
+
p result
|
94
|
+
rescue AlfrescoAPI::ApiError => e
|
95
|
+
puts "Exception when calling DownloadsApi->create_download: #{e}"
|
96
|
+
end
|
97
|
+
```
|
98
|
+
|
99
|
+
### Parameters
|
100
|
+
|
101
|
+
Name | Type | Description | Notes
|
102
|
+
------------- | ------------- | ------------- | -------------
|
103
|
+
**download_body_create** | [**DownloadBodyCreate**](DownloadBodyCreate.md)| The nodeIds the content of which will be zipped, which zip will be set as the content of our download node. |
|
104
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
105
|
+
|
106
|
+
### Return type
|
107
|
+
|
108
|
+
[**DownloadEntry**](DownloadEntry.md)
|
109
|
+
|
110
|
+
### Authorization
|
111
|
+
|
112
|
+
[basicAuth](../README.md#basicAuth)
|
113
|
+
|
114
|
+
### HTTP request headers
|
115
|
+
|
116
|
+
- **Content-Type**: application/json
|
117
|
+
- **Accept**: application/json
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
# **get_download**
|
122
|
+
> DownloadEntry get_download(download_id, opts)
|
123
|
+
|
124
|
+
Get a download
|
125
|
+
|
126
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Retrieve status information for download node **downloadId**
|
127
|
+
|
128
|
+
### Example
|
129
|
+
```ruby
|
130
|
+
# load the gem
|
131
|
+
require 'alfresco_api'
|
132
|
+
# setup authorization
|
133
|
+
AlfrescoAPI.configure do |config|
|
134
|
+
# Configure HTTP basic authorization: basicAuth
|
135
|
+
config.username = 'YOUR USERNAME'
|
136
|
+
config.password = 'YOUR PASSWORD'
|
137
|
+
end
|
138
|
+
|
139
|
+
api_instance = AlfrescoAPI::DownloadsApi.new
|
140
|
+
|
141
|
+
download_id = "download_id_example" # String | The identifier of a download node.
|
142
|
+
|
143
|
+
opts = {
|
144
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
145
|
+
}
|
146
|
+
|
147
|
+
begin
|
148
|
+
#Get a download
|
149
|
+
result = api_instance.get_download(download_id, opts)
|
150
|
+
p result
|
151
|
+
rescue AlfrescoAPI::ApiError => e
|
152
|
+
puts "Exception when calling DownloadsApi->get_download: #{e}"
|
153
|
+
end
|
154
|
+
```
|
155
|
+
|
156
|
+
### Parameters
|
157
|
+
|
158
|
+
Name | Type | Description | Notes
|
159
|
+
------------- | ------------- | ------------- | -------------
|
160
|
+
**download_id** | **String**| The identifier of a download node. |
|
161
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
162
|
+
|
163
|
+
### Return type
|
164
|
+
|
165
|
+
[**DownloadEntry**](DownloadEntry.md)
|
166
|
+
|
167
|
+
### Authorization
|
168
|
+
|
169
|
+
[basicAuth](../README.md#basicAuth)
|
170
|
+
|
171
|
+
### HTTP request headers
|
172
|
+
|
173
|
+
- **Content-Type**: application/json
|
174
|
+
- **Accept**: application/json
|
175
|
+
|
176
|
+
|
177
|
+
|
data/docs/Error.md
ADDED
data/docs/ErrorError.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# AlfrescoAPI::ErrorError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**error_key** | **String** | | [optional]
|
7
|
+
**status_code** | **Integer** | |
|
8
|
+
**brief_summary** | **String** | |
|
9
|
+
**stack_trace** | **String** | |
|
10
|
+
**description_url** | **String** | |
|
11
|
+
**log_id** | **String** | | [optional]
|
12
|
+
|
13
|
+
|
data/docs/Favorite.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# AlfrescoAPI::Favorite
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**target_guid** | **String** | The guid of the object that is a favorite. |
|
7
|
+
**created_at** | **DateTime** | The time the object was made a favorite. | [optional]
|
8
|
+
**target** | **Object** | |
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# AlfrescoAPI::FavoritePagingList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**pagination** | [**Pagination**](Pagination.md) | |
|
7
|
+
**entries** | [**Array<FavoriteEntry>**](FavoriteEntry.md) | |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,496 @@
|
|
1
|
+
# AlfrescoAPI::FavoritesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://localhost/alfresco/api/-default-/public/alfresco/versions/1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_favorite**](FavoritesApi.md#create_favorite) | **POST** /people/{personId}/favorites | Create a favorite
|
8
|
+
[**create_site_favorite**](FavoritesApi.md#create_site_favorite) | **POST** /people/{personId}/favorite-sites | Create a site favorite
|
9
|
+
[**delete_favorite**](FavoritesApi.md#delete_favorite) | **DELETE** /people/{personId}/favorites/{favoriteId} | Delete a favorite
|
10
|
+
[**delete_site_favorite**](FavoritesApi.md#delete_site_favorite) | **DELETE** /people/{personId}/favorite-sites/{siteId} | Delete a site favorite
|
11
|
+
[**get_favorite**](FavoritesApi.md#get_favorite) | **GET** /people/{personId}/favorites/{favoriteId} | Get a favorite
|
12
|
+
[**get_favorite_site**](FavoritesApi.md#get_favorite_site) | **GET** /people/{personId}/favorite-sites/{siteId} | Get a favorite site
|
13
|
+
[**list_favorite_sites_for_person**](FavoritesApi.md#list_favorite_sites_for_person) | **GET** /people/{personId}/favorite-sites | List favorite sites
|
14
|
+
[**list_favorites**](FavoritesApi.md#list_favorites) | **GET** /people/{personId}/favorites | List favorites
|
15
|
+
|
16
|
+
|
17
|
+
# **create_favorite**
|
18
|
+
> FavoriteEntry create_favorite(person_idfavorite_body_create, opts)
|
19
|
+
|
20
|
+
Create a favorite
|
21
|
+
|
22
|
+
Favorite a **site**, **file**, or **folder** in the repository. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. **Note:** You can favorite more than one entity by specifying a list of objects in the JSON body like this: ```JSON [ { \"target\": { \"file\": { \"guid\": \"abcde-01234-....\" } } }, { \"target\": { \"file\": { \"guid\": \"abcde-09863-....\" } } }, ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
23
|
+
|
24
|
+
### Example
|
25
|
+
```ruby
|
26
|
+
# load the gem
|
27
|
+
require 'alfresco_api'
|
28
|
+
# setup authorization
|
29
|
+
AlfrescoAPI.configure do |config|
|
30
|
+
# Configure HTTP basic authorization: basicAuth
|
31
|
+
config.username = 'YOUR USERNAME'
|
32
|
+
config.password = 'YOUR PASSWORD'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = AlfrescoAPI::FavoritesApi.new
|
36
|
+
|
37
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
38
|
+
|
39
|
+
favorite_body_create = AlfrescoAPI::FavoriteBodyCreate.new # FavoriteBodyCreate | An object identifying the entity to be favorited. The object consists of a single property which is an object with the name `site`, `file`, or `folder`. The content of that object is the `guid` of the target entity. For example, to favorite a file the following body would be used: ```JSON { \"target\": { \"file\": { \"guid\": \"abcde-01234-....\" } } } ```
|
40
|
+
|
41
|
+
opts = {
|
42
|
+
include: ["include_example"], # Array<String> | Returns additional information about favorites, the following optional fields can be requested: * path (note, this only applies to files and folders)
|
43
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
44
|
+
}
|
45
|
+
|
46
|
+
begin
|
47
|
+
#Create a favorite
|
48
|
+
result = api_instance.create_favorite(person_idfavorite_body_create, opts)
|
49
|
+
p result
|
50
|
+
rescue AlfrescoAPI::ApiError => e
|
51
|
+
puts "Exception when calling FavoritesApi->create_favorite: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
### Parameters
|
56
|
+
|
57
|
+
Name | Type | Description | Notes
|
58
|
+
------------- | ------------- | ------------- | -------------
|
59
|
+
**person_id** | **String**| The identifier of a person. |
|
60
|
+
**favorite_body_create** | [**FavoriteBodyCreate**](FavoriteBodyCreate.md)| An object identifying the entity to be favorited. The object consists of a single property which is an object with the name `site`, `file`, or `folder`. The content of that object is the `guid` of the target entity. For example, to favorite a file the following body would be used: ```JSON { \"target\": { \"file\": { \"guid\": \"abcde-01234-....\" } } } ``` |
|
61
|
+
**include** | [**Array<String>**](String.md)| Returns additional information about favorites, the following optional fields can be requested: * path (note, this only applies to files and folders) | [optional]
|
62
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
63
|
+
|
64
|
+
### Return type
|
65
|
+
|
66
|
+
[**FavoriteEntry**](FavoriteEntry.md)
|
67
|
+
|
68
|
+
### Authorization
|
69
|
+
|
70
|
+
[basicAuth](../README.md#basicAuth)
|
71
|
+
|
72
|
+
### HTTP request headers
|
73
|
+
|
74
|
+
- **Content-Type**: application/json
|
75
|
+
- **Accept**: application/json
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
# **create_site_favorite**
|
80
|
+
> FavoriteSiteEntry create_site_favorite(person_idfavorite_site_body_create, opts)
|
81
|
+
|
82
|
+
Create a site favorite
|
83
|
+
|
84
|
+
**Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use `/people/{personId}/favorites` instead. Create a site favorite for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. **Note:** You can favorite more than one site by specifying a list of sites in the JSON body like this: ```JSON [ { \"id\": \"test-site-1\" }, { \"id\": \"test-site-2\" } ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
85
|
+
|
86
|
+
### Example
|
87
|
+
```ruby
|
88
|
+
# load the gem
|
89
|
+
require 'alfresco_api'
|
90
|
+
# setup authorization
|
91
|
+
AlfrescoAPI.configure do |config|
|
92
|
+
# Configure HTTP basic authorization: basicAuth
|
93
|
+
config.username = 'YOUR USERNAME'
|
94
|
+
config.password = 'YOUR PASSWORD'
|
95
|
+
end
|
96
|
+
|
97
|
+
api_instance = AlfrescoAPI::FavoritesApi.new
|
98
|
+
|
99
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
100
|
+
|
101
|
+
favorite_site_body_create = AlfrescoAPI::FavoriteSiteBodyCreate.new # FavoriteSiteBodyCreate | The id of the site to favorite.
|
102
|
+
|
103
|
+
opts = {
|
104
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
105
|
+
}
|
106
|
+
|
107
|
+
begin
|
108
|
+
#Create a site favorite
|
109
|
+
result = api_instance.create_site_favorite(person_idfavorite_site_body_create, opts)
|
110
|
+
p result
|
111
|
+
rescue AlfrescoAPI::ApiError => e
|
112
|
+
puts "Exception when calling FavoritesApi->create_site_favorite: #{e}"
|
113
|
+
end
|
114
|
+
```
|
115
|
+
|
116
|
+
### Parameters
|
117
|
+
|
118
|
+
Name | Type | Description | Notes
|
119
|
+
------------- | ------------- | ------------- | -------------
|
120
|
+
**person_id** | **String**| The identifier of a person. |
|
121
|
+
**favorite_site_body_create** | [**FavoriteSiteBodyCreate**](FavoriteSiteBodyCreate.md)| The id of the site to favorite. |
|
122
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
123
|
+
|
124
|
+
### Return type
|
125
|
+
|
126
|
+
[**FavoriteSiteEntry**](FavoriteSiteEntry.md)
|
127
|
+
|
128
|
+
### Authorization
|
129
|
+
|
130
|
+
[basicAuth](../README.md#basicAuth)
|
131
|
+
|
132
|
+
### HTTP request headers
|
133
|
+
|
134
|
+
- **Content-Type**: application/json
|
135
|
+
- **Accept**: application/json
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
# **delete_favorite**
|
140
|
+
> delete_favorite(person_idfavorite_id)
|
141
|
+
|
142
|
+
Delete a favorite
|
143
|
+
|
144
|
+
Deletes **favoriteId** as a favorite of person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
145
|
+
|
146
|
+
### Example
|
147
|
+
```ruby
|
148
|
+
# load the gem
|
149
|
+
require 'alfresco_api'
|
150
|
+
# setup authorization
|
151
|
+
AlfrescoAPI.configure do |config|
|
152
|
+
# Configure HTTP basic authorization: basicAuth
|
153
|
+
config.username = 'YOUR USERNAME'
|
154
|
+
config.password = 'YOUR PASSWORD'
|
155
|
+
end
|
156
|
+
|
157
|
+
api_instance = AlfrescoAPI::FavoritesApi.new
|
158
|
+
|
159
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
160
|
+
|
161
|
+
favorite_id = "favorite_id_example" # String | The identifier of a favorite.
|
162
|
+
|
163
|
+
|
164
|
+
begin
|
165
|
+
#Delete a favorite
|
166
|
+
api_instance.delete_favorite(person_idfavorite_id)
|
167
|
+
rescue AlfrescoAPI::ApiError => e
|
168
|
+
puts "Exception when calling FavoritesApi->delete_favorite: #{e}"
|
169
|
+
end
|
170
|
+
```
|
171
|
+
|
172
|
+
### Parameters
|
173
|
+
|
174
|
+
Name | Type | Description | Notes
|
175
|
+
------------- | ------------- | ------------- | -------------
|
176
|
+
**person_id** | **String**| The identifier of a person. |
|
177
|
+
**favorite_id** | **String**| The identifier of a favorite. |
|
178
|
+
|
179
|
+
### Return type
|
180
|
+
|
181
|
+
nil (empty response body)
|
182
|
+
|
183
|
+
### Authorization
|
184
|
+
|
185
|
+
[basicAuth](../README.md#basicAuth)
|
186
|
+
|
187
|
+
### HTTP request headers
|
188
|
+
|
189
|
+
- **Content-Type**: application/json
|
190
|
+
- **Accept**: application/json
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
# **delete_site_favorite**
|
195
|
+
> delete_site_favorite(person_idsite_id, )
|
196
|
+
|
197
|
+
Delete a site favorite
|
198
|
+
|
199
|
+
**Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use `/people/{personId}/favorites/{favoriteId}` instead. Deletes site **siteId** from the favorite site list of person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
200
|
+
|
201
|
+
### Example
|
202
|
+
```ruby
|
203
|
+
# load the gem
|
204
|
+
require 'alfresco_api'
|
205
|
+
# setup authorization
|
206
|
+
AlfrescoAPI.configure do |config|
|
207
|
+
# Configure HTTP basic authorization: basicAuth
|
208
|
+
config.username = 'YOUR USERNAME'
|
209
|
+
config.password = 'YOUR PASSWORD'
|
210
|
+
end
|
211
|
+
|
212
|
+
api_instance = AlfrescoAPI::FavoritesApi.new
|
213
|
+
|
214
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
215
|
+
|
216
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
217
|
+
|
218
|
+
|
219
|
+
begin
|
220
|
+
#Delete a site favorite
|
221
|
+
api_instance.delete_site_favorite(person_idsite_id, )
|
222
|
+
rescue AlfrescoAPI::ApiError => e
|
223
|
+
puts "Exception when calling FavoritesApi->delete_site_favorite: #{e}"
|
224
|
+
end
|
225
|
+
```
|
226
|
+
|
227
|
+
### Parameters
|
228
|
+
|
229
|
+
Name | Type | Description | Notes
|
230
|
+
------------- | ------------- | ------------- | -------------
|
231
|
+
**person_id** | **String**| The identifier of a person. |
|
232
|
+
**site_id** | **String**| The identifier of a site. |
|
233
|
+
|
234
|
+
### Return type
|
235
|
+
|
236
|
+
nil (empty response body)
|
237
|
+
|
238
|
+
### Authorization
|
239
|
+
|
240
|
+
[basicAuth](../README.md#basicAuth)
|
241
|
+
|
242
|
+
### HTTP request headers
|
243
|
+
|
244
|
+
- **Content-Type**: application/json
|
245
|
+
- **Accept**: application/json
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
# **get_favorite**
|
250
|
+
> FavoriteEntry get_favorite(person_idfavorite_id, opts)
|
251
|
+
|
252
|
+
Get a favorite
|
253
|
+
|
254
|
+
Gets favorite **favoriteId** for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
255
|
+
|
256
|
+
### Example
|
257
|
+
```ruby
|
258
|
+
# load the gem
|
259
|
+
require 'alfresco_api'
|
260
|
+
# setup authorization
|
261
|
+
AlfrescoAPI.configure do |config|
|
262
|
+
# Configure HTTP basic authorization: basicAuth
|
263
|
+
config.username = 'YOUR USERNAME'
|
264
|
+
config.password = 'YOUR PASSWORD'
|
265
|
+
end
|
266
|
+
|
267
|
+
api_instance = AlfrescoAPI::FavoritesApi.new
|
268
|
+
|
269
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
270
|
+
|
271
|
+
favorite_id = "favorite_id_example" # String | The identifier of a favorite.
|
272
|
+
|
273
|
+
opts = {
|
274
|
+
include: ["include_example"], # Array<String> | Returns additional information about favorites, the following optional fields can be requested: * path (note, this only applies to files and folders)
|
275
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
276
|
+
}
|
277
|
+
|
278
|
+
begin
|
279
|
+
#Get a favorite
|
280
|
+
result = api_instance.get_favorite(person_idfavorite_id, opts)
|
281
|
+
p result
|
282
|
+
rescue AlfrescoAPI::ApiError => e
|
283
|
+
puts "Exception when calling FavoritesApi->get_favorite: #{e}"
|
284
|
+
end
|
285
|
+
```
|
286
|
+
|
287
|
+
### Parameters
|
288
|
+
|
289
|
+
Name | Type | Description | Notes
|
290
|
+
------------- | ------------- | ------------- | -------------
|
291
|
+
**person_id** | **String**| The identifier of a person. |
|
292
|
+
**favorite_id** | **String**| The identifier of a favorite. |
|
293
|
+
**include** | [**Array<String>**](String.md)| Returns additional information about favorites, the following optional fields can be requested: * path (note, this only applies to files and folders) | [optional]
|
294
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
295
|
+
|
296
|
+
### Return type
|
297
|
+
|
298
|
+
[**FavoriteEntry**](FavoriteEntry.md)
|
299
|
+
|
300
|
+
### Authorization
|
301
|
+
|
302
|
+
[basicAuth](../README.md#basicAuth)
|
303
|
+
|
304
|
+
### HTTP request headers
|
305
|
+
|
306
|
+
- **Content-Type**: application/json
|
307
|
+
- **Accept**: application/json
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
# **get_favorite_site**
|
312
|
+
> SiteEntry get_favorite_site(person_idsite_id, , opts)
|
313
|
+
|
314
|
+
Get a favorite site
|
315
|
+
|
316
|
+
**Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use `/people/{personId}/favorites/{favoriteId}` instead. Gets information on favorite site **siteId** of person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
317
|
+
|
318
|
+
### Example
|
319
|
+
```ruby
|
320
|
+
# load the gem
|
321
|
+
require 'alfresco_api'
|
322
|
+
# setup authorization
|
323
|
+
AlfrescoAPI.configure do |config|
|
324
|
+
# Configure HTTP basic authorization: basicAuth
|
325
|
+
config.username = 'YOUR USERNAME'
|
326
|
+
config.password = 'YOUR PASSWORD'
|
327
|
+
end
|
328
|
+
|
329
|
+
api_instance = AlfrescoAPI::FavoritesApi.new
|
330
|
+
|
331
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
332
|
+
|
333
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
334
|
+
|
335
|
+
opts = {
|
336
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
337
|
+
}
|
338
|
+
|
339
|
+
begin
|
340
|
+
#Get a favorite site
|
341
|
+
result = api_instance.get_favorite_site(person_idsite_id, , opts)
|
342
|
+
p result
|
343
|
+
rescue AlfrescoAPI::ApiError => e
|
344
|
+
puts "Exception when calling FavoritesApi->get_favorite_site: #{e}"
|
345
|
+
end
|
346
|
+
```
|
347
|
+
|
348
|
+
### Parameters
|
349
|
+
|
350
|
+
Name | Type | Description | Notes
|
351
|
+
------------- | ------------- | ------------- | -------------
|
352
|
+
**person_id** | **String**| The identifier of a person. |
|
353
|
+
**site_id** | **String**| The identifier of a site. |
|
354
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
355
|
+
|
356
|
+
### Return type
|
357
|
+
|
358
|
+
[**SiteEntry**](SiteEntry.md)
|
359
|
+
|
360
|
+
### Authorization
|
361
|
+
|
362
|
+
[basicAuth](../README.md#basicAuth)
|
363
|
+
|
364
|
+
### HTTP request headers
|
365
|
+
|
366
|
+
- **Content-Type**: application/json
|
367
|
+
- **Accept**: application/json
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
# **list_favorite_sites_for_person**
|
372
|
+
> SitePaging list_favorite_sites_for_person(person_id, opts)
|
373
|
+
|
374
|
+
List favorite sites
|
375
|
+
|
376
|
+
**Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use `/people/{personId}/favorites` instead. Gets a list of a person's favorite sites. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
377
|
+
|
378
|
+
### Example
|
379
|
+
```ruby
|
380
|
+
# load the gem
|
381
|
+
require 'alfresco_api'
|
382
|
+
# setup authorization
|
383
|
+
AlfrescoAPI.configure do |config|
|
384
|
+
# Configure HTTP basic authorization: basicAuth
|
385
|
+
config.username = 'YOUR USERNAME'
|
386
|
+
config.password = 'YOUR PASSWORD'
|
387
|
+
end
|
388
|
+
|
389
|
+
api_instance = AlfrescoAPI::FavoritesApi.new
|
390
|
+
|
391
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
392
|
+
|
393
|
+
opts = {
|
394
|
+
skip_count: 0, # Integer | The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0.
|
395
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
396
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
397
|
+
}
|
398
|
+
|
399
|
+
begin
|
400
|
+
#List favorite sites
|
401
|
+
result = api_instance.list_favorite_sites_for_person(person_id, opts)
|
402
|
+
p result
|
403
|
+
rescue AlfrescoAPI::ApiError => e
|
404
|
+
puts "Exception when calling FavoritesApi->list_favorite_sites_for_person: #{e}"
|
405
|
+
end
|
406
|
+
```
|
407
|
+
|
408
|
+
### Parameters
|
409
|
+
|
410
|
+
Name | Type | Description | Notes
|
411
|
+
------------- | ------------- | ------------- | -------------
|
412
|
+
**person_id** | **String**| The identifier of a person. |
|
413
|
+
**skip_count** | **Integer**| The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0. | [optional] [default to 0]
|
414
|
+
**max_items** | **Integer**| The maximum number of items to return in the list. If not supplied then the default value is 100. | [optional] [default to 100]
|
415
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
416
|
+
|
417
|
+
### Return type
|
418
|
+
|
419
|
+
[**SitePaging**](SitePaging.md)
|
420
|
+
|
421
|
+
### Authorization
|
422
|
+
|
423
|
+
[basicAuth](../README.md#basicAuth)
|
424
|
+
|
425
|
+
### HTTP request headers
|
426
|
+
|
427
|
+
- **Content-Type**: application/json
|
428
|
+
- **Accept**: application/json
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
# **list_favorites**
|
433
|
+
> FavoritePaging list_favorites(person_id, opts)
|
434
|
+
|
435
|
+
List favorites
|
436
|
+
|
437
|
+
Gets a list of favorites for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. You can use the **where** parameter to restrict the list in the response to entries of a specific kind. The **where** parameter takes a value. The value is a single predicate that can include one or more **EXISTS** conditions. The **EXISTS** condition uses a single operand to limit the list to include entries that include that one property. The property values are: * `target/file` * `target/folder` * `target/site` For example, the following **where** parameter restricts the returned list to the file favorites for a person: ```SQL (EXISTS(target/file)) ``` You can specify more than one condition using **OR**. The predicate must be enclosed in parentheses. For example, the following **where** parameter restricts the returned list to the file and folder favorites for a person: ```SQL (EXISTS(target/file) OR EXISTS(target/folder)) ```
|
438
|
+
|
439
|
+
### Example
|
440
|
+
```ruby
|
441
|
+
# load the gem
|
442
|
+
require 'alfresco_api'
|
443
|
+
# setup authorization
|
444
|
+
AlfrescoAPI.configure do |config|
|
445
|
+
# Configure HTTP basic authorization: basicAuth
|
446
|
+
config.username = 'YOUR USERNAME'
|
447
|
+
config.password = 'YOUR PASSWORD'
|
448
|
+
end
|
449
|
+
|
450
|
+
api_instance = AlfrescoAPI::FavoritesApi.new
|
451
|
+
|
452
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
453
|
+
|
454
|
+
opts = {
|
455
|
+
skip_count: 0, # Integer | The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0.
|
456
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
457
|
+
where: "where_example", # String | A string to restrict the returned objects by using a predicate.
|
458
|
+
include: ["include_example"], # Array<String> | Returns additional information about favorites, the following optional fields can be requested: * path (note, this only applies to files and folders)
|
459
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
460
|
+
}
|
461
|
+
|
462
|
+
begin
|
463
|
+
#List favorites
|
464
|
+
result = api_instance.list_favorites(person_id, opts)
|
465
|
+
p result
|
466
|
+
rescue AlfrescoAPI::ApiError => e
|
467
|
+
puts "Exception when calling FavoritesApi->list_favorites: #{e}"
|
468
|
+
end
|
469
|
+
```
|
470
|
+
|
471
|
+
### Parameters
|
472
|
+
|
473
|
+
Name | Type | Description | Notes
|
474
|
+
------------- | ------------- | ------------- | -------------
|
475
|
+
**person_id** | **String**| The identifier of a person. |
|
476
|
+
**skip_count** | **Integer**| The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0. | [optional] [default to 0]
|
477
|
+
**max_items** | **Integer**| The maximum number of items to return in the list. If not supplied then the default value is 100. | [optional] [default to 100]
|
478
|
+
**where** | **String**| A string to restrict the returned objects by using a predicate. | [optional]
|
479
|
+
**include** | [**Array<String>**](String.md)| Returns additional information about favorites, the following optional fields can be requested: * path (note, this only applies to files and folders) | [optional]
|
480
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
481
|
+
|
482
|
+
### Return type
|
483
|
+
|
484
|
+
[**FavoritePaging**](FavoritePaging.md)
|
485
|
+
|
486
|
+
### Authorization
|
487
|
+
|
488
|
+
[basicAuth](../README.md#basicAuth)
|
489
|
+
|
490
|
+
### HTTP request headers
|
491
|
+
|
492
|
+
- **Content-Type**: application/json
|
493
|
+
- **Accept**: application/json
|
494
|
+
|
495
|
+
|
496
|
+
|