Group

@Entity
open class Group : PandoroItem

The Group class is useful to create a Pandoro's Group

Author

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor()
Default constructor
constructor(id: String, name: String, logo: String, creationDate: Long, author: PandoroUser, description: String, groupMembers: ArrayList<GroupMember>, projects: ArrayList<Project>)
Constructor to init a Group object

Properties

Link copied to clipboard
author the author of the group
Link copied to clipboard
private val creationDate: Long
creationDate when the group has been created
Link copied to clipboard
description the description of the group
Link copied to clipboard
Link copied to clipboard
groupMembers the list of the groupMembers of the group
Link copied to clipboard
protected val hItem: JsonHelper
Link copied to clipboard
protected val id: String
Link copied to clipboard
Link copied to clipboard
protected val logo: String
logo the logo of the group
Link copied to clipboard
protected val name: String
name of the item
Link copied to clipboard
private val projects: List<Project>
projects the list of the projects managed by the group
Link copied to clipboard
protected val timeFormatter: TimeFormatter

Functions

Link copied to clipboard
open fun getCreation(): Long
Method to get creationDate instance
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getLogo(): String
Method to get logo instance
Link copied to clipboard
Method to get groupMembers instance
Link copied to clipboard
open fun getName(): String
Method to get name instance
Link copied to clipboard
Method to get projects instance
Link copied to clipboard
open fun getProjectsIds(exclude: List<String>): List<String>
Method to get the list of identifier from the projects instance
Link copied to clipboard
open fun isUserAdmin(user: PandoroUser): Boolean
Method to check if a user is an ADMIN of the group
Link copied to clipboard
Method to check if a user is a MAINTAINER of the group
Link copied to clipboard
open fun toString(): String