public class RMCaveatConfigServiceImpl extends Object implements RMCaveatConfigService
| Constructor and Description |
|---|
RMCaveatConfigServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
RMConstraintInfo |
addRMConstraint(String listName,
String title,
String[] values)
add RM constraint list
|
RMConstraintInfo |
addRMConstraint(String listName,
String title,
String[] values,
RMListOfValuesConstraint.MatchLogic matchLogic) |
void |
addRMConstraintListValue(String listName,
String authorityName,
String value)
Add a single value to an authority in a list.
|
void |
deleteRMConstraint(String listName)
delete RM Constraint List
|
Set<RMConstraintInfo> |
getAllRMConstraints()
Get all Constraint Lists
|
Map<String,List<String>> |
getListDetails(String listName)
Get the details of the specified list
|
RecordsManagementAdminService |
getRecordsManagementAdminService() |
List<String> |
getRMAllowedValues(String constraintName)
Get allowed values for given caveat list (for current user)
|
RMConstraintInfo |
getRMConstraint(org.alfresco.service.namespace.QName listQName)
Get an RMConstraintInfo
|
RMConstraintInfo |
getRMConstraint(String listName)
Get RM Constraint detail.
|
boolean |
hasAccess(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Check whether access to 'record component' node is vetoed for current user due to caveat(s)
|
void |
init() |
void |
removeRMConstraintListAuthority(String listName,
String authorityName)
Remove an authority from a list
|
void |
removeRMConstraintListValue(String listName,
String valueName)
Remove a value from a list and cascade delete.
|
void |
setCaveatConfigComponent(RMCaveatConfigComponent rmCaveatConfigComponent) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setRecordsManagementAdminService(RecordsManagementAdminService recordsManagementAdminService) |
org.alfresco.service.cmr.repository.NodeRef |
updateOrCreateCaveatConfig(File jsonFile) |
org.alfresco.service.cmr.repository.NodeRef |
updateOrCreateCaveatConfig(InputStream is) |
org.alfresco.service.cmr.repository.NodeRef |
updateOrCreateCaveatConfig(String jsonString) |
RMConstraintInfo |
updateRMConstraintAllowedValues(String listName,
String[] allowedValues)
Update The allowed values for an RM Constraint.
|
void |
updateRMConstraintListAuthority(String listName,
String authorityName,
List<String> values)
Replace the values for an authority in a list.
|
void |
updateRMConstraintListValue(String listName,
String valueName,
List<String> authorities)
Replace the authorities for a value in a list
|
RMConstraintInfo |
updateRMConstraintTitle(String listName,
String newTitle)
Update the title of this RM Constraint.
|
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setCaveatConfigComponent(RMCaveatConfigComponent rmCaveatConfigComponent)
public void setRecordsManagementAdminService(RecordsManagementAdminService recordsManagementAdminService)
public RecordsManagementAdminService getRecordsManagementAdminService()
public void init()
init in interface RMCaveatConfigServicepublic org.alfresco.service.cmr.repository.NodeRef updateOrCreateCaveatConfig(InputStream is)
updateOrCreateCaveatConfig in interface RMCaveatConfigServicepublic org.alfresco.service.cmr.repository.NodeRef updateOrCreateCaveatConfig(File jsonFile)
updateOrCreateCaveatConfig in interface RMCaveatConfigServicepublic org.alfresco.service.cmr.repository.NodeRef updateOrCreateCaveatConfig(String jsonString)
updateOrCreateCaveatConfig in interface RMCaveatConfigServicepublic List<String> getRMAllowedValues(String constraintName)
RMCaveatConfigServicegetRMAllowedValues in interface RMCaveatConfigServicepublic boolean hasAccess(org.alfresco.service.cmr.repository.NodeRef nodeRef)
hasAccess in interface RMCaveatConfigServicenodeRef - public RMConstraintInfo addRMConstraint(String listName, String title, String[] values)
addRMConstraint in interface RMCaveatConfigServicelistName - the name of the RMConstraintListpublic RMConstraintInfo addRMConstraint(String listName, String title, String[] values, RMListOfValuesConstraint.MatchLogic matchLogic)
public void deleteRMConstraint(String listName)
deleteRMConstraint in interface RMCaveatConfigServicelistName - the name of the RMConstraintListpublic void addRMConstraintListValue(String listName, String authorityName, String value)
addRMConstraintListValue in interface RMCaveatConfigServicelistName - the name of the RMConstraintListauthorityName - values - org.alfresco.error.AlfrescoRuntimeException - if either the list or the authority do not already exist.public Map<String,List<String>> getListDetails(String listName)
getListDetails in interface RMCaveatConfigServicelistName - public void updateRMConstraintListAuthority(String listName, String authorityName, List<String> values)
updateRMConstraintListAuthority in interface RMCaveatConfigServicelistName - the name of the RMConstraintListauthorityName - values - public void updateRMConstraintListValue(String listName, String valueName, List<String> authorities)
updateRMConstraintListValue in interface RMCaveatConfigServicelistName - valueName - authorities - public void removeRMConstraintListAuthority(String listName, String authorityName)
removeRMConstraintListAuthority in interface RMCaveatConfigServicelistName - the name of the RMConstraintListauthorityName - values - public Set<RMConstraintInfo> getAllRMConstraints()
getAllRMConstraints in interface RMCaveatConfigServicepublic RMConstraintInfo getRMConstraint(org.alfresco.service.namespace.QName listQName)
listQName - public RMConstraintInfo getRMConstraint(String listName)
getRMConstraint in interface RMCaveatConfigServicepublic RMConstraintInfo updateRMConstraintAllowedValues(String listName, String[] allowedValues)
updateRMConstraintAllowedValues in interface RMCaveatConfigServicelistName - The name of the list.allowedValues - the new alowed valuespublic void removeRMConstraintListValue(String listName, String valueName)
removeRMConstraintListValue in interface RMCaveatConfigServicelistName - the name of the RMConstraintListpublic RMConstraintInfo updateRMConstraintTitle(String listName, String newTitle)
updateRMConstraintTitle in interface RMCaveatConfigServicelistName - the name of the RMConstraintList - can not be changedCopyright © 2005–2016 Alfresco Software. All rights reserved.