public interface ExternalLogic
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_EMAIL_SEND |
static String |
NO_LOCATION |
static String |
PERM_ADMIN |
static String |
PERM_SEND |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToArchive(ConfigEntry config,
String channelRef,
String sender,
String subject,
String body)
Append email to Email Archive
|
String |
getCurrentLocationId() |
Site |
getCurrentSite()
Get the current site's details
|
String |
getCurrentSiteTitle() |
User |
getCurrentUser()
Get details for the current user
|
String |
getCurrentUserId() |
List<String> |
getPermissionKeys()
Get a list of the permission keys for the tool
|
String |
getSiteID()
Get the site id for the current site
|
String |
getSiteRealmID()
Get the realm id for the current site
|
String |
getSiteType()
Get the type of the current site
|
User |
getUser(String userId)
Get details for a user
|
String |
getUserDisplayName(String userId)
Get the display name for a user by their unique id
|
boolean |
isEmailArchiveAddedToSite()
Check if the email archive tool is added to the current site
|
boolean |
isUserAdmin(String userId)
Check if this user has super admin access
|
boolean |
isUserAllowedInLocation(String userId,
String permission,
String locationId)
Check if a user has a specified permission within a context, primarily a convenience method
and passthrough
|
boolean |
isUserSiteAdmin(String userId,
String locationId)
Check if this user has site update access
|
List<String> |
sendEmail(ConfigEntry config,
String fromEmail,
String fromName,
Map<String,String> to,
String subject,
String content,
List<Attachment> attachments)
Send email to a list of users.
|
static final String NO_LOCATION
static final String EVENT_EMAIL_SEND
static final String PERM_ADMIN
static final String PERM_SEND
String getCurrentUserId()
User getCurrentUser()
String getUserDisplayName(String userId)
userId - the current sakai user id (not username)String getCurrentSiteTitle()
locationId - a unique id which represents the current location of the user (entity reference)Site getCurrentSite()
String getSiteID()
String getSiteRealmID()
String getSiteType()
boolean isUserSiteAdmin(String userId, String locationId)
userId - the internal user id (not username)locationId - a unique id which represents the current location of the user (entity reference)boolean isUserAdmin(String userId)
userId - the internal user id (not username)boolean isUserAllowedInLocation(String userId, String permission, String locationId)
userId - the internal user id (not username)permission - a permission string constantlocationId - a unique id which represents the current location of the user (entity reference)boolean isEmailArchiveAddedToSite()
List<String> sendEmail(ConfigEntry config, String fromEmail, String fromName, Map<String,String> to, String subject, String content, List<Attachment> attachments) throws MailsenderException, AttachmentException
config - fromEmail - fromName - to - Map of email address subject - content - attachments - AttachmentExceptionMailsenderExceptionboolean addToArchive(ConfigEntry config, String channelRef, String sender, String subject, String body)
config - channelRef - sender - subject - body - String getCurrentLocationId()
Copyright © 2007-2014 Sakai Project. All Rights Reserved.