@Service public class SessionServiceImpl extends Object implements SessionService, org.springframework.web.context.ServletContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SessionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMultimedia(long sessionId,
org.springframework.web.multipart.MultipartFile file) |
void |
addPresentation(long sessionId,
org.springframework.web.multipart.MultipartFile file) |
ConferenceUser |
addSessionChair(long sessionId,
long userId) |
ConferenceUser |
addSessionChair(long sessionId,
long userId,
boolean sendEmail) |
ConferenceUser |
addSessionChair(long sessionId,
String displayName,
String email) |
ConferenceUser |
addSessionNonChair(long sessionId,
long userId) |
ConferenceUser |
addSessionNonChair(long sessionId,
String displayName,
String email) |
Session |
createOrUpdateSession(ConferenceUser user,
SessionForm sessionForm) |
void |
createOrUpdateSessionTelephony(long sessionId,
SessionTelephony telephony) |
void |
deleteMultimedia(long sessionId,
long... multimediaIds) |
void |
deletePresentation(long sessionId) |
void |
deleteSessionTelephony(long sessionId) |
void |
deleteSessionUrl(ConferenceUser user,
Session session) |
Set<Session> |
getAllSessions() |
String |
getOrCreateSessionUrl(ConferenceUser user,
Session session) |
String |
getOrCreateSessionUrl(ConferenceUser user,
Session session,
boolean forceFetch) |
Session |
getSession(long sessionId) |
Set<ConferenceUser> |
getSessionChairs(Session session)
A user needs "edit" to view the set of session chairs but we don't want the call to fail
if they only have "view" permission.
|
Set<Multimedia> |
getSessionMultimedia(Session session)
A user needs "edit" and ROLE_FULL_ACCESS to view the set of session multemedia
but we don't want the call to fail if they only have "view" permission.
|
Set<ConferenceUser> |
getSessionNonChairs(Session session)
A user needs "edit" to view the set of session non chairs but we don't want the call to fail
if they only have "view" permission.
|
SessionTelephony |
getSessionTelephony(Session session) |
boolean |
isSessionParticipant(Session session,
ConferenceUser user) |
void |
populateLaunchUrl(ConferenceUser user,
Session session) |
void |
removeSession(long sessionId) |
void |
removeSessionChairs(long sessionId,
boolean sendEmail,
long... userIds) |
void |
removeSessionChairs(long sessionId,
Iterable<ConferenceUser> users) |
void |
removeSessionChairs(long sessionId,
Iterable<ConferenceUser> users,
boolean sendCancelEmail) |
void |
removeSessionChairs(long sessionId,
long... userIds) |
void |
removeSessionNonChairs(long sessionId,
boolean sendEmail,
long... userIds) |
void |
removeSessionNonChairs(long sessionId,
Iterable<ConferenceUser> users) |
void |
removeSessionNonChairs(long sessionId,
Iterable<ConferenceUser> users,
boolean sendEmail) |
void |
removeSessionNonChairs(long sessionId,
long... userIds) |
void |
setConferenceUserDao(ConferenceUserDao conferenceUserDao) |
void |
setConferenceUserService(ConferenceUserService conferenceUserService) |
void |
setMailTemplateService(MailTemplateService mailService) |
void |
setMultimediaDao(MultimediaDao multimediaDao) |
void |
setMultimediaWSDao(MultimediaWSDao multimediaWSDao) |
void |
setPresentationDao(PresentationDao presentationDao) |
void |
setPresentationWSDao(PresentationWSDao presentationWSDao) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
setSessionDao(SessionDao sessionDao) |
void |
setSessionTelephonyDao(SessionTelephonyDao dao) |
void |
setSessionWSDao(SessionWSDao value) |
void |
setUserSessionUrlDao(UserSessionUrlDao dao) |
ConferenceUser |
updateRole(long sessionId,
long userId,
ConferenceUser.Roles newRole) |
@Autowired public void setMailTemplateService(MailTemplateService mailService)
@Autowired public void setUserSessionUrlDao(UserSessionUrlDao dao)
@Autowired public void setPresentationDao(PresentationDao presentationDao)
@Autowired public void setMultimediaDao(MultimediaDao multimediaDao)
@Autowired public void setConferenceUserDao(ConferenceUserDao conferenceUserDao)
@Autowired public void setConferenceUserService(ConferenceUserService conferenceUserService)
@Autowired public void setSessionDao(SessionDao sessionDao)
@Autowired public void setSessionWSDao(SessionWSDao value)
@Autowired public void setMultimediaWSDao(MultimediaWSDao multimediaWSDao)
@Autowired public void setPresentationWSDao(PresentationWSDao presentationWSDao)
@Autowired public void setSessionTelephonyDao(SessionTelephonyDao dao)
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAware@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'view\')") @PostFilter(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'edit\')") public Set<ConferenceUser> getSessionChairs(Session session)
getSessionChairs in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'view\')") public boolean isSessionParticipant(Session session, ConferenceUser user)
isSessionParticipant in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'view\')") @Transactional public String getOrCreateSessionUrl(ConferenceUser user, Session session)
getOrCreateSessionUrl in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'view\')") @Transactional public String getOrCreateSessionUrl(ConferenceUser user, Session session, boolean forceFetch)
getOrCreateSessionUrl in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'view\')") @Transactional public void deleteSessionUrl(ConferenceUser user, Session session)
deleteSessionUrl in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'view\')") public void populateLaunchUrl(ConferenceUser user, Session session)
populateLaunchUrl in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'view\')") @PostFilter(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'edit\')") public Set<ConferenceUser> getSessionNonChairs(Session session)
getSessionNonChairs in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'view\')") @PostFilter(value="hasRole(\'ROLE_ADMIN\') || (hasRole(\'ROLE_FULL_ACCESS\') && hasPermission(#session, \'edit\'))") public Set<Multimedia> getSessionMultimedia(Session session)
getSessionMultimedia in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'view\')") public Session getSession(long sessionId)
getSession in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") public Set<Session> getAllSessions()
getAllSessions in interface SessionService@Transactional(noRollbackFor={org.springframework.ws.client.WebServiceClientException.class,org.springframework.oxm.XmlMappingException.class})
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')")
public void removeSession(long sessionId)
removeSession in interface SessionService@Transactional @PreAuthorize(value="#sessionForm.newSession || hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionForm.sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')") public Session createOrUpdateSession(ConferenceUser user, SessionForm sessionForm)
createOrUpdateSession in interface SessionService@Transactional @PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')") public ConferenceUser addSessionChair(long sessionId, String displayName, String email)
addSessionChair in interface SessionService@Transactional @PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')") public ConferenceUser updateRole(long sessionId, long userId, ConferenceUser.Roles newRole)
updateRole in interface SessionService@Transactional @PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')") public ConferenceUser addSessionChair(long sessionId, long userId, boolean sendEmail)
addSessionChair in interface SessionService@Transactional @PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')") public ConferenceUser addSessionChair(long sessionId, long userId)
addSessionChair in interface SessionService@Transactional
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')")
public void removeSessionChairs(long sessionId,
boolean sendEmail,
long... userIds)
removeSessionChairs in interface SessionService@Transactional
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')")
public void removeSessionChairs(long sessionId,
long... userIds)
removeSessionChairs in interface SessionService@Transactional
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')")
public void removeSessionChairs(long sessionId,
Iterable<ConferenceUser> users)
removeSessionChairs in interface SessionService@Transactional
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')")
public void removeSessionChairs(long sessionId,
Iterable<ConferenceUser> users,
boolean sendCancelEmail)
removeSessionChairs in interface SessionService@Transactional @PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')") public ConferenceUser addSessionNonChair(long sessionId, String displayName, String email)
addSessionNonChair in interface SessionService@Transactional @PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')") public ConferenceUser addSessionNonChair(long sessionId, long userId)
addSessionNonChair in interface SessionService@Transactional
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')")
public void removeSessionNonChairs(long sessionId,
long... userIds)
removeSessionNonChairs in interface SessionService@Transactional
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')")
public void removeSessionNonChairs(long sessionId,
boolean sendEmail,
long... userIds)
removeSessionNonChairs in interface SessionService@Transactional
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')")
public void removeSessionNonChairs(long sessionId,
Iterable<ConferenceUser> users)
removeSessionNonChairs in interface SessionService@Transactional
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')")
public void removeSessionNonChairs(long sessionId,
Iterable<ConferenceUser> users,
boolean sendEmail)
removeSessionNonChairs in interface SessionService@Transactional
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || (hasRole(\'ROLE_FULL_ACCESS\') && hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\'))")
public void addMultimedia(long sessionId,
org.springframework.web.multipart.MultipartFile file)
addMultimedia in interface SessionService@Transactional(noRollbackFor={org.springframework.ws.client.WebServiceClientException.class,org.springframework.oxm.XmlMappingException.class})
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || (hasRole(\'ROLE_FULL_ACCESS\') && hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\'))")
public void deleteMultimedia(long sessionId,
long... multimediaIds)
deleteMultimedia in interface SessionService@Transactional
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || (hasRole(\'ROLE_FULL_ACCESS\') && hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\'))")
public void addPresentation(long sessionId,
org.springframework.web.multipart.MultipartFile file)
addPresentation in interface SessionService@Transactional @PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || (hasRole(\'ROLE_FULL_ACCESS\') && hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\'))") public void deletePresentation(long sessionId)
deletePresentation in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#session, \'view\')") public SessionTelephony getSessionTelephony(Session session)
getSessionTelephony in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')")
public void createOrUpdateSessionTelephony(long sessionId,
SessionTelephony telephony)
createOrUpdateSessionTelephony in interface SessionService@PreAuthorize(value="hasRole(\'ROLE_ADMIN\') || hasPermission(#sessionId, \'org.jasig.portlet.blackboardvcportlet.data.Session\', \'edit\')") public void deleteSessionTelephony(long sessionId)
deleteSessionTelephony in interface SessionServiceCopyright © 2016 Jasig. All Rights Reserved.