mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Code tidy up
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@84078 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,7 @@ import java.util.UUID;
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.module.org_alfresco_module_rm.admin.RecordsManagementAdminService;
|
||||
import org.alfresco.module.org_alfresco_module_rm.caveat.RMListOfValuesConstraint.MatchLogic;
|
||||
import org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementCustomModel;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork;
|
||||
import org.alfresco.service.cmr.dictionary.Constraint;
|
||||
@@ -130,11 +131,14 @@ public class RMCaveatConfigServiceImpl implements RMCaveatConfigService
|
||||
|
||||
public RMConstraintInfo addRMConstraint(String listName, String title, String[] values, MatchLogic matchLogic)
|
||||
{
|
||||
if(listName == null)
|
||||
if (listName == null)
|
||||
{
|
||||
// Generate a list name
|
||||
// FIXME: hardcoded namespace
|
||||
listName = "rmc:" + UUID.randomUUID().toString();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(RecordsManagementCustomModel.RM_CUSTOM_PREFIX);
|
||||
sb.append(QName.NAMESPACE_PREFIX);
|
||||
sb.append(UUID.randomUUID().toString());
|
||||
listName = sb.toString();
|
||||
}
|
||||
|
||||
List<String>allowedValues = new ArrayList<String>();
|
||||
|
Reference in New Issue
Block a user