alfresco_api 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/Site.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# AlfrescoAPI::Site
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | |
|
|
7
|
+
**guid** | **String** | |
|
|
8
|
+
**title** | **String** | |
|
|
9
|
+
**description** | **String** | | [optional]
|
|
10
|
+
**visibility** | **String** | |
|
|
11
|
+
**preset** | **String** | | [optional]
|
|
12
|
+
**role** | **String** | | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# AlfrescoAPI::SiteBodyCreate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | | [optional]
|
|
7
|
+
**title** | **String** | |
|
|
8
|
+
**description** | **String** | | [optional]
|
|
9
|
+
**visibility** | **String** | | [default to "PUBLIC"]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# AlfrescoAPI::SiteBodyUpdate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**title** | **String** | | [optional]
|
|
7
|
+
**description** | **String** | | [optional]
|
|
8
|
+
**visibility** | **String** | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# AlfrescoAPI::SiteContainerPagingList
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**pagination** | [**Pagination**](Pagination.md) | |
|
|
7
|
+
**entries** | [**Array<SiteContainerEntry>**](SiteContainerEntry.md) | |
|
|
8
|
+
|
|
9
|
+
|
data/docs/SiteEntry.md
ADDED
data/docs/SiteMember.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# AlfrescoAPI::SiteMemberPagingList
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**pagination** | [**Pagination**](Pagination.md) | |
|
|
7
|
+
**entries** | [**Array<SiteMemberEntry>**](SiteMemberEntry.md) | |
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# AlfrescoAPI::SiteMembershipRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | |
|
|
7
|
+
**created_at** | **DateTime** | |
|
|
8
|
+
**site** | [**Site**](Site.md) | |
|
|
9
|
+
**message** | **String** | | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# AlfrescoAPI::SiteMembershipRequestBodyCreate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**message** | **String** | | [optional]
|
|
7
|
+
**id** | **String** | |
|
|
8
|
+
**title** | **String** | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# AlfrescoAPI::SiteMembershipRequestPagingList
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**pagination** | [**Pagination**](Pagination.md) | |
|
|
7
|
+
**entries** | [**Array<SiteMembershipRequestEntry>**](SiteMembershipRequestEntry.md) | |
|
|
8
|
+
|
|
9
|
+
|
data/docs/SitePaging.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# AlfrescoAPI::SitePagingList
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**pagination** | [**Pagination**](Pagination.md) | |
|
|
7
|
+
**entries** | [**Array<SiteEntry>**](SiteEntry.md) | |
|
|
8
|
+
|
|
9
|
+
|
data/docs/SiteRole.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# AlfrescoAPI::SiteRole
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**site** | [**Site**](Site.md) | |
|
|
7
|
+
**id** | **String** | |
|
|
8
|
+
**guid** | **String** | |
|
|
9
|
+
**role** | **String** | |
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# AlfrescoAPI::SiteRolePagingList
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**pagination** | [**Pagination**](Pagination.md) | |
|
|
7
|
+
**entries** | [**Array<SiteRoleEntry>**](SiteRoleEntry.md) | |
|
|
8
|
+
|
|
9
|
+
|
data/docs/SitesApi.md
ADDED
|
@@ -0,0 +1,1225 @@
|
|
|
1
|
+
# AlfrescoAPI::SitesApi
|
|
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_site**](SitesApi.md#create_site) | **POST** /sites | Create a site
|
|
8
|
+
[**create_site_membership**](SitesApi.md#create_site_membership) | **POST** /sites/{siteId}/members | Create a site membership
|
|
9
|
+
[**create_site_membership_request_for_person**](SitesApi.md#create_site_membership_request_for_person) | **POST** /people/{personId}/site-membership-requests | Create a site membership request
|
|
10
|
+
[**delete_site**](SitesApi.md#delete_site) | **DELETE** /sites/{siteId} | Delete a site
|
|
11
|
+
[**delete_site_membership**](SitesApi.md#delete_site_membership) | **DELETE** /sites/{siteId}/members/{personId} | Delete a site membership
|
|
12
|
+
[**delete_site_membership_for_person**](SitesApi.md#delete_site_membership_for_person) | **DELETE** /people/{personId}/sites/{siteId} | Delete a site membership
|
|
13
|
+
[**delete_site_membership_request_for_person**](SitesApi.md#delete_site_membership_request_for_person) | **DELETE** /people/{personId}/site-membership-requests/{siteId} | Delete a site membership request
|
|
14
|
+
[**get_site**](SitesApi.md#get_site) | **GET** /sites/{siteId} | Get a site
|
|
15
|
+
[**get_site_container**](SitesApi.md#get_site_container) | **GET** /sites/{siteId}/containers/{containerId} | Get a site container
|
|
16
|
+
[**get_site_membership**](SitesApi.md#get_site_membership) | **GET** /sites/{siteId}/members/{personId} | Get a site membership
|
|
17
|
+
[**get_site_membership_for_person**](SitesApi.md#get_site_membership_for_person) | **GET** /people/{personId}/sites/{siteId} | Get a site membership
|
|
18
|
+
[**get_site_membership_request_for_person**](SitesApi.md#get_site_membership_request_for_person) | **GET** /people/{personId}/site-membership-requests/{siteId} | Get a site membership request
|
|
19
|
+
[**list_site_containers**](SitesApi.md#list_site_containers) | **GET** /sites/{siteId}/containers | List site containers
|
|
20
|
+
[**list_site_membership_requests_for_person**](SitesApi.md#list_site_membership_requests_for_person) | **GET** /people/{personId}/site-membership-requests | List site membership requests
|
|
21
|
+
[**list_site_memberships**](SitesApi.md#list_site_memberships) | **GET** /sites/{siteId}/members | List site memberships
|
|
22
|
+
[**list_site_memberships_for_person**](SitesApi.md#list_site_memberships_for_person) | **GET** /people/{personId}/sites | List site memberships
|
|
23
|
+
[**list_sites**](SitesApi.md#list_sites) | **GET** /sites | List sites
|
|
24
|
+
[**update_site**](SitesApi.md#update_site) | **PUT** /sites/{siteId} | Update a site
|
|
25
|
+
[**update_site_membership**](SitesApi.md#update_site_membership) | **PUT** /sites/{siteId}/members/{personId} | Update a site membership
|
|
26
|
+
[**update_site_membership_request_for_person**](SitesApi.md#update_site_membership_request_for_person) | **PUT** /people/{personId}/site-membership-requests/{siteId} | Update a site membership request
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# **create_site**
|
|
30
|
+
> SiteEntry create_site(site_body_create, opts)
|
|
31
|
+
|
|
32
|
+
Create a site
|
|
33
|
+
|
|
34
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Creates a default site with the given details. Unless explicitly specified, the site id will be generated from the site title. The site id must be unique and only contain alphanumeric and/or dash characters. Note: the id of a site cannot be updated once the site has been created. For example, to create a public site called \"Marketing\" the following body could be used: ```JSON { \"title\": \"Marketing\", \"visibility\": \"PUBLIC\" } ``` The creation of the (surf) configuration files required by Share can be skipped via the **skipConfiguration** query parameter. **Note:** if skipped then such a site will **not** work within Share. The addition of the site to the user's site favorites can be skipped via the **skipAddToFavorites** query parameter. The creator will be added as a member with Site Manager role. When you create a site, a container called **documentLibrary** is created for you in the new site. This container is the root folder for content stored in the site.
|
|
35
|
+
|
|
36
|
+
### Example
|
|
37
|
+
```ruby
|
|
38
|
+
# load the gem
|
|
39
|
+
require 'alfresco_api'
|
|
40
|
+
# setup authorization
|
|
41
|
+
AlfrescoAPI.configure do |config|
|
|
42
|
+
# Configure HTTP basic authorization: basicAuth
|
|
43
|
+
config.username = 'YOUR USERNAME'
|
|
44
|
+
config.password = 'YOUR PASSWORD'
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
48
|
+
|
|
49
|
+
site_body_create = AlfrescoAPI::SiteBodyCreate.new # SiteBodyCreate | The site details
|
|
50
|
+
|
|
51
|
+
opts = {
|
|
52
|
+
skip_configuration: false, # BOOLEAN | Flag to indicate whether the Share-specific (surf) configuration files for the site should not be created.
|
|
53
|
+
skip_add_to_favorites: false, # BOOLEAN | Flag to indicate whether the site should not be added to the user's site favorites.
|
|
54
|
+
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.
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
begin
|
|
58
|
+
#Create a site
|
|
59
|
+
result = api_instance.create_site(site_body_create, opts)
|
|
60
|
+
p result
|
|
61
|
+
rescue AlfrescoAPI::ApiError => e
|
|
62
|
+
puts "Exception when calling SitesApi->create_site: #{e}"
|
|
63
|
+
end
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
Name | Type | Description | Notes
|
|
69
|
+
------------- | ------------- | ------------- | -------------
|
|
70
|
+
**site_body_create** | [**SiteBodyCreate**](SiteBodyCreate.md)| The site details |
|
|
71
|
+
**skip_configuration** | **BOOLEAN**| Flag to indicate whether the Share-specific (surf) configuration files for the site should not be created. | [optional] [default to false]
|
|
72
|
+
**skip_add_to_favorites** | **BOOLEAN**| Flag to indicate whether the site should not be added to the user's site favorites. | [optional] [default to false]
|
|
73
|
+
**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]
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
[**SiteEntry**](SiteEntry.md)
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[basicAuth](../README.md#basicAuth)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: application/json
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
# **create_site_membership**
|
|
91
|
+
> SiteMemberEntry create_site_membership(site_id, site_membership_body_create, opts)
|
|
92
|
+
|
|
93
|
+
Create a site membership
|
|
94
|
+
|
|
95
|
+
Creates a site membership for person **personId** on site **siteId**. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager **Note:** You can create more than one site membership by specifying a list of people in the JSON body like this: ```JSON [ { \"role\": \"SiteConsumer\", \"id\": \"joe\" }, { \"role\": \"SiteConsumer\", \"id\": \"fred\" } ] ``` 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\": { ... } } ] } } ```
|
|
96
|
+
|
|
97
|
+
### Example
|
|
98
|
+
```ruby
|
|
99
|
+
# load the gem
|
|
100
|
+
require 'alfresco_api'
|
|
101
|
+
# setup authorization
|
|
102
|
+
AlfrescoAPI.configure do |config|
|
|
103
|
+
# Configure HTTP basic authorization: basicAuth
|
|
104
|
+
config.username = 'YOUR USERNAME'
|
|
105
|
+
config.password = 'YOUR PASSWORD'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
109
|
+
|
|
110
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
111
|
+
|
|
112
|
+
site_membership_body_create = AlfrescoAPI::SiteMembershipBodyCreate.new # SiteMembershipBodyCreate | The person to add and their role
|
|
113
|
+
|
|
114
|
+
opts = {
|
|
115
|
+
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.
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
begin
|
|
119
|
+
#Create a site membership
|
|
120
|
+
result = api_instance.create_site_membership(site_id, site_membership_body_create, opts)
|
|
121
|
+
p result
|
|
122
|
+
rescue AlfrescoAPI::ApiError => e
|
|
123
|
+
puts "Exception when calling SitesApi->create_site_membership: #{e}"
|
|
124
|
+
end
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Parameters
|
|
128
|
+
|
|
129
|
+
Name | Type | Description | Notes
|
|
130
|
+
------------- | ------------- | ------------- | -------------
|
|
131
|
+
**site_id** | **String**| The identifier of a site. |
|
|
132
|
+
**site_membership_body_create** | [**SiteMembershipBodyCreate**](SiteMembershipBodyCreate.md)| The person to add and their role |
|
|
133
|
+
**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]
|
|
134
|
+
|
|
135
|
+
### Return type
|
|
136
|
+
|
|
137
|
+
[**SiteMemberEntry**](SiteMemberEntry.md)
|
|
138
|
+
|
|
139
|
+
### Authorization
|
|
140
|
+
|
|
141
|
+
[basicAuth](../README.md#basicAuth)
|
|
142
|
+
|
|
143
|
+
### HTTP request headers
|
|
144
|
+
|
|
145
|
+
- **Content-Type**: application/json
|
|
146
|
+
- **Accept**: application/json
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
# **create_site_membership_request_for_person**
|
|
151
|
+
> SiteMembershipRequestEntry create_site_membership_request_for_person(person_idsite_membership_request_body_create, opts)
|
|
152
|
+
|
|
153
|
+
Create a site membership request
|
|
154
|
+
|
|
155
|
+
Create a site membership request for yourself on the site with the identifier of **id**, specified in the JSON body. The result of the request differs depending on the type of site. * For a **public** site, you join the site immediately as a SiteConsumer. * For a **moderated** site, your request is added to the site membership request list. The request waits for approval from the Site Manager. * You cannot request membership of a **private** site. Members are invited by the site administrator. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. **Note:** You can create site membership requests for more than one site by specifying a list of sites in the JSON body like this: ```JSON [ { \"message\": \"Please can you add me\", \"id\": \"test-site-1\", \"title\": \"Request for test site 1\", }, { \"message\": \"Please can you add me\", \"id\": \"test-site-2\", \"title\": \"Request for 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\": { ... } } ] } } ```
|
|
156
|
+
|
|
157
|
+
### Example
|
|
158
|
+
```ruby
|
|
159
|
+
# load the gem
|
|
160
|
+
require 'alfresco_api'
|
|
161
|
+
# setup authorization
|
|
162
|
+
AlfrescoAPI.configure do |config|
|
|
163
|
+
# Configure HTTP basic authorization: basicAuth
|
|
164
|
+
config.username = 'YOUR USERNAME'
|
|
165
|
+
config.password = 'YOUR PASSWORD'
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
169
|
+
|
|
170
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
171
|
+
|
|
172
|
+
site_membership_request_body_create = AlfrescoAPI::SiteMembershipRequestBodyCreate.new # SiteMembershipRequestBodyCreate | Site membership request details
|
|
173
|
+
|
|
174
|
+
opts = {
|
|
175
|
+
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.
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
begin
|
|
179
|
+
#Create a site membership request
|
|
180
|
+
result = api_instance.create_site_membership_request_for_person(person_idsite_membership_request_body_create, opts)
|
|
181
|
+
p result
|
|
182
|
+
rescue AlfrescoAPI::ApiError => e
|
|
183
|
+
puts "Exception when calling SitesApi->create_site_membership_request_for_person: #{e}"
|
|
184
|
+
end
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Parameters
|
|
188
|
+
|
|
189
|
+
Name | Type | Description | Notes
|
|
190
|
+
------------- | ------------- | ------------- | -------------
|
|
191
|
+
**person_id** | **String**| The identifier of a person. |
|
|
192
|
+
**site_membership_request_body_create** | [**SiteMembershipRequestBodyCreate**](SiteMembershipRequestBodyCreate.md)| Site membership request details |
|
|
193
|
+
**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]
|
|
194
|
+
|
|
195
|
+
### Return type
|
|
196
|
+
|
|
197
|
+
[**SiteMembershipRequestEntry**](SiteMembershipRequestEntry.md)
|
|
198
|
+
|
|
199
|
+
### Authorization
|
|
200
|
+
|
|
201
|
+
[basicAuth](../README.md#basicAuth)
|
|
202
|
+
|
|
203
|
+
### HTTP request headers
|
|
204
|
+
|
|
205
|
+
- **Content-Type**: application/json
|
|
206
|
+
- **Accept**: application/json
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
# **delete_site**
|
|
211
|
+
> delete_site(site_id, , opts)
|
|
212
|
+
|
|
213
|
+
Delete a site
|
|
214
|
+
|
|
215
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Deletes the site with **siteId**.
|
|
216
|
+
|
|
217
|
+
### Example
|
|
218
|
+
```ruby
|
|
219
|
+
# load the gem
|
|
220
|
+
require 'alfresco_api'
|
|
221
|
+
# setup authorization
|
|
222
|
+
AlfrescoAPI.configure do |config|
|
|
223
|
+
# Configure HTTP basic authorization: basicAuth
|
|
224
|
+
config.username = 'YOUR USERNAME'
|
|
225
|
+
config.password = 'YOUR PASSWORD'
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
229
|
+
|
|
230
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
231
|
+
|
|
232
|
+
opts = {
|
|
233
|
+
permanent: false # BOOLEAN | Flag to indicate whether the site should be permanently deleted i.e. bypass the trashcan.
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
begin
|
|
237
|
+
#Delete a site
|
|
238
|
+
api_instance.delete_site(site_id, , opts)
|
|
239
|
+
rescue AlfrescoAPI::ApiError => e
|
|
240
|
+
puts "Exception when calling SitesApi->delete_site: #{e}"
|
|
241
|
+
end
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Parameters
|
|
245
|
+
|
|
246
|
+
Name | Type | Description | Notes
|
|
247
|
+
------------- | ------------- | ------------- | -------------
|
|
248
|
+
**site_id** | **String**| The identifier of a site. |
|
|
249
|
+
**permanent** | **BOOLEAN**| Flag to indicate whether the site should be permanently deleted i.e. bypass the trashcan. | [optional] [default to false]
|
|
250
|
+
|
|
251
|
+
### Return type
|
|
252
|
+
|
|
253
|
+
nil (empty response body)
|
|
254
|
+
|
|
255
|
+
### Authorization
|
|
256
|
+
|
|
257
|
+
[basicAuth](../README.md#basicAuth)
|
|
258
|
+
|
|
259
|
+
### HTTP request headers
|
|
260
|
+
|
|
261
|
+
- **Content-Type**: application/json
|
|
262
|
+
- **Accept**: application/json
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
# **delete_site_membership**
|
|
267
|
+
> delete_site_membership(site_id, person_id)
|
|
268
|
+
|
|
269
|
+
Delete a site membership
|
|
270
|
+
|
|
271
|
+
Deletes person **personId** as a member of site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
|
272
|
+
|
|
273
|
+
### Example
|
|
274
|
+
```ruby
|
|
275
|
+
# load the gem
|
|
276
|
+
require 'alfresco_api'
|
|
277
|
+
# setup authorization
|
|
278
|
+
AlfrescoAPI.configure do |config|
|
|
279
|
+
# Configure HTTP basic authorization: basicAuth
|
|
280
|
+
config.username = 'YOUR USERNAME'
|
|
281
|
+
config.password = 'YOUR PASSWORD'
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
285
|
+
|
|
286
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
287
|
+
|
|
288
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
begin
|
|
292
|
+
#Delete a site membership
|
|
293
|
+
api_instance.delete_site_membership(site_id, person_id)
|
|
294
|
+
rescue AlfrescoAPI::ApiError => e
|
|
295
|
+
puts "Exception when calling SitesApi->delete_site_membership: #{e}"
|
|
296
|
+
end
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### Parameters
|
|
300
|
+
|
|
301
|
+
Name | Type | Description | Notes
|
|
302
|
+
------------- | ------------- | ------------- | -------------
|
|
303
|
+
**site_id** | **String**| The identifier of a site. |
|
|
304
|
+
**person_id** | **String**| The identifier of a person. |
|
|
305
|
+
|
|
306
|
+
### Return type
|
|
307
|
+
|
|
308
|
+
nil (empty response body)
|
|
309
|
+
|
|
310
|
+
### Authorization
|
|
311
|
+
|
|
312
|
+
[basicAuth](../README.md#basicAuth)
|
|
313
|
+
|
|
314
|
+
### HTTP request headers
|
|
315
|
+
|
|
316
|
+
- **Content-Type**: application/json
|
|
317
|
+
- **Accept**: application/json
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
# **delete_site_membership_for_person**
|
|
322
|
+
> delete_site_membership_for_person(person_idsite_id, )
|
|
323
|
+
|
|
324
|
+
Delete a site membership
|
|
325
|
+
|
|
326
|
+
Deletes person **personId** as a member of site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
|
327
|
+
|
|
328
|
+
### Example
|
|
329
|
+
```ruby
|
|
330
|
+
# load the gem
|
|
331
|
+
require 'alfresco_api'
|
|
332
|
+
# setup authorization
|
|
333
|
+
AlfrescoAPI.configure do |config|
|
|
334
|
+
# Configure HTTP basic authorization: basicAuth
|
|
335
|
+
config.username = 'YOUR USERNAME'
|
|
336
|
+
config.password = 'YOUR PASSWORD'
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
340
|
+
|
|
341
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
342
|
+
|
|
343
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
begin
|
|
347
|
+
#Delete a site membership
|
|
348
|
+
api_instance.delete_site_membership_for_person(person_idsite_id, )
|
|
349
|
+
rescue AlfrescoAPI::ApiError => e
|
|
350
|
+
puts "Exception when calling SitesApi->delete_site_membership_for_person: #{e}"
|
|
351
|
+
end
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
### Parameters
|
|
355
|
+
|
|
356
|
+
Name | Type | Description | Notes
|
|
357
|
+
------------- | ------------- | ------------- | -------------
|
|
358
|
+
**person_id** | **String**| The identifier of a person. |
|
|
359
|
+
**site_id** | **String**| The identifier of a site. |
|
|
360
|
+
|
|
361
|
+
### Return type
|
|
362
|
+
|
|
363
|
+
nil (empty response body)
|
|
364
|
+
|
|
365
|
+
### Authorization
|
|
366
|
+
|
|
367
|
+
[basicAuth](../README.md#basicAuth)
|
|
368
|
+
|
|
369
|
+
### HTTP request headers
|
|
370
|
+
|
|
371
|
+
- **Content-Type**: application/json
|
|
372
|
+
- **Accept**: application/json
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
# **delete_site_membership_request_for_person**
|
|
377
|
+
> delete_site_membership_request_for_person(person_idsite_id, )
|
|
378
|
+
|
|
379
|
+
Delete a site membership request
|
|
380
|
+
|
|
381
|
+
Deletes the site membership request to site **siteId** for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
|
382
|
+
|
|
383
|
+
### Example
|
|
384
|
+
```ruby
|
|
385
|
+
# load the gem
|
|
386
|
+
require 'alfresco_api'
|
|
387
|
+
# setup authorization
|
|
388
|
+
AlfrescoAPI.configure do |config|
|
|
389
|
+
# Configure HTTP basic authorization: basicAuth
|
|
390
|
+
config.username = 'YOUR USERNAME'
|
|
391
|
+
config.password = 'YOUR PASSWORD'
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
395
|
+
|
|
396
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
397
|
+
|
|
398
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
begin
|
|
402
|
+
#Delete a site membership request
|
|
403
|
+
api_instance.delete_site_membership_request_for_person(person_idsite_id, )
|
|
404
|
+
rescue AlfrescoAPI::ApiError => e
|
|
405
|
+
puts "Exception when calling SitesApi->delete_site_membership_request_for_person: #{e}"
|
|
406
|
+
end
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
### Parameters
|
|
410
|
+
|
|
411
|
+
Name | Type | Description | Notes
|
|
412
|
+
------------- | ------------- | ------------- | -------------
|
|
413
|
+
**person_id** | **String**| The identifier of a person. |
|
|
414
|
+
**site_id** | **String**| The identifier of a site. |
|
|
415
|
+
|
|
416
|
+
### Return type
|
|
417
|
+
|
|
418
|
+
nil (empty response body)
|
|
419
|
+
|
|
420
|
+
### Authorization
|
|
421
|
+
|
|
422
|
+
[basicAuth](../README.md#basicAuth)
|
|
423
|
+
|
|
424
|
+
### HTTP request headers
|
|
425
|
+
|
|
426
|
+
- **Content-Type**: application/json
|
|
427
|
+
- **Accept**: application/json
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
# **get_site**
|
|
432
|
+
> SiteEntry get_site(site_id, , opts)
|
|
433
|
+
|
|
434
|
+
Get a site
|
|
435
|
+
|
|
436
|
+
Gets information for site **siteId**. You can use the **relations** parameter to include one or more related entities in a single response and so reduce network traffic. The entity types in Alfresco are organized in a tree structure. The **sites** entity has two children, **containers** and **members**. The following relations parameter returns all the container and member objects related to the site **siteId**: ``` containers,members ```
|
|
437
|
+
|
|
438
|
+
### Example
|
|
439
|
+
```ruby
|
|
440
|
+
# load the gem
|
|
441
|
+
require 'alfresco_api'
|
|
442
|
+
# setup authorization
|
|
443
|
+
AlfrescoAPI.configure do |config|
|
|
444
|
+
# Configure HTTP basic authorization: basicAuth
|
|
445
|
+
config.username = 'YOUR USERNAME'
|
|
446
|
+
config.password = 'YOUR PASSWORD'
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
450
|
+
|
|
451
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
452
|
+
|
|
453
|
+
opts = {
|
|
454
|
+
relations: ["relations_example"], # Array<String> | Use the relations parameter to include one or more related entities in a single response.
|
|
455
|
+
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.
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
begin
|
|
459
|
+
#Get a site
|
|
460
|
+
result = api_instance.get_site(site_id, , opts)
|
|
461
|
+
p result
|
|
462
|
+
rescue AlfrescoAPI::ApiError => e
|
|
463
|
+
puts "Exception when calling SitesApi->get_site: #{e}"
|
|
464
|
+
end
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
### Parameters
|
|
468
|
+
|
|
469
|
+
Name | Type | Description | Notes
|
|
470
|
+
------------- | ------------- | ------------- | -------------
|
|
471
|
+
**site_id** | **String**| The identifier of a site. |
|
|
472
|
+
**relations** | [**Array<String>**](String.md)| Use the relations parameter to include one or more related entities in a single response. | [optional]
|
|
473
|
+
**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]
|
|
474
|
+
|
|
475
|
+
### Return type
|
|
476
|
+
|
|
477
|
+
[**SiteEntry**](SiteEntry.md)
|
|
478
|
+
|
|
479
|
+
### Authorization
|
|
480
|
+
|
|
481
|
+
[basicAuth](../README.md#basicAuth)
|
|
482
|
+
|
|
483
|
+
### HTTP request headers
|
|
484
|
+
|
|
485
|
+
- **Content-Type**: application/json
|
|
486
|
+
- **Accept**: application/json
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
# **get_site_container**
|
|
491
|
+
> SiteContainerEntry get_site_container(site_id, container_id, opts)
|
|
492
|
+
|
|
493
|
+
Get a site container
|
|
494
|
+
|
|
495
|
+
Gets information on the container **containerId** in site **siteId**.
|
|
496
|
+
|
|
497
|
+
### Example
|
|
498
|
+
```ruby
|
|
499
|
+
# load the gem
|
|
500
|
+
require 'alfresco_api'
|
|
501
|
+
# setup authorization
|
|
502
|
+
AlfrescoAPI.configure do |config|
|
|
503
|
+
# Configure HTTP basic authorization: basicAuth
|
|
504
|
+
config.username = 'YOUR USERNAME'
|
|
505
|
+
config.password = 'YOUR PASSWORD'
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
509
|
+
|
|
510
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
511
|
+
|
|
512
|
+
container_id = "container_id_example" # String | The unique identifier of a site container.
|
|
513
|
+
|
|
514
|
+
opts = {
|
|
515
|
+
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.
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
begin
|
|
519
|
+
#Get a site container
|
|
520
|
+
result = api_instance.get_site_container(site_id, container_id, opts)
|
|
521
|
+
p result
|
|
522
|
+
rescue AlfrescoAPI::ApiError => e
|
|
523
|
+
puts "Exception when calling SitesApi->get_site_container: #{e}"
|
|
524
|
+
end
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
### Parameters
|
|
528
|
+
|
|
529
|
+
Name | Type | Description | Notes
|
|
530
|
+
------------- | ------------- | ------------- | -------------
|
|
531
|
+
**site_id** | **String**| The identifier of a site. |
|
|
532
|
+
**container_id** | **String**| The unique identifier of a site container. |
|
|
533
|
+
**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]
|
|
534
|
+
|
|
535
|
+
### Return type
|
|
536
|
+
|
|
537
|
+
[**SiteContainerEntry**](SiteContainerEntry.md)
|
|
538
|
+
|
|
539
|
+
### Authorization
|
|
540
|
+
|
|
541
|
+
[basicAuth](../README.md#basicAuth)
|
|
542
|
+
|
|
543
|
+
### HTTP request headers
|
|
544
|
+
|
|
545
|
+
- **Content-Type**: application/json
|
|
546
|
+
- **Accept**: application/json
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
# **get_site_membership**
|
|
551
|
+
> SiteMemberEntry get_site_membership(site_id, person_id, opts)
|
|
552
|
+
|
|
553
|
+
Get a site membership
|
|
554
|
+
|
|
555
|
+
Gets site membership information for person **personId** on site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
|
556
|
+
|
|
557
|
+
### Example
|
|
558
|
+
```ruby
|
|
559
|
+
# load the gem
|
|
560
|
+
require 'alfresco_api'
|
|
561
|
+
# setup authorization
|
|
562
|
+
AlfrescoAPI.configure do |config|
|
|
563
|
+
# Configure HTTP basic authorization: basicAuth
|
|
564
|
+
config.username = 'YOUR USERNAME'
|
|
565
|
+
config.password = 'YOUR PASSWORD'
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
569
|
+
|
|
570
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
571
|
+
|
|
572
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
573
|
+
|
|
574
|
+
opts = {
|
|
575
|
+
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.
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
begin
|
|
579
|
+
#Get a site membership
|
|
580
|
+
result = api_instance.get_site_membership(site_id, person_id, opts)
|
|
581
|
+
p result
|
|
582
|
+
rescue AlfrescoAPI::ApiError => e
|
|
583
|
+
puts "Exception when calling SitesApi->get_site_membership: #{e}"
|
|
584
|
+
end
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
### Parameters
|
|
588
|
+
|
|
589
|
+
Name | Type | Description | Notes
|
|
590
|
+
------------- | ------------- | ------------- | -------------
|
|
591
|
+
**site_id** | **String**| The identifier of a site. |
|
|
592
|
+
**person_id** | **String**| The identifier of a person. |
|
|
593
|
+
**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]
|
|
594
|
+
|
|
595
|
+
### Return type
|
|
596
|
+
|
|
597
|
+
[**SiteMemberEntry**](SiteMemberEntry.md)
|
|
598
|
+
|
|
599
|
+
### Authorization
|
|
600
|
+
|
|
601
|
+
[basicAuth](../README.md#basicAuth)
|
|
602
|
+
|
|
603
|
+
### HTTP request headers
|
|
604
|
+
|
|
605
|
+
- **Content-Type**: application/json
|
|
606
|
+
- **Accept**: application/json
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
# **get_site_membership_for_person**
|
|
611
|
+
> SiteRoleEntry get_site_membership_for_person(person_idsite_id, )
|
|
612
|
+
|
|
613
|
+
Get a site membership
|
|
614
|
+
|
|
615
|
+
Gets site membership information for person **personId** on site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
|
616
|
+
|
|
617
|
+
### Example
|
|
618
|
+
```ruby
|
|
619
|
+
# load the gem
|
|
620
|
+
require 'alfresco_api'
|
|
621
|
+
# setup authorization
|
|
622
|
+
AlfrescoAPI.configure do |config|
|
|
623
|
+
# Configure HTTP basic authorization: basicAuth
|
|
624
|
+
config.username = 'YOUR USERNAME'
|
|
625
|
+
config.password = 'YOUR PASSWORD'
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
629
|
+
|
|
630
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
631
|
+
|
|
632
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
begin
|
|
636
|
+
#Get a site membership
|
|
637
|
+
result = api_instance.get_site_membership_for_person(person_idsite_id, )
|
|
638
|
+
p result
|
|
639
|
+
rescue AlfrescoAPI::ApiError => e
|
|
640
|
+
puts "Exception when calling SitesApi->get_site_membership_for_person: #{e}"
|
|
641
|
+
end
|
|
642
|
+
```
|
|
643
|
+
|
|
644
|
+
### Parameters
|
|
645
|
+
|
|
646
|
+
Name | Type | Description | Notes
|
|
647
|
+
------------- | ------------- | ------------- | -------------
|
|
648
|
+
**person_id** | **String**| The identifier of a person. |
|
|
649
|
+
**site_id** | **String**| The identifier of a site. |
|
|
650
|
+
|
|
651
|
+
### Return type
|
|
652
|
+
|
|
653
|
+
[**SiteRoleEntry**](SiteRoleEntry.md)
|
|
654
|
+
|
|
655
|
+
### Authorization
|
|
656
|
+
|
|
657
|
+
[basicAuth](../README.md#basicAuth)
|
|
658
|
+
|
|
659
|
+
### HTTP request headers
|
|
660
|
+
|
|
661
|
+
- **Content-Type**: application/json
|
|
662
|
+
- **Accept**: application/json
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
# **get_site_membership_request_for_person**
|
|
667
|
+
> SiteMembershipRequestEntry get_site_membership_request_for_person(person_idsite_id, , opts)
|
|
668
|
+
|
|
669
|
+
Get a site membership request
|
|
670
|
+
|
|
671
|
+
Gets the site membership request for site **siteId** for person **personId**, if one exists. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
|
672
|
+
|
|
673
|
+
### Example
|
|
674
|
+
```ruby
|
|
675
|
+
# load the gem
|
|
676
|
+
require 'alfresco_api'
|
|
677
|
+
# setup authorization
|
|
678
|
+
AlfrescoAPI.configure do |config|
|
|
679
|
+
# Configure HTTP basic authorization: basicAuth
|
|
680
|
+
config.username = 'YOUR USERNAME'
|
|
681
|
+
config.password = 'YOUR PASSWORD'
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
685
|
+
|
|
686
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
687
|
+
|
|
688
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
689
|
+
|
|
690
|
+
opts = {
|
|
691
|
+
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.
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
begin
|
|
695
|
+
#Get a site membership request
|
|
696
|
+
result = api_instance.get_site_membership_request_for_person(person_idsite_id, , opts)
|
|
697
|
+
p result
|
|
698
|
+
rescue AlfrescoAPI::ApiError => e
|
|
699
|
+
puts "Exception when calling SitesApi->get_site_membership_request_for_person: #{e}"
|
|
700
|
+
end
|
|
701
|
+
```
|
|
702
|
+
|
|
703
|
+
### Parameters
|
|
704
|
+
|
|
705
|
+
Name | Type | Description | Notes
|
|
706
|
+
------------- | ------------- | ------------- | -------------
|
|
707
|
+
**person_id** | **String**| The identifier of a person. |
|
|
708
|
+
**site_id** | **String**| The identifier of a site. |
|
|
709
|
+
**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]
|
|
710
|
+
|
|
711
|
+
### Return type
|
|
712
|
+
|
|
713
|
+
[**SiteMembershipRequestEntry**](SiteMembershipRequestEntry.md)
|
|
714
|
+
|
|
715
|
+
### Authorization
|
|
716
|
+
|
|
717
|
+
[basicAuth](../README.md#basicAuth)
|
|
718
|
+
|
|
719
|
+
### HTTP request headers
|
|
720
|
+
|
|
721
|
+
- **Content-Type**: application/json
|
|
722
|
+
- **Accept**: application/json
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
# **list_site_containers**
|
|
727
|
+
> SiteContainerPaging list_site_containers(site_id, , opts)
|
|
728
|
+
|
|
729
|
+
List site containers
|
|
730
|
+
|
|
731
|
+
Gets a list of containers for the site **siteId**.
|
|
732
|
+
|
|
733
|
+
### Example
|
|
734
|
+
```ruby
|
|
735
|
+
# load the gem
|
|
736
|
+
require 'alfresco_api'
|
|
737
|
+
# setup authorization
|
|
738
|
+
AlfrescoAPI.configure do |config|
|
|
739
|
+
# Configure HTTP basic authorization: basicAuth
|
|
740
|
+
config.username = 'YOUR USERNAME'
|
|
741
|
+
config.password = 'YOUR PASSWORD'
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
745
|
+
|
|
746
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
747
|
+
|
|
748
|
+
opts = {
|
|
749
|
+
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.
|
|
750
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
|
751
|
+
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.
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
begin
|
|
755
|
+
#List site containers
|
|
756
|
+
result = api_instance.list_site_containers(site_id, , opts)
|
|
757
|
+
p result
|
|
758
|
+
rescue AlfrescoAPI::ApiError => e
|
|
759
|
+
puts "Exception when calling SitesApi->list_site_containers: #{e}"
|
|
760
|
+
end
|
|
761
|
+
```
|
|
762
|
+
|
|
763
|
+
### Parameters
|
|
764
|
+
|
|
765
|
+
Name | Type | Description | Notes
|
|
766
|
+
------------- | ------------- | ------------- | -------------
|
|
767
|
+
**site_id** | **String**| The identifier of a site. |
|
|
768
|
+
**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]
|
|
769
|
+
**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]
|
|
770
|
+
**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]
|
|
771
|
+
|
|
772
|
+
### Return type
|
|
773
|
+
|
|
774
|
+
[**SiteContainerPaging**](SiteContainerPaging.md)
|
|
775
|
+
|
|
776
|
+
### Authorization
|
|
777
|
+
|
|
778
|
+
[basicAuth](../README.md#basicAuth)
|
|
779
|
+
|
|
780
|
+
### HTTP request headers
|
|
781
|
+
|
|
782
|
+
- **Content-Type**: application/json
|
|
783
|
+
- **Accept**: application/json
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
# **list_site_membership_requests_for_person**
|
|
788
|
+
> SiteMembershipRequestPaging list_site_membership_requests_for_person(person_id, opts)
|
|
789
|
+
|
|
790
|
+
List site membership requests
|
|
791
|
+
|
|
792
|
+
Gets a list of the current site membership requests for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
|
793
|
+
|
|
794
|
+
### Example
|
|
795
|
+
```ruby
|
|
796
|
+
# load the gem
|
|
797
|
+
require 'alfresco_api'
|
|
798
|
+
# setup authorization
|
|
799
|
+
AlfrescoAPI.configure do |config|
|
|
800
|
+
# Configure HTTP basic authorization: basicAuth
|
|
801
|
+
config.username = 'YOUR USERNAME'
|
|
802
|
+
config.password = 'YOUR PASSWORD'
|
|
803
|
+
end
|
|
804
|
+
|
|
805
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
806
|
+
|
|
807
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
808
|
+
|
|
809
|
+
opts = {
|
|
810
|
+
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.
|
|
811
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
|
812
|
+
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.
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
begin
|
|
816
|
+
#List site membership requests
|
|
817
|
+
result = api_instance.list_site_membership_requests_for_person(person_id, opts)
|
|
818
|
+
p result
|
|
819
|
+
rescue AlfrescoAPI::ApiError => e
|
|
820
|
+
puts "Exception when calling SitesApi->list_site_membership_requests_for_person: #{e}"
|
|
821
|
+
end
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
### Parameters
|
|
825
|
+
|
|
826
|
+
Name | Type | Description | Notes
|
|
827
|
+
------------- | ------------- | ------------- | -------------
|
|
828
|
+
**person_id** | **String**| The identifier of a person. |
|
|
829
|
+
**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]
|
|
830
|
+
**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]
|
|
831
|
+
**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]
|
|
832
|
+
|
|
833
|
+
### Return type
|
|
834
|
+
|
|
835
|
+
[**SiteMembershipRequestPaging**](SiteMembershipRequestPaging.md)
|
|
836
|
+
|
|
837
|
+
### Authorization
|
|
838
|
+
|
|
839
|
+
[basicAuth](../README.md#basicAuth)
|
|
840
|
+
|
|
841
|
+
### HTTP request headers
|
|
842
|
+
|
|
843
|
+
- **Content-Type**: application/json
|
|
844
|
+
- **Accept**: application/json
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
# **list_site_memberships**
|
|
849
|
+
> SiteMemberPaging list_site_memberships(site_id, , opts)
|
|
850
|
+
|
|
851
|
+
List site memberships
|
|
852
|
+
|
|
853
|
+
Gets a list of site memberships for site **siteId**.
|
|
854
|
+
|
|
855
|
+
### Example
|
|
856
|
+
```ruby
|
|
857
|
+
# load the gem
|
|
858
|
+
require 'alfresco_api'
|
|
859
|
+
# setup authorization
|
|
860
|
+
AlfrescoAPI.configure do |config|
|
|
861
|
+
# Configure HTTP basic authorization: basicAuth
|
|
862
|
+
config.username = 'YOUR USERNAME'
|
|
863
|
+
config.password = 'YOUR PASSWORD'
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
867
|
+
|
|
868
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
869
|
+
|
|
870
|
+
opts = {
|
|
871
|
+
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.
|
|
872
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
|
873
|
+
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.
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
begin
|
|
877
|
+
#List site memberships
|
|
878
|
+
result = api_instance.list_site_memberships(site_id, , opts)
|
|
879
|
+
p result
|
|
880
|
+
rescue AlfrescoAPI::ApiError => e
|
|
881
|
+
puts "Exception when calling SitesApi->list_site_memberships: #{e}"
|
|
882
|
+
end
|
|
883
|
+
```
|
|
884
|
+
|
|
885
|
+
### Parameters
|
|
886
|
+
|
|
887
|
+
Name | Type | Description | Notes
|
|
888
|
+
------------- | ------------- | ------------- | -------------
|
|
889
|
+
**site_id** | **String**| The identifier of a site. |
|
|
890
|
+
**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]
|
|
891
|
+
**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]
|
|
892
|
+
**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]
|
|
893
|
+
|
|
894
|
+
### Return type
|
|
895
|
+
|
|
896
|
+
[**SiteMemberPaging**](SiteMemberPaging.md)
|
|
897
|
+
|
|
898
|
+
### Authorization
|
|
899
|
+
|
|
900
|
+
[basicAuth](../README.md#basicAuth)
|
|
901
|
+
|
|
902
|
+
### HTTP request headers
|
|
903
|
+
|
|
904
|
+
- **Content-Type**: application/json
|
|
905
|
+
- **Accept**: application/json
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
# **list_site_memberships_for_person**
|
|
910
|
+
> SiteRolePaging list_site_memberships_for_person(person_id, opts)
|
|
911
|
+
|
|
912
|
+
List site memberships
|
|
913
|
+
|
|
914
|
+
Gets a list of site 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 **where** parameter to filter the returned sites by **visibility** or site **preset**. Example to filter by **visibility**, use any one of: ``` (visibility='PRIVATE') (visibility='PUBLIC') (visibility='MODERATED') ``` Example to filter by site **preset**: ``` (preset='site-dashboard') ``` The default sort order for the returned list is for sites to be sorted by ascending title. 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 * title * role
|
|
915
|
+
|
|
916
|
+
### Example
|
|
917
|
+
```ruby
|
|
918
|
+
# load the gem
|
|
919
|
+
require 'alfresco_api'
|
|
920
|
+
# setup authorization
|
|
921
|
+
AlfrescoAPI.configure do |config|
|
|
922
|
+
# Configure HTTP basic authorization: basicAuth
|
|
923
|
+
config.username = 'YOUR USERNAME'
|
|
924
|
+
config.password = 'YOUR PASSWORD'
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
928
|
+
|
|
929
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
930
|
+
|
|
931
|
+
opts = {
|
|
932
|
+
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.
|
|
933
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
|
934
|
+
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.
|
|
935
|
+
relations: ["relations_example"], # Array<String> | Use the relations parameter to include one or more related entities in a single response.
|
|
936
|
+
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.
|
|
937
|
+
where: "where_example", # String | A string to restrict the returned objects by using a predicate.
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
begin
|
|
941
|
+
#List site memberships
|
|
942
|
+
result = api_instance.list_site_memberships_for_person(person_id, opts)
|
|
943
|
+
p result
|
|
944
|
+
rescue AlfrescoAPI::ApiError => e
|
|
945
|
+
puts "Exception when calling SitesApi->list_site_memberships_for_person: #{e}"
|
|
946
|
+
end
|
|
947
|
+
```
|
|
948
|
+
|
|
949
|
+
### Parameters
|
|
950
|
+
|
|
951
|
+
Name | Type | Description | Notes
|
|
952
|
+
------------- | ------------- | ------------- | -------------
|
|
953
|
+
**person_id** | **String**| The identifier of a person. |
|
|
954
|
+
**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]
|
|
955
|
+
**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]
|
|
956
|
+
**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]
|
|
957
|
+
**relations** | [**Array<String>**](String.md)| Use the relations parameter to include one or more related entities in a single response. | [optional]
|
|
958
|
+
**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]
|
|
959
|
+
**where** | **String**| A string to restrict the returned objects by using a predicate. | [optional]
|
|
960
|
+
|
|
961
|
+
### Return type
|
|
962
|
+
|
|
963
|
+
[**SiteRolePaging**](SiteRolePaging.md)
|
|
964
|
+
|
|
965
|
+
### Authorization
|
|
966
|
+
|
|
967
|
+
[basicAuth](../README.md#basicAuth)
|
|
968
|
+
|
|
969
|
+
### HTTP request headers
|
|
970
|
+
|
|
971
|
+
- **Content-Type**: application/json
|
|
972
|
+
- **Accept**: application/json
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
# **list_sites**
|
|
977
|
+
> SitePaging list_sites(opts)
|
|
978
|
+
|
|
979
|
+
List sites
|
|
980
|
+
|
|
981
|
+
Gets a list of sites in this repository. You can use the **where** parameter to filter the returned sites by **visibility** or site **preset**. Example to filter by **visibility**, use any one of: ``` (visibility='PRIVATE') (visibility='PUBLIC') (visibility='MODERATED') ``` Example to filter by site **preset**: ``` (preset='site-dashboard') ``` The default sort order for the returned list is for sites to be sorted by ascending title. 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 * title * description You can use the **relations** parameter to include one or more related entities in a single response and so reduce network traffic. The entity types in Alfresco are organized in a tree structure. The **sites** entity has two children, **containers** and **members**. The following relations parameter returns all the container and member objects related to each site: ``` containers,members ```
|
|
982
|
+
|
|
983
|
+
### Example
|
|
984
|
+
```ruby
|
|
985
|
+
# load the gem
|
|
986
|
+
require 'alfresco_api'
|
|
987
|
+
# setup authorization
|
|
988
|
+
AlfrescoAPI.configure do |config|
|
|
989
|
+
# Configure HTTP basic authorization: basicAuth
|
|
990
|
+
config.username = 'YOUR USERNAME'
|
|
991
|
+
config.password = 'YOUR PASSWORD'
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
995
|
+
|
|
996
|
+
opts = {
|
|
997
|
+
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.
|
|
998
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
|
999
|
+
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.
|
|
1000
|
+
relations: ["relations_example"], # Array<String> | Use the relations parameter to include one or more related entities in a single response.
|
|
1001
|
+
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.
|
|
1002
|
+
where: "where_example", # String | A string to restrict the returned objects by using a predicate.
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
begin
|
|
1006
|
+
#List sites
|
|
1007
|
+
result = api_instance.list_sites(opts)
|
|
1008
|
+
p result
|
|
1009
|
+
rescue AlfrescoAPI::ApiError => e
|
|
1010
|
+
puts "Exception when calling SitesApi->list_sites: #{e}"
|
|
1011
|
+
end
|
|
1012
|
+
```
|
|
1013
|
+
|
|
1014
|
+
### Parameters
|
|
1015
|
+
|
|
1016
|
+
Name | Type | Description | Notes
|
|
1017
|
+
------------- | ------------- | ------------- | -------------
|
|
1018
|
+
**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]
|
|
1019
|
+
**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]
|
|
1020
|
+
**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]
|
|
1021
|
+
**relations** | [**Array<String>**](String.md)| Use the relations parameter to include one or more related entities in a single response. | [optional]
|
|
1022
|
+
**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]
|
|
1023
|
+
**where** | **String**| A string to restrict the returned objects by using a predicate. | [optional]
|
|
1024
|
+
|
|
1025
|
+
### Return type
|
|
1026
|
+
|
|
1027
|
+
[**SitePaging**](SitePaging.md)
|
|
1028
|
+
|
|
1029
|
+
### Authorization
|
|
1030
|
+
|
|
1031
|
+
[basicAuth](../README.md#basicAuth)
|
|
1032
|
+
|
|
1033
|
+
### HTTP request headers
|
|
1034
|
+
|
|
1035
|
+
- **Content-Type**: application/json
|
|
1036
|
+
- **Accept**: application/json
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
# **update_site**
|
|
1041
|
+
> SiteEntry update_site(site_id, site_body_update, opts)
|
|
1042
|
+
|
|
1043
|
+
Update a site
|
|
1044
|
+
|
|
1045
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Update the details for the given site **siteId**. Site Manager or otherwise a (site) admin can update title, description or visibility. Note: the id of a site cannot be updated once the site has been created.
|
|
1046
|
+
|
|
1047
|
+
### Example
|
|
1048
|
+
```ruby
|
|
1049
|
+
# load the gem
|
|
1050
|
+
require 'alfresco_api'
|
|
1051
|
+
# setup authorization
|
|
1052
|
+
AlfrescoAPI.configure do |config|
|
|
1053
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1054
|
+
config.username = 'YOUR USERNAME'
|
|
1055
|
+
config.password = 'YOUR PASSWORD'
|
|
1056
|
+
end
|
|
1057
|
+
|
|
1058
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
1059
|
+
|
|
1060
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
1061
|
+
|
|
1062
|
+
site_body_update = AlfrescoAPI::SiteBodyUpdate.new # SiteBodyUpdate | The site information to update.
|
|
1063
|
+
|
|
1064
|
+
opts = {
|
|
1065
|
+
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.
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
begin
|
|
1069
|
+
#Update a site
|
|
1070
|
+
result = api_instance.update_site(site_id, site_body_update, opts)
|
|
1071
|
+
p result
|
|
1072
|
+
rescue AlfrescoAPI::ApiError => e
|
|
1073
|
+
puts "Exception when calling SitesApi->update_site: #{e}"
|
|
1074
|
+
end
|
|
1075
|
+
```
|
|
1076
|
+
|
|
1077
|
+
### Parameters
|
|
1078
|
+
|
|
1079
|
+
Name | Type | Description | Notes
|
|
1080
|
+
------------- | ------------- | ------------- | -------------
|
|
1081
|
+
**site_id** | **String**| The identifier of a site. |
|
|
1082
|
+
**site_body_update** | [**SiteBodyUpdate**](SiteBodyUpdate.md)| The site information to update. |
|
|
1083
|
+
**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]
|
|
1084
|
+
|
|
1085
|
+
### Return type
|
|
1086
|
+
|
|
1087
|
+
[**SiteEntry**](SiteEntry.md)
|
|
1088
|
+
|
|
1089
|
+
### Authorization
|
|
1090
|
+
|
|
1091
|
+
[basicAuth](../README.md#basicAuth)
|
|
1092
|
+
|
|
1093
|
+
### HTTP request headers
|
|
1094
|
+
|
|
1095
|
+
- **Content-Type**: application/json
|
|
1096
|
+
- **Accept**: application/json
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
# **update_site_membership**
|
|
1101
|
+
> SiteMemberEntry update_site_membership(site_id, person_idsite_membership_body_update, opts)
|
|
1102
|
+
|
|
1103
|
+
Update a site membership
|
|
1104
|
+
|
|
1105
|
+
Update the membership of person **personId** in site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager
|
|
1106
|
+
|
|
1107
|
+
### Example
|
|
1108
|
+
```ruby
|
|
1109
|
+
# load the gem
|
|
1110
|
+
require 'alfresco_api'
|
|
1111
|
+
# setup authorization
|
|
1112
|
+
AlfrescoAPI.configure do |config|
|
|
1113
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1114
|
+
config.username = 'YOUR USERNAME'
|
|
1115
|
+
config.password = 'YOUR PASSWORD'
|
|
1116
|
+
end
|
|
1117
|
+
|
|
1118
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
1119
|
+
|
|
1120
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
1121
|
+
|
|
1122
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
1123
|
+
|
|
1124
|
+
site_membership_body_update = AlfrescoAPI::SiteMembershipBodyUpdate.new # SiteMembershipBodyUpdate | The persons new role
|
|
1125
|
+
|
|
1126
|
+
opts = {
|
|
1127
|
+
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.
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
begin
|
|
1131
|
+
#Update a site membership
|
|
1132
|
+
result = api_instance.update_site_membership(site_id, person_idsite_membership_body_update, opts)
|
|
1133
|
+
p result
|
|
1134
|
+
rescue AlfrescoAPI::ApiError => e
|
|
1135
|
+
puts "Exception when calling SitesApi->update_site_membership: #{e}"
|
|
1136
|
+
end
|
|
1137
|
+
```
|
|
1138
|
+
|
|
1139
|
+
### Parameters
|
|
1140
|
+
|
|
1141
|
+
Name | Type | Description | Notes
|
|
1142
|
+
------------- | ------------- | ------------- | -------------
|
|
1143
|
+
**site_id** | **String**| The identifier of a site. |
|
|
1144
|
+
**person_id** | **String**| The identifier of a person. |
|
|
1145
|
+
**site_membership_body_update** | [**SiteMembershipBodyUpdate**](SiteMembershipBodyUpdate.md)| The persons new role |
|
|
1146
|
+
**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]
|
|
1147
|
+
|
|
1148
|
+
### Return type
|
|
1149
|
+
|
|
1150
|
+
[**SiteMemberEntry**](SiteMemberEntry.md)
|
|
1151
|
+
|
|
1152
|
+
### Authorization
|
|
1153
|
+
|
|
1154
|
+
[basicAuth](../README.md#basicAuth)
|
|
1155
|
+
|
|
1156
|
+
### HTTP request headers
|
|
1157
|
+
|
|
1158
|
+
- **Content-Type**: application/json
|
|
1159
|
+
- **Accept**: application/json
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
# **update_site_membership_request_for_person**
|
|
1164
|
+
> SiteMembershipRequestEntry update_site_membership_request_for_person(person_idsite_id, site_membership_request_body_update, opts)
|
|
1165
|
+
|
|
1166
|
+
Update a site membership request
|
|
1167
|
+
|
|
1168
|
+
Updates the message for the site membership request to site **siteId** for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
|
1169
|
+
|
|
1170
|
+
### Example
|
|
1171
|
+
```ruby
|
|
1172
|
+
# load the gem
|
|
1173
|
+
require 'alfresco_api'
|
|
1174
|
+
# setup authorization
|
|
1175
|
+
AlfrescoAPI.configure do |config|
|
|
1176
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1177
|
+
config.username = 'YOUR USERNAME'
|
|
1178
|
+
config.password = 'YOUR PASSWORD'
|
|
1179
|
+
end
|
|
1180
|
+
|
|
1181
|
+
api_instance = AlfrescoAPI::SitesApi.new
|
|
1182
|
+
|
|
1183
|
+
person_id = "person_id_example" # String | The identifier of a person.
|
|
1184
|
+
|
|
1185
|
+
site_id = "site_id_example" # String | The identifier of a site.
|
|
1186
|
+
|
|
1187
|
+
site_membership_request_body_update = AlfrescoAPI::SiteMembershipRequestBodyUpdate.new # SiteMembershipRequestBodyUpdate | The new message to display
|
|
1188
|
+
|
|
1189
|
+
opts = {
|
|
1190
|
+
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.
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
begin
|
|
1194
|
+
#Update a site membership request
|
|
1195
|
+
result = api_instance.update_site_membership_request_for_person(person_idsite_id, site_membership_request_body_update, opts)
|
|
1196
|
+
p result
|
|
1197
|
+
rescue AlfrescoAPI::ApiError => e
|
|
1198
|
+
puts "Exception when calling SitesApi->update_site_membership_request_for_person: #{e}"
|
|
1199
|
+
end
|
|
1200
|
+
```
|
|
1201
|
+
|
|
1202
|
+
### Parameters
|
|
1203
|
+
|
|
1204
|
+
Name | Type | Description | Notes
|
|
1205
|
+
------------- | ------------- | ------------- | -------------
|
|
1206
|
+
**person_id** | **String**| The identifier of a person. |
|
|
1207
|
+
**site_id** | **String**| The identifier of a site. |
|
|
1208
|
+
**site_membership_request_body_update** | [**SiteMembershipRequestBodyUpdate**](SiteMembershipRequestBodyUpdate.md)| The new message to display |
|
|
1209
|
+
**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]
|
|
1210
|
+
|
|
1211
|
+
### Return type
|
|
1212
|
+
|
|
1213
|
+
[**SiteMembershipRequestEntry**](SiteMembershipRequestEntry.md)
|
|
1214
|
+
|
|
1215
|
+
### Authorization
|
|
1216
|
+
|
|
1217
|
+
[basicAuth](../README.md#basicAuth)
|
|
1218
|
+
|
|
1219
|
+
### HTTP request headers
|
|
1220
|
+
|
|
1221
|
+
- **Content-Type**: application/json
|
|
1222
|
+
- **Accept**: application/json
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|