| Modifier and Type | Method and Description |
|---|---|
org.craftercms.commons.mongo.FileInfo |
AttachmentsController.addAttachment(String id,
org.springframework.web.multipart.commons.CommonsMultipartFile 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,
String attributes,
org.springframework.web.multipart.MultipartFile attachment) |
boolean |
CommentsController.delete(String id) |
Iterable<Flag> |
CommentsController.flagUgc(String id) |
T |
CommentsController.flagUgc(String id,
String reason) |
Iterable<org.craftercms.commons.mongo.FileInfo> |
AttachmentsController.listAttachments(String id) |
T |
CommentsController.read(String id) |
void |
AttachmentsController.readAttachment(String id,
String attachmentId,
javax.servlet.http.HttpServletResponse response) |
boolean |
AttachmentsController.removeAttachment(String id,
String attachmentId) |
boolean |
CommentsController.removeAttributes(String id,
String attributes) |
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.updateAttachment(String id,
String attachmentId,
org.springframework.web.multipart.commons.CommonsMultipartFile file) |
T |
VotesControllerController.voteDown(String id) |
T |
VotesControllerController.voteNeutral(String id) |
T |
VotesControllerController.voteUp(String id) |
| 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() |
org.craftercms.profile.api.Profile |
SocialContextController.removeProfileFromContext(String contextId,
String profileId) |
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 |
AuditRepositoryImpl.deleteByIds(List<String> ids) |
void |
AuditRepository.deleteByIds(List<String> ids) |
List<AuditLog> |
AuditRepositoryImpl.getByDate(Date from,
Date to) |
List<AuditLog> |
AuditRepository.getByDate(Date from,
Date to) |
List<AuditLog> |
AuditRepositoryImpl.getByDate(String context,
Date from,
Date to) |
List<AuditLog> |
AuditRepository.getByDate(String context,
Date from,
Date to) |
List<HashMap> |
AuditRepositoryImpl.getNotificationDigest(String id,
Date from,
Date to,
List<String> profilesToExclude) |
List<HashMap> |
AuditRepository.getNotificationDigest(String threadId,
Date from,
Date to,
List<String> profilesToExclude) |
Iterable<AuditLog> |
AuditRepositoryImpl.getNotificationsToSend(String threadId,
Date from,
Date to) |
Iterable<AuditLog> |
AuditRepository.getNotificationsToSend(String threadId,
Date from,
Date to) |
| Modifier and Type | Method and Description |
|---|---|
T |
SocialServices.flag(String ugcId,
String contextId,
String reason,
String userId)
Flags the given UGC, with for given reason.
|
boolean |
SocialServices.unFlag(String ugcId,
String flagId,
String userId,
String contextId)
Un flags 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 |
|---|---|
SocialUgc |
SocialServicesImpl.flag(String ugcId,
String contextId,
String reason,
String userId) |
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) |
Iterable<SocialContext> |
SocialContextService.getAllContexts() |
org.craftercms.profile.api.Profile |
SocialContextService.removeProfileFromContext(String contextId,
String profileId) |
void |
SecurityActionsService.save(SocialSecurityAction action)
Saves a new Action
|
SocialSecurityAction |
SecurityActionsService.update(String context,
String actionName,
List<String> roles)
Updates the Roles for the given Action of the Context.
|
| Modifier and Type | Method and Description |
|---|---|
org.craftercms.profile.api.Profile |
SocialContextServiceImpl.addProfileToContext(String profileId,
String contextId,
String[] roles) |
SocialContext |
SocialContextServiceImpl.createNewContext(String contextName) |
Iterable<SocialContext> |
SocialContextServiceImpl.getAllContexts() |
org.craftercms.profile.api.Profile |
SocialContextServiceImpl.removeProfileFromContext(String contextId,
String profileId) |
void |
SecurityActionsServiceImpl.save(SocialSecurityAction action) |
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)
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)
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) |
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) |
<T extends UGC> |
HtmlCleanupPipe.process(T ugc) |
<T extends UGC> |
MetadataPipe.process(T ugc) |
<T extends UGC> |
UgcPipeline.processUgc(T ugc) |
Copyright © 2014 CrafterCMS. All Rights Reserved.