|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProjectBrokerManager
| Field Summary | |
|---|---|
static java.lang.String |
CUSTOMFIELD_LIST_DELIMITER
|
| Method Summary | |
|---|---|
boolean |
canBeCancelEnrollmentBy(Identity identity,
Project project,
ProjectBrokerModuleConfiguration moduleConfig)
Return true when the project can be de-selected by an identity. |
boolean |
canBeProjectSelectedBy(Identity identity,
Project project,
ProjectBrokerModuleConfiguration moduleConfig,
int nbrSelectedProjects,
boolean isParticipantInAnyProject)
Return true when the project can be selected by an identity. |
boolean |
cancelProjectEnrollmentOf(Identity identity,
Project projectAt,
ProjectBrokerModuleConfiguration moduleConfig)
Remove certain identity as participant or candidate of a project (depending on project-broker configuration). |
ProjectBroker |
createAndSaveProjectBroker()
Creates a new project-broker and save it. |
Project |
createAndSaveProjectFor(java.lang.String projectTitle,
java.lang.String description,
java.lang.Long projectBrokerId,
BusinessGroup projectGroup)
Create and save a new project. |
void |
deleteProject(Project project,
boolean deleteGroup,
CourseEnvironment courseEnv,
CourseNode cNode)
Delete a project. |
void |
deleteProjectBroker(java.lang.Long projectBrokerId,
CourseEnvironment courseEnvironment,
CourseNode courseNode)
Delete a project-broker and his projects and groups. |
boolean |
enrollProjectParticipant(Identity identity,
Project projectAt,
ProjectBrokerModuleConfiguration moduleConfig,
int nbrSelectedProjects,
boolean isParticipantInAnyProject)
Enroll certain identity as participant or candidate of a project (depending on project-broker configuration). |
boolean |
existProjectName(java.lang.Long projectBrokerId,
java.lang.String newProjectTitle)
Return true when a project with the same title already exist. |
java.lang.String |
getAttachmentBasePathRelToFolderRoot(CourseEnvironment courseEnvironment,
CourseNode courseNode)
Get attachment-folder relative path (without project-id). |
java.lang.String |
getAttamchmentRelativeRootPath(Project project,
CourseEnvironment courseEnv,
CourseNode courseNode)
Get attachment-file relative path. |
int |
getNbrSelectedProjects(Identity identity,
java.util.List<Project> projectList)
Get the number of total selected project for certain identity. |
java.lang.Long |
getProjectBrokerId(CoursePropertyManager cpm,
CourseNode courseNode)
Get saved project-broker-id. |
java.util.List<Project> |
getProjectListBy(java.lang.Long projectBrokerId)
Returns a list of projects for certain project-broker. |
int |
getSelectedPlaces(Project project)
Get number of selected places for certain project. |
java.lang.String |
getStateFor(Project project,
Identity identity,
ProjectBrokerModuleConfiguration moduleConfig)
Get the state [STATE_ASSIGNED_ACCOUNT_MANAGER | STATE_NOT_ASSIGNED_ACCOUNT_MANAGER | STATE_NOT_ASSIGNED_ACCOUNT_MANAGER_NO_CANDIDATE | STATE_FINAL_ENROLLED | STATE_PROV_ENROLLED | STATE_COMPLETE | STATE_NOT_ASSIGNED | STATE_ENROLLED ] of a project |
boolean |
isCustomFieldValueValid(java.lang.String value,
java.lang.String string)
Return true when the custom-field value is one of possible-values (drop-down-mode) or when it could be any value (input field). |
boolean |
isParticipantInAnyProject(Identity identity,
java.util.List<Project> projectList)
Return true when an identity is participant in any project of a project-broker. |
boolean |
isProjectManager(Identity identity,
Project project)
Check if a certain identity has the role of project-manager for certain project. |
boolean |
isProjectParticipant(Identity identity,
Project project)
Check if a certain identity is a participant of a project. |
void |
saveAttachedFile(Project project,
java.lang.String fileName,
VFSLeaf uploadedItem,
CourseEnvironment courseEnv,
CourseNode cNode)
Save attachment file in the attachment-folder of a project. |
void |
saveProjectBrokerId(java.lang.Long projectBrokerId,
CoursePropertyManager cpm,
CourseNode courseNode)
Save project-broker-id. |
void |
setProjectState(Project project,
java.lang.String state)
Set project-state [STATE_NOT_ASSIGNED | STATE_ASSIGNED]. |
void |
signOutFormAllCandidateList(java.util.List<Identity> chosenIdentities,
java.lang.Long projectBrokerId)
Remove identities from all projects as candidates. |
void |
updateProject(Project project)
Update and save an existing project. |
| Methods inherited from interface org.olat.group.DeletableGroupData |
|---|
checkIfReferenced, deleteGroupDataFor |
| Field Detail |
|---|
static final java.lang.String CUSTOMFIELD_LIST_DELIMITER
| Method Detail |
|---|
java.util.List<Project> getProjectListBy(java.lang.Long projectBrokerId)
projectBrokerId -
int getSelectedPlaces(Project project)
project -
ProjectBroker createAndSaveProjectBroker()
boolean isProjectManager(Identity identity,
Project project)
identity - project -
void updateProject(Project project)
project -
Project createAndSaveProjectFor(java.lang.String projectTitle,
java.lang.String description,
java.lang.Long projectBrokerId,
BusinessGroup projectGroup)
projectTitle - description - projectBrokerId - projectGroup -
boolean isProjectParticipant(Identity identity,
Project project)
identity - project -
boolean enrollProjectParticipant(Identity identity,
Project projectAt,
ProjectBrokerModuleConfiguration moduleConfig,
int nbrSelectedProjects,
boolean isParticipantInAnyProject)
identity - projectAt - moduleConfig - nbrSelectedProjects - isParticipantInAnyProject -
boolean cancelProjectEnrollmentOf(Identity identity,
Project projectAt,
ProjectBrokerModuleConfiguration moduleConfig)
identity - projectAt - moduleConfig -
void deleteProject(Project project,
boolean deleteGroup,
CourseEnvironment courseEnv,
CourseNode cNode)
project - deleteGroup - true: project group will be deleted toocourseEnv - cNode -
int getNbrSelectedProjects(Identity identity,
java.util.List<Project> projectList)
identity - projectList -
boolean canBeProjectSelectedBy(Identity identity,
Project project,
ProjectBrokerModuleConfiguration moduleConfig,
int nbrSelectedProjects,
boolean isParticipantInAnyProject)
identity - project - moduleConfig - nbrSelectedProjects - isParticipantInAnyProject -
boolean canBeCancelEnrollmentBy(Identity identity,
Project project,
ProjectBrokerModuleConfiguration moduleConfig)
identity - project - moduleConfig -
void signOutFormAllCandidateList(java.util.List<Identity> chosenIdentities,
java.lang.Long projectBrokerId)
chosenIdentities - projectBrokerId -
java.lang.String getStateFor(Project project,
Identity identity,
ProjectBrokerModuleConfiguration moduleConfig)
project - identity - moduleConfig -
void deleteProjectBroker(java.lang.Long projectBrokerId,
CourseEnvironment courseEnvironment,
CourseNode courseNode)
projectBrokerId - courseEnvironment - courseNode -
void saveAttachedFile(Project project,
java.lang.String fileName,
VFSLeaf uploadedItem,
CourseEnvironment courseEnv,
CourseNode cNode)
project - fileName - uploadedItem - courseEnv - cNode -
boolean isCustomFieldValueValid(java.lang.String value,
java.lang.String string)
value - string -
java.lang.String getAttamchmentRelativeRootPath(Project project,
CourseEnvironment courseEnv,
CourseNode courseNode)
project - courseEnv - courseNode -
void setProjectState(Project project,
java.lang.String state)
project - state -
boolean isParticipantInAnyProject(Identity identity,
java.util.List<Project> projectList)
identity - projectList -
java.lang.Long getProjectBrokerId(CoursePropertyManager cpm,
CourseNode courseNode)
cpm - courseNode -
void saveProjectBrokerId(java.lang.Long projectBrokerId,
CoursePropertyManager cpm,
CourseNode courseNode)
projectBrokerId - cpm - courseNode -
boolean existProjectName(java.lang.Long projectBrokerId,
java.lang.String newProjectTitle)
projectBrokerId - newProjectTitle -
java.lang.String getAttachmentBasePathRelToFolderRoot(CourseEnvironment courseEnvironment,
CourseNode courseNode)
courseEnvironment - courseNode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||