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/Group.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# AlfrescoAPI::Group
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**display_name** | **String** | |
|
8
|
+
**is_root** | **BOOLEAN** | | [default to true]
|
9
|
+
**parent_ids** | **Array<String>** | | [optional]
|
10
|
+
**zones** | **Array<String>** | | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# AlfrescoAPI::GroupBodyCreate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**display_name** | **String** | |
|
8
|
+
**parent_ids** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/GroupEntry.md
ADDED
data/docs/GroupMember.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# AlfrescoAPI::GroupMemberPagingList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
7
|
+
**entries** | [**Array<GroupMemberEntry>**](GroupMemberEntry.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/GroupPaging.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# AlfrescoAPI::GroupPagingList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
7
|
+
**entries** | [**Array<GroupEntry>**](GroupEntry.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/GroupsApi.md
ADDED
@@ -0,0 +1,564 @@
|
|
1
|
+
# AlfrescoAPI::GroupsApi
|
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_group**](GroupsApi.md#create_group) | **POST** /groups | Create a group
|
8
|
+
[**create_group_membership**](GroupsApi.md#create_group_membership) | **POST** /groups/{groupId}/members | Create a group membership
|
9
|
+
[**delete_group**](GroupsApi.md#delete_group) | **DELETE** /groups/{groupId} | Delete a group
|
10
|
+
[**delete_group_membership**](GroupsApi.md#delete_group_membership) | **DELETE** /groups/{groupId}/members/{groupMemberId} | Delete a group membership
|
11
|
+
[**get_group**](GroupsApi.md#get_group) | **GET** /groups/{groupId} | Get group details
|
12
|
+
[**list_group_memberships**](GroupsApi.md#list_group_memberships) | **GET** /groups/{groupId}/members | List memberships of a group
|
13
|
+
[**list_group_memberships_for_person**](GroupsApi.md#list_group_memberships_for_person) | **GET** /people/{personId}/groups | List group memberships
|
14
|
+
[**list_groups**](GroupsApi.md#list_groups) | **GET** /groups | List groups
|
15
|
+
[**update_group**](GroupsApi.md#update_group) | **PUT** /groups/{groupId} | Update group details
|
16
|
+
|
17
|
+
|
18
|
+
# **create_group**
|
19
|
+
> GroupEntry create_group(group_body_create, opts)
|
20
|
+
|
21
|
+
Create a group
|
22
|
+
|
23
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Create a group. The group id must start with \"GROUP\\_\". If this is omitted it will be added automatically. This format is also returned when listing groups or group memberships. It should be noted that the other group-related operations also expect the id to start with \"GROUP\\_\". If one or more parentIds are specified then the group will be created and become a member of each of the specified parent groups. If no parentIds are specified then the group will be created as a root group. The group will be created in the **APP.DEFAULT** and **AUTH.ALF** zones. You must have admin rights to create a group.
|
24
|
+
|
25
|
+
### Example
|
26
|
+
```ruby
|
27
|
+
# load the gem
|
28
|
+
require 'alfresco_api'
|
29
|
+
# setup authorization
|
30
|
+
AlfrescoAPI.configure do |config|
|
31
|
+
# Configure HTTP basic authorization: basicAuth
|
32
|
+
config.username = 'YOUR USERNAME'
|
33
|
+
config.password = 'YOUR PASSWORD'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = AlfrescoAPI::GroupsApi.new
|
37
|
+
|
38
|
+
group_body_create = AlfrescoAPI::GroupBodyCreate.new # GroupBodyCreate | The group to create.
|
39
|
+
|
40
|
+
opts = {
|
41
|
+
include: ["include_example"], # Array<String> | Returns additional information about the group. The following optional fields can be requested: * parentIds * zones
|
42
|
+
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.
|
43
|
+
}
|
44
|
+
|
45
|
+
begin
|
46
|
+
#Create a group
|
47
|
+
result = api_instance.create_group(group_body_create, opts)
|
48
|
+
p result
|
49
|
+
rescue AlfrescoAPI::ApiError => e
|
50
|
+
puts "Exception when calling GroupsApi->create_group: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
### Parameters
|
55
|
+
|
56
|
+
Name | Type | Description | Notes
|
57
|
+
------------- | ------------- | ------------- | -------------
|
58
|
+
**group_body_create** | [**GroupBodyCreate**](GroupBodyCreate.md)| The group to create. |
|
59
|
+
**include** | [**Array<String>**](String.md)| Returns additional information about the group. The following optional fields can be requested: * parentIds * zones | [optional]
|
60
|
+
**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]
|
61
|
+
|
62
|
+
### Return type
|
63
|
+
|
64
|
+
[**GroupEntry**](GroupEntry.md)
|
65
|
+
|
66
|
+
### Authorization
|
67
|
+
|
68
|
+
[basicAuth](../README.md#basicAuth)
|
69
|
+
|
70
|
+
### HTTP request headers
|
71
|
+
|
72
|
+
- **Content-Type**: application/json
|
73
|
+
- **Accept**: application/json
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
# **create_group_membership**
|
78
|
+
> GroupMemberEntry create_group_membership(group_id, group_membership_body_create, opts)
|
79
|
+
|
80
|
+
Create a group membership
|
81
|
+
|
82
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Create a group membership (for an existing person or group) within a group **groupId**. If the added group was previously a root group then it becomes a non-root group since it now has a parent. It is an error to specify an **id** that does not exist. You must have admin rights to create a group membership.
|
83
|
+
|
84
|
+
### Example
|
85
|
+
```ruby
|
86
|
+
# load the gem
|
87
|
+
require 'alfresco_api'
|
88
|
+
# setup authorization
|
89
|
+
AlfrescoAPI.configure do |config|
|
90
|
+
# Configure HTTP basic authorization: basicAuth
|
91
|
+
config.username = 'YOUR USERNAME'
|
92
|
+
config.password = 'YOUR PASSWORD'
|
93
|
+
end
|
94
|
+
|
95
|
+
api_instance = AlfrescoAPI::GroupsApi.new
|
96
|
+
|
97
|
+
group_id = "group_id_example" # String | The identifier of a group.
|
98
|
+
|
99
|
+
group_membership_body_create = AlfrescoAPI::GroupMembershipBodyCreate.new # GroupMembershipBodyCreate | The group membership to add (person or sub-group).
|
100
|
+
|
101
|
+
opts = {
|
102
|
+
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.
|
103
|
+
}
|
104
|
+
|
105
|
+
begin
|
106
|
+
#Create a group membership
|
107
|
+
result = api_instance.create_group_membership(group_id, group_membership_body_create, opts)
|
108
|
+
p result
|
109
|
+
rescue AlfrescoAPI::ApiError => e
|
110
|
+
puts "Exception when calling GroupsApi->create_group_membership: #{e}"
|
111
|
+
end
|
112
|
+
```
|
113
|
+
|
114
|
+
### Parameters
|
115
|
+
|
116
|
+
Name | Type | Description | Notes
|
117
|
+
------------- | ------------- | ------------- | -------------
|
118
|
+
**group_id** | **String**| The identifier of a group. |
|
119
|
+
**group_membership_body_create** | [**GroupMembershipBodyCreate**](GroupMembershipBodyCreate.md)| The group membership to add (person or sub-group). |
|
120
|
+
**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]
|
121
|
+
|
122
|
+
### Return type
|
123
|
+
|
124
|
+
[**GroupMemberEntry**](GroupMemberEntry.md)
|
125
|
+
|
126
|
+
### Authorization
|
127
|
+
|
128
|
+
[basicAuth](../README.md#basicAuth)
|
129
|
+
|
130
|
+
### HTTP request headers
|
131
|
+
|
132
|
+
- **Content-Type**: application/json
|
133
|
+
- **Accept**: application/json
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
# **delete_group**
|
138
|
+
> delete_group(group_id, , opts)
|
139
|
+
|
140
|
+
Delete a group
|
141
|
+
|
142
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Delete group **groupId**. The option to cascade delete applies this recursively to any hierarchy of group members. In this case, removing a group member does not delete the person or sub-group itself. If a removed sub-group no longer has any parent groups then it becomes a root group. You must have admin rights to delete a group.
|
143
|
+
|
144
|
+
### Example
|
145
|
+
```ruby
|
146
|
+
# load the gem
|
147
|
+
require 'alfresco_api'
|
148
|
+
# setup authorization
|
149
|
+
AlfrescoAPI.configure do |config|
|
150
|
+
# Configure HTTP basic authorization: basicAuth
|
151
|
+
config.username = 'YOUR USERNAME'
|
152
|
+
config.password = 'YOUR PASSWORD'
|
153
|
+
end
|
154
|
+
|
155
|
+
api_instance = AlfrescoAPI::GroupsApi.new
|
156
|
+
|
157
|
+
group_id = "group_id_example" # String | The identifier of a group.
|
158
|
+
|
159
|
+
opts = {
|
160
|
+
cascade: false # BOOLEAN | If **true** then the delete will be applied in cascade to sub-groups.
|
161
|
+
}
|
162
|
+
|
163
|
+
begin
|
164
|
+
#Delete a group
|
165
|
+
api_instance.delete_group(group_id, , opts)
|
166
|
+
rescue AlfrescoAPI::ApiError => e
|
167
|
+
puts "Exception when calling GroupsApi->delete_group: #{e}"
|
168
|
+
end
|
169
|
+
```
|
170
|
+
|
171
|
+
### Parameters
|
172
|
+
|
173
|
+
Name | Type | Description | Notes
|
174
|
+
------------- | ------------- | ------------- | -------------
|
175
|
+
**group_id** | **String**| The identifier of a group. |
|
176
|
+
**cascade** | **BOOLEAN**| If **true** then the delete will be applied in cascade to sub-groups. | [optional] [default to false]
|
177
|
+
|
178
|
+
### Return type
|
179
|
+
|
180
|
+
nil (empty response body)
|
181
|
+
|
182
|
+
### Authorization
|
183
|
+
|
184
|
+
[basicAuth](../README.md#basicAuth)
|
185
|
+
|
186
|
+
### HTTP request headers
|
187
|
+
|
188
|
+
- **Content-Type**: application/json
|
189
|
+
- **Accept**: application/json
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
# **delete_group_membership**
|
194
|
+
> delete_group_membership(group_id, group_member_id)
|
195
|
+
|
196
|
+
Delete a group membership
|
197
|
+
|
198
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Delete group member **groupMemberId** (person or sub-group) from group **groupId**. Removing a group member does not delete the person or sub-group itself. If a removed sub-group no longer has any parent groups then it becomes a root group. You must have admin rights to delete a group membership.
|
199
|
+
|
200
|
+
### Example
|
201
|
+
```ruby
|
202
|
+
# load the gem
|
203
|
+
require 'alfresco_api'
|
204
|
+
# setup authorization
|
205
|
+
AlfrescoAPI.configure do |config|
|
206
|
+
# Configure HTTP basic authorization: basicAuth
|
207
|
+
config.username = 'YOUR USERNAME'
|
208
|
+
config.password = 'YOUR PASSWORD'
|
209
|
+
end
|
210
|
+
|
211
|
+
api_instance = AlfrescoAPI::GroupsApi.new
|
212
|
+
|
213
|
+
group_id = "group_id_example" # String | The identifier of a group.
|
214
|
+
|
215
|
+
group_member_id = "group_member_id_example" # String | The identifier of a person or group.
|
216
|
+
|
217
|
+
|
218
|
+
begin
|
219
|
+
#Delete a group membership
|
220
|
+
api_instance.delete_group_membership(group_id, group_member_id)
|
221
|
+
rescue AlfrescoAPI::ApiError => e
|
222
|
+
puts "Exception when calling GroupsApi->delete_group_membership: #{e}"
|
223
|
+
end
|
224
|
+
```
|
225
|
+
|
226
|
+
### Parameters
|
227
|
+
|
228
|
+
Name | Type | Description | Notes
|
229
|
+
------------- | ------------- | ------------- | -------------
|
230
|
+
**group_id** | **String**| The identifier of a group. |
|
231
|
+
**group_member_id** | **String**| The identifier of a person or group. |
|
232
|
+
|
233
|
+
### Return type
|
234
|
+
|
235
|
+
nil (empty response body)
|
236
|
+
|
237
|
+
### Authorization
|
238
|
+
|
239
|
+
[basicAuth](../README.md#basicAuth)
|
240
|
+
|
241
|
+
### HTTP request headers
|
242
|
+
|
243
|
+
- **Content-Type**: application/json
|
244
|
+
- **Accept**: application/json
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
# **get_group**
|
249
|
+
> GroupEntry get_group(group_id, , opts)
|
250
|
+
|
251
|
+
Get group details
|
252
|
+
|
253
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Get details for group **groupId**. You can use the **include** parameter to return additional information.
|
254
|
+
|
255
|
+
### Example
|
256
|
+
```ruby
|
257
|
+
# load the gem
|
258
|
+
require 'alfresco_api'
|
259
|
+
# setup authorization
|
260
|
+
AlfrescoAPI.configure do |config|
|
261
|
+
# Configure HTTP basic authorization: basicAuth
|
262
|
+
config.username = 'YOUR USERNAME'
|
263
|
+
config.password = 'YOUR PASSWORD'
|
264
|
+
end
|
265
|
+
|
266
|
+
api_instance = AlfrescoAPI::GroupsApi.new
|
267
|
+
|
268
|
+
group_id = "group_id_example" # String | The identifier of a group.
|
269
|
+
|
270
|
+
opts = {
|
271
|
+
include: ["include_example"], # Array<String> | Returns additional information about the group. The following optional fields can be requested: * parentIds * zones
|
272
|
+
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.
|
273
|
+
}
|
274
|
+
|
275
|
+
begin
|
276
|
+
#Get group details
|
277
|
+
result = api_instance.get_group(group_id, , opts)
|
278
|
+
p result
|
279
|
+
rescue AlfrescoAPI::ApiError => e
|
280
|
+
puts "Exception when calling GroupsApi->get_group: #{e}"
|
281
|
+
end
|
282
|
+
```
|
283
|
+
|
284
|
+
### Parameters
|
285
|
+
|
286
|
+
Name | Type | Description | Notes
|
287
|
+
------------- | ------------- | ------------- | -------------
|
288
|
+
**group_id** | **String**| The identifier of a group. |
|
289
|
+
**include** | [**Array<String>**](String.md)| Returns additional information about the group. The following optional fields can be requested: * parentIds * zones | [optional]
|
290
|
+
**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]
|
291
|
+
|
292
|
+
### Return type
|
293
|
+
|
294
|
+
[**GroupEntry**](GroupEntry.md)
|
295
|
+
|
296
|
+
### Authorization
|
297
|
+
|
298
|
+
[basicAuth](../README.md#basicAuth)
|
299
|
+
|
300
|
+
### HTTP request headers
|
301
|
+
|
302
|
+
- **Content-Type**: application/json
|
303
|
+
- **Accept**: application/json
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
# **list_group_memberships**
|
308
|
+
> GroupMemberPaging list_group_memberships(group_id, , opts)
|
309
|
+
|
310
|
+
List memberships of a group
|
311
|
+
|
312
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Gets a list of the group memberships for the group **groupId**. You can use the **where** parameter to filter the returned groups by **memberType**. Example to filter by **memberType**, use any one of: ``` (memberType='GROUP') (memberType='PERSON') ``` The default sort order for the returned list is for group members to be sorted by ascending displayName. You can override the default by using the **orderBy** parameter. You can specify one of the following fields in the **orderBy** parameter: * id * displayName
|
313
|
+
|
314
|
+
### Example
|
315
|
+
```ruby
|
316
|
+
# load the gem
|
317
|
+
require 'alfresco_api'
|
318
|
+
# setup authorization
|
319
|
+
AlfrescoAPI.configure do |config|
|
320
|
+
# Configure HTTP basic authorization: basicAuth
|
321
|
+
config.username = 'YOUR USERNAME'
|
322
|
+
config.password = 'YOUR PASSWORD'
|
323
|
+
end
|
324
|
+
|
325
|
+
api_instance = AlfrescoAPI::GroupsApi.new
|
326
|
+
|
327
|
+
group_id = "group_id_example" # String | The identifier of a group.
|
328
|
+
|
329
|
+
opts = {
|
330
|
+
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.
|
331
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
332
|
+
order_by: ["order_by_example"], # Array<String> | A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.
|
333
|
+
where: "where_example", # String | A string to restrict the returned objects by using a predicate.
|
334
|
+
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.
|
335
|
+
}
|
336
|
+
|
337
|
+
begin
|
338
|
+
#List memberships of a group
|
339
|
+
result = api_instance.list_group_memberships(group_id, , opts)
|
340
|
+
p result
|
341
|
+
rescue AlfrescoAPI::ApiError => e
|
342
|
+
puts "Exception when calling GroupsApi->list_group_memberships: #{e}"
|
343
|
+
end
|
344
|
+
```
|
345
|
+
|
346
|
+
### Parameters
|
347
|
+
|
348
|
+
Name | Type | Description | Notes
|
349
|
+
------------- | ------------- | ------------- | -------------
|
350
|
+
**group_id** | **String**| The identifier of a group. |
|
351
|
+
**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]
|
352
|
+
**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]
|
353
|
+
**order_by** | [**Array<String>**](String.md)| A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field. | [optional]
|
354
|
+
**where** | **String**| A string to restrict the returned objects by using a predicate. | [optional]
|
355
|
+
**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]
|
356
|
+
|
357
|
+
### Return type
|
358
|
+
|
359
|
+
[**GroupMemberPaging**](GroupMemberPaging.md)
|
360
|
+
|
361
|
+
### Authorization
|
362
|
+
|
363
|
+
[basicAuth](../README.md#basicAuth)
|
364
|
+
|
365
|
+
### HTTP request headers
|
366
|
+
|
367
|
+
- **Content-Type**: application/json
|
368
|
+
- **Accept**: application/json
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
# **list_group_memberships_for_person**
|
373
|
+
> GroupPaging list_group_memberships_for_person(person_id, opts)
|
374
|
+
|
375
|
+
List group memberships
|
376
|
+
|
377
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Gets a list of group membership information for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. You can use the **include** parameter to return additional information. You can use the **where** parameter to filter the returned groups by **isRoot**. For example, the following **where** clause will return just the root groups: ``` (isRoot=true) ``` The **where** parameter can also be used to filter by ***zone***. This may be combined with isRoot to narrow a result set even further. For example, the following where clause will only return groups belonging to the `MY.ZONE` zone. ``` where=(zones in ('MY.ZONE')) ``` This may be combined with the isRoot filter, as shown below: ``` where=(isRoot=false AND zones in ('MY.ZONE')) ``` ***Note:*** restrictions include * `AND` is the only supported operator when combining `isRoot` and `zones` filters * Only one zone is supported by the filter * The quoted zone name must be placed in parenthesis — a 400 error will result if these are omitted. The default sort order for the returned list is for groups to be sorted by ascending displayName. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * displayName
|
378
|
+
|
379
|
+
### Example
|
380
|
+
```ruby
|
381
|
+
# load the gem
|
382
|
+
require 'alfresco_api'
|
383
|
+
# setup authorization
|
384
|
+
AlfrescoAPI.configure do |config|
|
385
|
+
# Configure HTTP basic authorization: basicAuth
|
386
|
+
config.username = 'YOUR USERNAME'
|
387
|
+
config.password = 'YOUR PASSWORD'
|
388
|
+
end
|
389
|
+
|
390
|
+
api_instance = AlfrescoAPI::GroupsApi.new
|
391
|
+
|
392
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
393
|
+
|
394
|
+
opts = {
|
395
|
+
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.
|
396
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
397
|
+
order_by: ["order_by_example"], # Array<String> | A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.
|
398
|
+
include: ["include_example"], # Array<String> | Returns additional information about the group. The following optional fields can be requested: * parentIds * zones
|
399
|
+
where: "where_example", # String | A string to restrict the returned objects by using a predicate.
|
400
|
+
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.
|
401
|
+
}
|
402
|
+
|
403
|
+
begin
|
404
|
+
#List group memberships
|
405
|
+
result = api_instance.list_group_memberships_for_person(person_id, opts)
|
406
|
+
p result
|
407
|
+
rescue AlfrescoAPI::ApiError => e
|
408
|
+
puts "Exception when calling GroupsApi->list_group_memberships_for_person: #{e}"
|
409
|
+
end
|
410
|
+
```
|
411
|
+
|
412
|
+
### Parameters
|
413
|
+
|
414
|
+
Name | Type | Description | Notes
|
415
|
+
------------- | ------------- | ------------- | -------------
|
416
|
+
**person_id** | **String**| The identifier of a person. |
|
417
|
+
**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]
|
418
|
+
**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]
|
419
|
+
**order_by** | [**Array<String>**](String.md)| A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field. | [optional]
|
420
|
+
**include** | [**Array<String>**](String.md)| Returns additional information about the group. The following optional fields can be requested: * parentIds * zones | [optional]
|
421
|
+
**where** | **String**| A string to restrict the returned objects by using a predicate. | [optional]
|
422
|
+
**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]
|
423
|
+
|
424
|
+
### Return type
|
425
|
+
|
426
|
+
[**GroupPaging**](GroupPaging.md)
|
427
|
+
|
428
|
+
### Authorization
|
429
|
+
|
430
|
+
[basicAuth](../README.md#basicAuth)
|
431
|
+
|
432
|
+
### HTTP request headers
|
433
|
+
|
434
|
+
- **Content-Type**: application/json
|
435
|
+
- **Accept**: application/json
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
# **list_groups**
|
440
|
+
> GroupPaging list_groups(opts)
|
441
|
+
|
442
|
+
List groups
|
443
|
+
|
444
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Gets a list of groups. You can use the **include** parameter to return additional information. You can use the **where** parameter to filter the returned groups by **isRoot**. For example, the following **where** clause will return just the root groups: ``` (isRoot=true) ``` The **where** parameter can also be used to filter by ***zone***. This may be combined with isRoot to narrow a result set even further. For example, the following where clause will only return groups belonging to the `MY.ZONE` zone. ``` where=(zones in ('MY.ZONE')) ``` This may be combined with the isRoot filter, as shown below: ``` where=(isRoot=false AND zones in ('MY.ZONE')) ``` ***Note:*** restrictions include * `AND` is the only supported operator when combining `isRoot` and `zones` filters * Only one zone is supported by the filter * The quoted zone name must be placed in parenthesis — a 400 error will result if these are omitted. The default sort order for the returned list is for groups to be sorted by ascending displayName. You can override the default by using the **orderBy** parameter. You can specify one of the following fields in the **orderBy** parameter: * id * displayName
|
445
|
+
|
446
|
+
### Example
|
447
|
+
```ruby
|
448
|
+
# load the gem
|
449
|
+
require 'alfresco_api'
|
450
|
+
# setup authorization
|
451
|
+
AlfrescoAPI.configure do |config|
|
452
|
+
# Configure HTTP basic authorization: basicAuth
|
453
|
+
config.username = 'YOUR USERNAME'
|
454
|
+
config.password = 'YOUR PASSWORD'
|
455
|
+
end
|
456
|
+
|
457
|
+
api_instance = AlfrescoAPI::GroupsApi.new
|
458
|
+
|
459
|
+
opts = {
|
460
|
+
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.
|
461
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
462
|
+
order_by: ["order_by_example"], # Array<String> | A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.
|
463
|
+
include: ["include_example"], # Array<String> | Returns additional information about the group. The following optional fields can be requested: * parentIds * zones
|
464
|
+
where: "where_example", # String | A string to restrict the returned objects by using a predicate.
|
465
|
+
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.
|
466
|
+
}
|
467
|
+
|
468
|
+
begin
|
469
|
+
#List groups
|
470
|
+
result = api_instance.list_groups(opts)
|
471
|
+
p result
|
472
|
+
rescue AlfrescoAPI::ApiError => e
|
473
|
+
puts "Exception when calling GroupsApi->list_groups: #{e}"
|
474
|
+
end
|
475
|
+
```
|
476
|
+
|
477
|
+
### Parameters
|
478
|
+
|
479
|
+
Name | Type | Description | Notes
|
480
|
+
------------- | ------------- | ------------- | -------------
|
481
|
+
**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]
|
482
|
+
**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]
|
483
|
+
**order_by** | [**Array<String>**](String.md)| A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field. | [optional]
|
484
|
+
**include** | [**Array<String>**](String.md)| Returns additional information about the group. The following optional fields can be requested: * parentIds * zones | [optional]
|
485
|
+
**where** | **String**| A string to restrict the returned objects by using a predicate. | [optional]
|
486
|
+
**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]
|
487
|
+
|
488
|
+
### Return type
|
489
|
+
|
490
|
+
[**GroupPaging**](GroupPaging.md)
|
491
|
+
|
492
|
+
### Authorization
|
493
|
+
|
494
|
+
[basicAuth](../README.md#basicAuth)
|
495
|
+
|
496
|
+
### HTTP request headers
|
497
|
+
|
498
|
+
- **Content-Type**: application/json
|
499
|
+
- **Accept**: application/json
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
# **update_group**
|
504
|
+
> GroupEntry update_group(group_id, group_body_update, opts)
|
505
|
+
|
506
|
+
Update group details
|
507
|
+
|
508
|
+
**Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Update details (displayName) for group **groupId**. You must have admin rights to update a group.
|
509
|
+
|
510
|
+
### Example
|
511
|
+
```ruby
|
512
|
+
# load the gem
|
513
|
+
require 'alfresco_api'
|
514
|
+
# setup authorization
|
515
|
+
AlfrescoAPI.configure do |config|
|
516
|
+
# Configure HTTP basic authorization: basicAuth
|
517
|
+
config.username = 'YOUR USERNAME'
|
518
|
+
config.password = 'YOUR PASSWORD'
|
519
|
+
end
|
520
|
+
|
521
|
+
api_instance = AlfrescoAPI::GroupsApi.new
|
522
|
+
|
523
|
+
group_id = "group_id_example" # String | The identifier of a group.
|
524
|
+
|
525
|
+
group_body_update = AlfrescoAPI::GroupBodyUpdate.new # GroupBodyUpdate | The group information to update.
|
526
|
+
|
527
|
+
opts = {
|
528
|
+
include: ["include_example"], # Array<String> | Returns additional information about the group. The following optional fields can be requested: * parentIds * zones
|
529
|
+
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.
|
530
|
+
}
|
531
|
+
|
532
|
+
begin
|
533
|
+
#Update group details
|
534
|
+
result = api_instance.update_group(group_id, group_body_update, opts)
|
535
|
+
p result
|
536
|
+
rescue AlfrescoAPI::ApiError => e
|
537
|
+
puts "Exception when calling GroupsApi->update_group: #{e}"
|
538
|
+
end
|
539
|
+
```
|
540
|
+
|
541
|
+
### Parameters
|
542
|
+
|
543
|
+
Name | Type | Description | Notes
|
544
|
+
------------- | ------------- | ------------- | -------------
|
545
|
+
**group_id** | **String**| The identifier of a group. |
|
546
|
+
**group_body_update** | [**GroupBodyUpdate**](GroupBodyUpdate.md)| The group information to update. |
|
547
|
+
**include** | [**Array<String>**](String.md)| Returns additional information about the group. The following optional fields can be requested: * parentIds * zones | [optional]
|
548
|
+
**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]
|
549
|
+
|
550
|
+
### Return type
|
551
|
+
|
552
|
+
[**GroupEntry**](GroupEntry.md)
|
553
|
+
|
554
|
+
### Authorization
|
555
|
+
|
556
|
+
[basicAuth](../README.md#basicAuth)
|
557
|
+
|
558
|
+
### HTTP request headers
|
559
|
+
|
560
|
+
- **Content-Type**: application/json
|
561
|
+
- **Accept**: application/json
|
562
|
+
|
563
|
+
|
564
|
+
|