|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExternalLogic
This is the interface for logic which is external to our app logic
| Field Summary | |
|---|---|
static String |
EVENT_EMAIL_SEND
|
static String |
NO_LOCATION
|
static String |
PERM_ADMIN
|
static String |
PERM_SEND
|
| Method Summary | |
|---|---|
boolean |
addToArchive(ConfigEntry config,
String channelRef,
String sender,
String subject,
String body)
Append email to Email Archive |
String |
getCurrentLocationId()
|
org.sakaiproject.site.api.Site |
getCurrentSite()
Get the current site's details |
String |
getCurrentSiteTitle()
|
org.sakaiproject.user.api.User |
getCurrentUser()
Get details for the current user |
String |
getCurrentUserId()
|
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 |
org.sakaiproject.user.api.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<org.sakaiproject.email.api.Attachment> attachments)
Send email to a list of users. |
| Field Detail |
|---|
static final String NO_LOCATION
static final String EVENT_EMAIL_SEND
static final String PERM_ADMIN
static final String PERM_SEND
| Method Detail |
|---|
String getCurrentUserId()
org.sakaiproject.user.api.User getCurrentUser()
String getUserDisplayName(String userId)
userId - the current sakai user id (not username)
org.sakaiproject.user.api.User getUser(String userId)
userId -
String getCurrentSiteTitle()
locationId - a unique id which represents the current location of the user (entity reference)
org.sakaiproject.site.api.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<org.sakaiproject.email.api.Attachment> attachments)
throws MailsenderException,
AttachmentException
config - fromEmail - fromName - to - Map of email address subject - content - attachments -
AttachmentException
MailsenderException
boolean addToArchive(ConfigEntry config,
String channelRef,
String sender,
String subject,
String body)
config - channelRef - sender - subject - body -
String getCurrentLocationId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||