def getOwned(self, blogId: Blog, creatorId: auth(User), typeId: PostType = None, offset: int = None, limit: int = None, q: QBlogPost = None) -> Iter(BlogPost): '''
class MetaData(Entity): ''' Provides the meta data that is extracted based on the content. ''' Name = str Type = str Content = Reference Thumbnail = Reference SizeInBytes = int Creator = User Creator = auth(Creator) # This is redundant, is just to keep IDE hinting. CreatedOn = datetime
class Blog(Entity): ''' Provides the blog model. ''' Type = BlogType Language = LanguageEntity Creator = User; Creator = auth(Creator) # This is redundant, is just to keep IDE hinting. Title = str Description = str OutputLink = str CreatedOn = datetime LiveOn = datetime LastUpdatedOn = datetime ClosedOn = datetime UpdatedOn = datetime
class Post(Entity): ''' Provides the post message model. ''' Type = PostType Creator = auth(User) Author = Collaborator IsModified = bool Meta = str ContentPlain = str Content = str CreatedOn = datetime PublishedOn = datetime UpdatedOn = datetime DeletedOn = datetime AuthorName = str
def delete(self, adminId:auth(User.Id), user:User) -> bool: '''
def insert(self, adminId:auth(User.Id), user:User) -> User.Id: '''
def getAll(self, adminId:auth(User.Id), offset:int=None, limit:int=LIMIT_DEFAULT, detailed:bool=True, q:QUser=None) -> Iter(User): '''
def getById(self, adminId:auth(User.Id), id:User.Id) -> User: '''
def insert(self, userId: auth(User.Id), content: Content) -> MetaData.Id: '''
def getLiveWhereAdmin(self, adminId:auth(User), languageId:LanguageEntity=None, q:QBlog=None) -> Iter(Blog): '''
def getAll(self, languageId:LanguageEntity=None, adminId:auth(User)=None, offset:int=None, limit:int=None, detailed:bool=True, q:QBlog=None) -> Iter(Blog): '''
def getOwned(self, blogId:Blog, creatorId:auth(User), typeId:PostType=None, offset:int=None, limit:int=None, q:QBlogPost=None) -> Iter(BlogPost): '''
def putLive(self, adminId:auth(User.Id), blogId:Blog.Id): '''
def getAll(self, languageId:LanguageEntity=None, userId:auth(User)=None, offset:int=None, limit:int=None, detailed:bool=True, q:QBlog=None) -> Iter(Blog): '''
def update(self, adminId:auth(User.Id), user:User) -> bool: '''
def changePassword(self, adminId:auth(User.Id), user:UserPassword): '''
def insert(self, userId:auth(User.Id), content:Content) -> MetaData.Id: '''