| Modifier and Type | Method and Description |
|---|---|
org.craftercms.commons.mongo.FileInfo |
AttachmentsController.addAttachment(String id,
org.springframework.web.multipart.MultipartFile attachment) |
boolean |
CommentsController.addAttributes(String id,
Map<String,Object> attributes) |
Thread |
ThreadsController.comments(String id,
String commentId,
int recursive,
int pageNumber,
int pageSize,
int childrenCount,
List<String> sortBy,
List<SocialSortOrder> sortOrder) |
T |
CommentsController.create(String body,
String thread,
String parent,
boolean anonymous,
String subject,
String attributes,
org.springframework.web.multipart.MultipartFile attachment) |
boolean |
CommentsController.delete(String id) |
boolean |
CommentsController.deletePost(String id) |
Iterable<Flag> |
CommentsController.flagUgc(String id) |
T |
CommentsController.flagUgc(String id,
String reason) |
void |
ProfileHelperController.getProfileAvatar(javax.servlet.http.HttpServletResponse response,
String profileId,
javax.servlet.http.HttpServletRequest request) |
Iterable<org.craftercms.commons.mongo.FileInfo> |
AttachmentsController.listAttachments(String id) |
T |
CommentsController.moderate(String id,
ModerationStatus status) |
T |
CommentsController.read(String id) |
Iterable<T> |
CommentsController.read(String search,
String sortBy,
int start,
int limit) |
void |
AttachmentsController.readAttachment(String id,
String attachmentId,
javax.servlet.http.HttpServletResponse response) |
boolean |
AttachmentsController.removeAttachment(String id,
String attachmentId) |
boolean |
AttachmentsController.removeAttachmentPost(String id,
String attachmentId) |
boolean |
CommentsController.removeAttributes(String id,
String attributes) |
boolean |
CommentsController.removeAttributesPost(String id,
String attributes) |
List<Map> |
ThreadsController.subscriptions(String context) |
Thread |
ThreadsController.thread(String id,
int recursive,
int pageNumber,
int pageSize,
int childrenCount,
List<String> sortBy,
List<SocialSortOrder> sortOrder) |
boolean |
CommentsController.unflagUgc(String id,
String flagId) |
T |
CommentsController.update(String id,
String body,
String attributes) |
boolean |
AttachmentsController.updateAttachmentPost(String id,
String attachmentId,
org.springframework.web.multipart.MultipartFile file) |
T |
CommentsController.updatePost(String id,
String body,
String attributes) |
T |
VotesControllerController.voteDown(String id) |
T |
VotesControllerController.voteNeutral(String id) |
T |
VotesControllerController.voteUp(String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
CommentsExtensionController.approveComment(String ugcId,
String profileTokenId,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
String context) |
| Modifier and Type | Method and Description |
|---|---|
org.craftercms.profile.api.Profile |
SocialContextController.addProfileToContext(String contextId,
String profileId,
String roles) |
SocialContext |
SocialContextController.create(String contextName) |
Iterable<SocialContext> |
SocialContextController.getAllContexts() |
Map<String,Object> |
SocialContextController.getEmailConfiguration() |
Map<String,String> |
SocialContextController.getSaveEmailTemplate(String type) |
org.craftercms.profile.api.Profile |
SocialContextController.removeProfileFromContext(String contextId,
String profileId) |
boolean |
SocialContextController.saveEmailTemplate(String template,
String type) |
Map<String,Object> |
SocialContextController.setEmailConfiguration(String host,
String encoding,
int port,
boolean auth,
String username,
String password,
boolean tls,
String replyTo,
String from,
int priority,
String subject) |
SocialSecurityAction |
ActionsController.update(String actionName,
String roles) |
| Modifier and Type | Class and Description |
|---|---|
class |
NotificationException |
class |
UGCException
Thrown when a UGC operation Fail.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AuditRepository.deleteByIds(List<String> ids) |
String |
ContextPreferencesRepository.findNotificationTemplate(String contextId,
String notificationType) |
List<AuditLog> |
AuditRepository.getByDate(Date from,
Date to) |
List<AuditLog> |
AuditRepository.getByDate(String context,
Date from,
Date to) |
Map<String,String> |
ContextPreferencesRepository.getEmailPreference(String contextId) |
List<HashMap> |
AuditRepository.getNotificationDigest(String threadId,
Date from,
Date to,
List<String> profilesToExclude) |
Iterable<AuditLog> |
AuditRepository.getNotificationsToSend(String threadId,
Date from,
Date to) |
void |
ContextPreferencesRepository.saveAllContextPreferences(String contextId,
Map<String,Object> newPreferences) |
Map<String,Object> |
ContextPreferencesRepository.saveEmailConfig(String contextId,
Map<String,Object> emailPref) |
boolean |
ContextPreferencesRepository.saveEmailTemplate(String context,
String type,
String template) |
| Modifier and Type | Method and Description |
|---|---|
void |
AuditRepositoryImpl.deleteByIds(List<String> ids) |
String |
ContextPreferencesRepositoryImpl.findNotificationTemplate(String contextId,
String notificationType) |
List<AuditLog> |
AuditRepositoryImpl.getByDate(Date from,
Date to) |
List<AuditLog> |
AuditRepositoryImpl.getByDate(String context,
Date from,
Date to) |
Map<String,String> |
ContextPreferencesRepositoryImpl.getEmailPreference(String contextId) |
List<HashMap> |
AuditRepositoryImpl.getNotificationDigest(String id,
Date from,
Date to,
List<String> profilesToExclude) |
Iterable<AuditLog> |
AuditRepositoryImpl.getNotificationsToSend(String threadId,
Date from,
Date to) |
void |
ContextPreferencesRepositoryImpl.saveAllContextPreferences(String contextId,
Map<String,Object> newPreferences) |
Map<String,Object> |
ContextPreferencesRepositoryImpl.saveEmailConfig(String contextId,
Map<String,Object> emailPref) |
void |
ContextPreferencesRepositoryImpl.saveEmailPreference(String contextId,
Map<String,Object> emailPreferences) |
boolean |
ContextPreferencesRepositoryImpl.saveEmailTemplate(String context,
String type,
String template) |
| Modifier and Type | Method and Description |
|---|---|
List<Map> |
WatchedThreadsRepository.findUserWatchedThreads(String profileId) |
| Modifier and Type | Method and Description |
|---|---|
List<Map> |
WatchedThreadsRepositoryImpl.findUserWatchedThreads(String profileId) |
| Modifier and Type | Method and Description |
|---|---|
List<Map> |
NotificationService.getUserSubscriptions() |
| Modifier and Type | Method and Description |
|---|---|
List<Map> |
NotificationServiceImpl.getUserSubscriptions() |
| Modifier and Type | Method and Description |
|---|---|
Map<? extends String,?> |
SocialServices.approveComment(UGC ugc,
org.craftercms.profile.api.Profile profile) |
T |
SocialServices.flag(String ugcId,
String contextId,
String reason,
String userId)
Flags the given UGC, with a given reason why.
|
T |
SocialServices.moderate(String ugcId,
ModerationStatus moderationStatus,
String userId,
String contextId)
Change the moderation Status of the given UGC.
|
boolean |
SocialServices.unFlag(String ugcId,
String flagId,
String userId,
String contextId)
Unflags the given UGC for the given reason.
|
T |
SocialServices.vote(String ugcId,
VoteOptions voteOptions,
String userId,
String contextId)
Executes the given UserContentInteraction for the given User Content Action.
|
| Modifier and Type | Method and Description |
|---|---|
Map<? extends String,Object> |
SocialServicesImpl.approveComment(UGC ugc,
org.craftercms.profile.api.Profile profile) |
SocialUgc |
SocialServicesImpl.flag(String ugcId,
String contextId,
String reason,
String userId) |
SocialUgc |
SocialServicesImpl.moderate(String ugcId,
ModerationStatus moderationStatus,
String userId,
String contextId) |
boolean |
SocialServicesImpl.unFlag(String ugcId,
String flagId,
String userId,
String contextId) |
SocialUgc |
SocialServicesImpl.vote(String ugcId,
VoteOptions voteOptions,
String userId,
String contextId) |
| Modifier and Type | Method and Description |
|---|---|
org.craftercms.profile.api.Profile |
SocialContextService.addProfileToContext(String profileId,
String contextId,
String[] roles) |
SocialContext |
SocialContextService.createNewContext(String contextName) |
Map |
ContextPreferencesService.findEmailPreference(String contextId) |
Iterable<SocialContext> |
SocialContextService.getAllContexts() |
protected Map<String,Object> |
EmailService.getEmailSettings(String contextId) |
String |
ContextPreferencesService.getEmailTemplate(String context,
String emailTemplateType) |
String |
ContextPreferencesService.getNotificationEmailTemplate(String contextId,
String notificationType) |
org.springframework.mail.javamail.JavaMailSender |
EmailService.getSender(String contextId) |
org.craftercms.profile.api.Profile |
SocialContextService.removeProfileFromContext(String contextId,
String profileId) |
void |
SecurityActionsService.save(SocialSecurityAction action)
Saves a new Action
|
void |
ContextPreferencesService.saveAllContextPreferences(String contextId,
Map<String,Object> newPreferences) |
Map<String,Object> |
ContextPreferencesService.saveEmailConfig(String contextId,
Map<String,Object> newConfiguration) |
boolean |
ContextPreferencesService.saveEmailTemplate(String context,
String type,
String template) |
void |
EmailService.sendEmail(org.craftercms.profile.api.Profile toSend,
StringWriter writer,
String subject,
String contextId) |
SocialSecurityAction |
SecurityActionsService.update(String context,
String actionName,
List<String> roles)
Updates the Roles for the given Action of the Context.
|
void |
EmailService.updateContextEmailCache(String contextId) |
| Modifier and Type | Method and Description |
|---|---|
org.craftercms.profile.api.Profile |
SocialContextServiceImpl.addProfileToContext(String profileId,
String contextId,
String[] roles) |
SocialContext |
SocialContextServiceImpl.createNewContext(String contextName) |
Map |
ContextPreferencesServiceImpl.findEmailPreference(String contextId) |
Iterable<SocialContext> |
SocialContextServiceImpl.getAllContexts() |
protected List<Map<String,Object>> |
TenantConfigurationServiceImpl.getAllPreferences() |
String |
ContextPreferencesServiceImpl.getEmailTemplate(String context,
String emailTemplateType) |
String |
ContextPreferencesServiceImpl.getNotificationEmailTemplate(String contextId,
String notificationType) |
void |
TenantConfigurationServiceImpl.loadDefaults() |
org.craftercms.profile.api.Profile |
SocialContextServiceImpl.removeProfileFromContext(String contextId,
String profileId) |
void |
SecurityActionsServiceImpl.save(SocialSecurityAction action) |
void |
ContextPreferencesServiceImpl.saveAllContextPreferences(String contextId,
Map<String,Object> newPreferences) |
Map<String,Object> |
ContextPreferencesServiceImpl.saveEmailConfig(String contextId,
Map<String,Object> newConfiguration) |
boolean |
ContextPreferencesServiceImpl.saveEmailTemplate(String context,
String type,
String template) |
SocialSecurityAction |
SecurityActionsServiceImpl.update(String context,
String actionName,
List<String> roles) |
| Modifier and Type | Method and Description |
|---|---|
T |
UGCService.create(String contextId,
String ugcParentId,
String targetId,
String textContent,
String subject,
Map<String,Object> attrs,
boolean isAnonymous)
Creates an UGC.
|
void |
UGCService.deleteAttribute(String ugcId,
String[] name,
String contextId)
Deletes a attribute of the given UGC.
|
boolean |
UGCService.deleteUgc(String ugcId,
String contextId)
Deletes a UGC If the Ugc is a parent it will delete the whole tree
|
<T extends UGC> |
UgcPipe.process(T ugc,
Map<String,Object> params)
Process the given ugc in to the pipeline
|
void |
UGCService.setAttributes(String ugcId,
String contextId,
Map<String,Object> attributes)
Sets an attribute to the given UGC Creates if does not exist
|
T |
UGCService.update(String ugcId,
String body,
String subject,
String contextId,
Map<String,Object> attributes)
Updates the given UGC with the given information.
|
| Modifier and Type | Method and Description |
|---|---|
UGC |
UGCServiceImpl.create(String contextId,
String ugcParentId,
String targetId,
String textContent,
String subject,
Map attrs,
boolean isAnonymous) |
void |
UGCServiceImpl.deleteAttribute(String ugcId,
String[] attributesName,
String contextId) |
boolean |
UGCServiceImpl.deleteUgc(String ugcId,
String contextId) |
void |
UGCServiceImpl.setAttributes(String ugcId,
String contextId,
Map attributes) |
UGC |
UGCServiceImpl.update(String ugcId,
String body,
String subject,
String contextId,
Map attributes) |
| Modifier and Type | Method and Description |
|---|---|
<T extends UGC> |
ModerationPipe.process(T ugc,
Map<String,Object> params) |
<T extends UGC> |
HtmlCleanupPipe.process(T ugc,
Map<String,Object> params) |
<T extends UGC> |
MetadataPipe.process(T ugc,
Map<String,Object> params) |
<T extends UGC> |
UgcPipeline.processUgc(T ugc) |
<T extends UGC> |
UgcPipeline.processUgc(T ugc,
Map<String,Object> params) |
Copyright © 2019 CrafterCMS. All Rights Reserved.