ProjectManager

The ProjectManager class is useful to give the base utilities to work with project database operations

Author

N7ghtm4r3 - Tecknobit

See also

Inheritors

Constructors

Link copied to clipboard
@Autowired
protected constructor(projectsHelper: ProjectsHelper)
Constructor to init the ProjectManager manager

Properties

Link copied to clipboard
protected open var currentProject: Project
currentProject the current project in use
Link copied to clipboard
protected open var jsonHelper: JsonHelper
Link copied to clipboard
protected val mantis: Mantis
Link copied to clipboard
protected open var me: T
Link copied to clipboard
Link copied to clipboard
projectsHelper helper to manage the project database operations
Link copied to clipboard
open var resourcesProvider: ResourcesProvider
Link copied to clipboard
val RESPONSE_SUCCESSFUL_MESSAGE: String = "operation_executed_successfully_key"
Link copied to clipboard
protected open var serverProtector: ServerProtector
Link copied to clipboard
protected open var usersRepository: EquinoxUsersRepository<T>
Link copied to clipboard
val WRONG_PROCEDURE_MESSAGE: String = "wrong_procedure_key"

Functions

Link copied to clipboard
protected open fun amIProjectMember(userId: String, projectId: String): Boolean
Method to get whether the user who made a request on server is an authorized member of a project
Link copied to clipboard
protected open fun failedResponse(error: String): String
Link copied to clipboard
Link copied to clipboard
open fun initEquinoxEnvironment(storagePath: String, saveMessage: String, context: Class<out Any>, args: Array<String>, customSubDirectories: Array<String>)
Link copied to clipboard
protected open fun isAuthorizedUser(userId: String, projectId: String): Boolean
Method to get whether the user who made a request on server is an authorized member to make operations on the checked project such upload asset or promote releases, so is the author or a Vendor
Link copied to clipboard
protected open fun isMe(id: String, token: String): Boolean
Link copied to clipboard
protected open fun isProjectAuthor(project: Project, userId: String): Boolean
protected open fun isProjectAuthor(userId: String, projectId: String): Boolean
Method to get whether the user who made a request on server is the author of the checked project
Link copied to clipboard
protected open fun isUserQualified(userId: String, projectId: String): Boolean
Method to get whether the user who made a request on server is a qualified member to make operations on the checked project such comment release, so is a Customer
Link copied to clipboard
protected open fun <V> loadJsonHelper(payload: Map<String, V>)
Link copied to clipboard
protected open fun successResponse(): String
protected open fun <V> successResponse(value: V): HashMap<String, V>