@Service @Transactional public class ModelShareService extends Object
Modifier and Type | Field and Description |
---|---|
protected com.activiti.repository.editor.ModelShareInfoRepository |
shareInfoRepository |
protected UserService |
userService |
Constructor and Description |
---|
ModelShareService() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteShareInfo(com.activiti.domain.editor.Model model,
Long shareInfoId) |
com.activiti.domain.editor.ModelShareInfo |
shareModelWithGroup(com.activiti.domain.editor.Model model,
com.activiti.domain.idm.Group groupToShareWith,
com.activiti.domain.editor.SharePermission permission)
Share the given model with the given group.
|
com.activiti.domain.editor.ModelShareInfo |
shareModelWithUser(com.activiti.domain.editor.Model model,
com.activiti.domain.idm.User userToShareWith,
com.activiti.domain.editor.SharePermission permission,
com.activiti.domain.idm.User sharedBy)
Share the given model with the given userLogin.
|
boolean |
updateShareInfo(com.activiti.domain.editor.Model model,
String shareInfoId,
com.activiti.domain.editor.SharePermission permission) |
@Inject protected com.activiti.repository.editor.ModelShareInfoRepository shareInfoRepository
@Inject protected UserService userService
public com.activiti.domain.editor.ModelShareInfo shareModelWithGroup(com.activiti.domain.editor.Model model, com.activiti.domain.idm.Group groupToShareWith, com.activiti.domain.editor.SharePermission permission)
public com.activiti.domain.editor.ModelShareInfo shareModelWithUser(com.activiti.domain.editor.Model model, com.activiti.domain.idm.User userToShareWith, com.activiti.domain.editor.SharePermission permission, com.activiti.domain.idm.User sharedBy)
public boolean updateShareInfo(com.activiti.domain.editor.Model model, String shareInfoId, com.activiti.domain.editor.SharePermission permission)
public boolean deleteShareInfo(com.activiti.domain.editor.Model model, Long shareInfoId)
Copyright © 2014–2015 Alfresco. All rights reserved.