public class AlfrescoMeetingServiceHandler extends Object implements MeetingServiceHandler
MeetingServiceHandler.AttendeeStatus
Modifier and Type | Field and Description |
---|---|
static String |
MEETING_WORKSPACE_NAME |
Constructor and Description |
---|
AlfrescoMeetingServiceHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addMeeting(String siteName,
MeetingBean meeting)
Creates the meeting information in the Meeting Workspace site on the specified Alfresco server.
|
void |
addMeetingFromICal(String siteName,
MeetingBean meeting)
Associates a meeting represented in Internet Calendar (iCal) format with the Meeting Workspace site on the specified Alfresco server.
|
protected void |
adjustMeetingProperties(MeetingBean meeting) |
protected org.alfresco.service.cmr.repository.NodeRef |
createDocumentsFolder(MeetingBean meeting,
String siteName) |
String |
createWorkspace(String title,
String templateName,
int lcid,
TimeZoneInformation timeZoneInformation,
SessionUser user)
Creates a new Meeting Workspace site on the specified Alfresco server.
|
void |
deleteWorkspace(String siteName,
SessionUser user)
Deletes the Meeting Workspace site from the specified Alfresco server.
|
protected static String |
getFolderName(MeetingBean meeting) |
MeetingsInformation |
getMeetingsInformation(String siteName,
int requestFlags,
int lcid)
Lists the languages and templates supported by the specified Alfresco server.
|
List<SiteInfo> |
getMeetingWorkspaces(boolean recurring)
Lists the Meeting Workspace sites that are available, to the current user,
on the Alfresco Server.
|
protected String |
getMessage(String name)
TODO Fix up the message files so we can get rid of this nasty hack!
|
protected String |
removeIllegalCharacters(String value)
Remove illegal characters from string
|
void |
removeMeeting(String siteName,
int recurrenceId,
String uid,
int sequence,
Date utcDateStamp,
boolean cancelMeeting)
Removes the association between a meeting and a Meeting Workspace site.
|
protected void |
renameDocumentsFolder(String siteName,
MeetingBean meeting,
String folderNodeRef) |
void |
restoreMeeting(String siteName,
String uid)
Note - This method may want replacing with a dedicated Canned Query (CQ),
if it every gets heavily used (currently it is very rarely called).
|
void |
setAuthenticationService(AuthenticationService authenticationService) |
void |
setCalendarService(CalendarService calendarService) |
void |
setFileFolderService(FileFolderService fileFolderService) |
void |
setNodeArchiveService(NodeArchiveService nodeArchiveService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPersonService(PersonService personService) |
void |
setShareUtils(ShareUtils shareUtils) |
void |
setSiteService(SiteService siteService) |
void |
setTransactionService(TransactionService transactionService) |
protected String |
truncateSiteName(String baseSiteName,
String suffix)
The Site Name is limited by two things, the QName of the ChildAssoc under
the sites root, and the Site Authority.
|
void |
updateAttendeeResponse(String siteName,
String attendeeEmail,
MeetingServiceHandler.AttendeeStatus status,
String uid,
int recurrenceId,
int sequence,
Date utcDateStamp)
Sets an attendee's response for a meeting.
|
void |
updateMeeting(String siteName,
MeetingBean meeting)
Updates meeting information .
|
void |
updateMeetingFromICal(String siteName,
MeetingBean meeting,
boolean ignoreAttendees)
Updates meeting information stored in Internet Calendar (iCal) format.
|
void |
updateWorkspaceTitle(String siteName,
String newTitle)
Updates the title (but not the name) of a Meeting Workspace site on the specified Alfresco server
|
public static String MEETING_WORKSPACE_NAME
public void addMeeting(String siteName, MeetingBean meeting)
MeetingServiceHandler
addMeeting
in interface MeetingServiceHandler
siteName
- The site namemeeting
- The meeting bean (MeetingBean
)MeetingServiceHandler.addMeeting(String, MeetingBean)
public void addMeetingFromICal(String siteName, MeetingBean meeting)
MeetingServiceHandler
addMeetingFromICal
in interface MeetingServiceHandler
siteName
- The site namemeeting
- The meeting bean (MeetingBean
)MeetingServiceHandler.addMeetingFromICal(String, MeetingBean)
public String createWorkspace(String title, String templateName, int lcid, TimeZoneInformation timeZoneInformation, SessionUser user) throws Exception
MeetingServiceHandler
createWorkspace
in interface MeetingServiceHandler
title
- The title for the Meeting Workspace site that will be created.templateName
- The name of the template you want to use when the site is created.lcid
- The locale identifier that you want to use when the site is created.timeZoneInformation
- The time zone information that you want to use when the site is created.user
- Current userException
MeetingServiceHandler.createWorkspace(String, String, int, TimeZoneInformation, SessionUser)
public void updateWorkspaceTitle(String siteName, String newTitle)
MeetingServiceHandler
updateWorkspaceTitle
in interface MeetingServiceHandler
siteName
- The site namenewTitle
- The new title for the Meeting Workspace siteMeetingServiceHandler.updateWorkspaceTitle(String, String)
public List<SiteInfo> getMeetingWorkspaces(boolean recurring)
MeetingServiceHandler
getMeetingWorkspaces
in interface MeetingServiceHandler
recurring
- true
if the meeting is recurring; otherwise, false
.MeetingServiceHandler.getMeetingWorkspaces(boolean)
public MeetingsInformation getMeetingsInformation(String siteName, int requestFlags, int lcid)
MeetingServiceHandler
getMeetingsInformation
in interface MeetingServiceHandler
siteName
- The site namerequestFlags
- lcid
- The locale identifier to which you want to limit the results.MeetingServiceHandler.getMeetingsInformation(String, int, int)
public void removeMeeting(String siteName, int recurrenceId, String uid, int sequence, Date utcDateStamp, boolean cancelMeeting)
MeetingServiceHandler
removeMeeting
in interface MeetingServiceHandler
siteName
- The site namerecurrenceId
- The recurrence ID for the meeting that needs its association removed. This parameter can be set to 0 for single-instance meetings.uid
- A persistent GUID for the calendar component.sequence
- An integer that is used to determine the ordering of updates in case they arrive out of sequence. Updates with a lower-than-current sequence are discarded.
If the sequence is equal to the current sequence, the latest update will be applied.utcDateStamp
- The date and time that the instance of the Date object was created. This parameter needs to be in the UTC format (for example,
2003-03-04T04:45:22-08:00).cancelMeeting
- true
if you want to delete a meeting; false
if you just want to remove its association with a Meeting Workspace site.MeetingServiceHandler.removeMeeting(String, int, String, int, Date, boolean)
public void restoreMeeting(String siteName, String uid) throws SiteDoesNotExistException, ObjectNotFoundException
restoreMeeting
in interface MeetingServiceHandler
SiteDoesNotExistException
ObjectNotFoundException
MeetingServiceHandler.restoreMeeting(String, String)
public void updateMeeting(String siteName, MeetingBean meeting) throws SiteDoesNotExistException, ObjectNotFoundException
MeetingServiceHandler
updateMeeting
in interface MeetingServiceHandler
siteName
- The site namemeeting
- The meeting bean (MeetingBean
)SiteDoesNotExistException
ObjectNotFoundException
MeetingServiceHandler.updateMeeting(String, MeetingBean)
public void updateMeetingFromICal(String siteName, MeetingBean meeting, boolean ignoreAttendees)
MeetingServiceHandler
updateMeetingFromICal
in interface MeetingServiceHandler
siteName
- The site namemeeting
- The meeting bean (MeetingBean
)ignoreAttendees
- true
if you want to skip processing of attendee information in the iCal; otherwise, false
.MeetingServiceHandler.updateMeetingFromICal(String, MeetingBean, boolean)
public void updateAttendeeResponse(String siteName, String attendeeEmail, MeetingServiceHandler.AttendeeStatus status, String uid, int recurrenceId, int sequence, Date utcDateStamp) throws SiteDoesNotExistException, ObjectNotFoundException
MeetingServiceHandler
updateAttendeeResponse
in interface MeetingServiceHandler
SiteDoesNotExistException
ObjectNotFoundException
MeetingServiceHandler.updateAttendeeResponse(String, String, AttendeeStatus, String, int, int, Date)
public void deleteWorkspace(String siteName, SessionUser user) throws Exception
MeetingServiceHandler
deleteWorkspace
in interface MeetingServiceHandler
siteName
- The siteName to deleteuser
- Current userException
MeetingServiceHandler.deleteWorkspace(String, SessionUser)
protected String removeIllegalCharacters(String value)
value
- input stringprotected String truncateSiteName(String baseSiteName, String suffix)
protected org.alfresco.service.cmr.repository.NodeRef createDocumentsFolder(MeetingBean meeting, String siteName)
protected void renameDocumentsFolder(String siteName, MeetingBean meeting, String folderNodeRef)
protected static String getFolderName(MeetingBean meeting)
protected String getMessage(String name)
protected void adjustMeetingProperties(MeetingBean meeting)
public void setSiteService(SiteService siteService)
public void setShareUtils(ShareUtils shareUtils)
public void setCalendarService(CalendarService calendarService)
public void setAuthenticationService(AuthenticationService authenticationService)
public void setTransactionService(TransactionService transactionService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setNodeArchiveService(NodeArchiveService nodeArchiveService)
public void setPersonService(PersonService personService)
public void setFileFolderService(FileFolderService fileFolderService)
Copyright © 2005–2017 Alfresco Software. All rights reserved.