|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ControllerUtil
| Method Summary | |
|---|---|
javax.mail.internet.MimeMultipart |
getMimeMultipartMessageBody(String plainText,
String html)
Makes MimeMultipart with a plain text and html version of the mail |
Team |
getTeam(javax.servlet.http.HttpServletRequest request)
Get the team from the HttpServletRequest request. |
Team |
getTeamById(String teamId)
Get the team from the String teamId. |
boolean |
hasUserAdministrativePrivileges(nl.surfnet.coin.api.client.domain.Person person,
String teamId)
Checks if the current user has administrative privileges (whether he is admin OR manager) for a given team. |
boolean |
hasUserAdminPrivileges(nl.surfnet.coin.api.client.domain.Person person,
String teamId)
Checks if the current user has admin privileges for a given team. |
boolean |
isPersonMemberOfTeam(String personId,
Team team)
Check if a Person is member of the given Team |
| Method Detail |
|---|
Team getTeam(javax.servlet.http.HttpServletRequest request)
HttpServletRequest request.
request - the HttpServletRequest
Team team
RuntimeException - if the team cannot be foundTeam getTeamById(String teamId)
String teamId.
teamId - the String teamId
Team team
RuntimeException - if the team cannot be found
boolean hasUserAdministrativePrivileges(nl.surfnet.coin.api.client.domain.Person person,
String teamId)
person - PersonteamId - String the team Id for which the person's privileges are checked
boolean true/code> if the user is admin AND/OR manager false if the user isn't
boolean hasUserAdminPrivileges(nl.surfnet.coin.api.client.domain.Person person,
String teamId)
person - PersonteamId - String the team Id for which the person's privileges are checked
boolean true/code> if the user is admin AND/OR manager false if the user isn't
boolean isPersonMemberOfTeam(String personId,
Team team)
Person is member of the given Team
personId - String the person identifierteam - Team the team
javax.mail.internet.MimeMultipart getMimeMultipartMessageBody(String plainText,
String html)
throws javax.mail.MessagingException
MimeMultipart with a plain text and html version of the mail
plainText - contents of the plain text part of the mailhtml - contents of the html part of the mail
{@link - MessagingException} if making the multipart fails
javax.mail.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||