PostsLogicInterface
interface PostsLogicInterface
Interface PostLogicInterface
Methods
No description
Returns details to a post. A post is uniquely identified by a hash of the corresponding resource and a username.
Removes the given post - identified by the connected resource's hash - from the user.
Updates the post(s) in the database.
Adds a document to a post.
Adds a document to a post.
No description
Deletes an existing document. If the resourceHash is given, the document is assumed to be connected to the corresponding resource (identified by the user name in the document). Otherwise the document is independent of any post.
Details
at line 65
RESTClient
getPosts(string $resourceType = Config\Resourcetype::BIBTEX, string $grouping = Config\Grouping::USER, string $groupingName = '', array $tags = array(), string $resourceHash = '', string $search = '', string $format = 'xml', int $start, int $end = 20)
at line 77
RESTClient
getPostDetails($userName, $resourceHash)
Returns details to a post. A post is uniquely identified by a hash of the corresponding resource and a username.
at line 88
RESTClient
deletePosts(string $userName, string $resourceHash)
Removes the given post - identified by the connected resource's hash - from the user.
at line 100
RESTClient
createPosts(Post|Posts $posts, string $userName)
POST /api/users/[username]/posts
Add post(s) to an user's collection.
at line 112
RESTClient
updatePosts(ModelObject $posts, string $userName, string $resourceHash)
Updates the post(s) in the database.
at line 124
RESTClient
createDocument(string $filePath, string $resourceHash, string $userName)
Adds a document to a post.
at line 137
RESTClient
changeDocumentName(string $filePath, string $resourceHash, string $userName, Document $document)
Adds a document to a post.
at line 149
RESTClient
getDocumentFile(string $userName, string $resourceHash, string $fileName, string $type = Config\DocumentType::FILE)
at line 164
RESTClient
deleteDocument(string $userName, string $resourceHash, string $fileName)
Deletes an existing document. If the resourceHash is given, the document is assumed to be connected to the corresponding resource (identified by the user name in the document). Otherwise the document is independent of any post.