mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM: Build scripts
* war expanded in entirety and dependancies used as needed * Eclipse projects now building * Eclipse runtime helthier since have access to expanded WAR 'config' files on projects classpath * Custom Groovy task class added to construct AMP's * AMPs for both server and client build as part of the standard java 'assemble' task (called during 'build') * TODO check AMPs deploy * TODO extract properties * TODO construct correct Jar and Amp names based on version, etc git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@34706 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -350,7 +350,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
|
||||
}
|
||||
|
||||
private int checkCapability(MethodInvocation invocation, Class[] params, ConfigAttributeDefintion cad)
|
||||
@SuppressWarnings("unchecked")
|
||||
private int checkCapability(MethodInvocation invocation, Class[] params, ConfigAttributeDefintion cad)
|
||||
{
|
||||
NodeRef testNodeRef = getTestNode(getNodeService(), getRecordsManagementService(), invocation, params, cad.parameters.get(0), cad.parent);
|
||||
if (testNodeRef == null)
|
||||
@@ -421,7 +422,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
throw new ACLEntryVoterException("Unknown type");
|
||||
}
|
||||
|
||||
private static Map<QName, Serializable> getProperties(MethodInvocation invocation, Class[] params, int position)
|
||||
@SuppressWarnings("unchecked")
|
||||
private static Map<QName, Serializable> getProperties(MethodInvocation invocation, Class[] params, int position)
|
||||
{
|
||||
if (invocation.getArguments()[position] == null)
|
||||
{
|
||||
@@ -438,7 +440,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
throw new ACLEntryVoterException("Unknown type");
|
||||
}
|
||||
|
||||
private static NodeRef getTestNode(NodeService nodeService, RecordsManagementService rmService, MethodInvocation invocation, Class[] params, int position, boolean parent)
|
||||
@SuppressWarnings("unchecked")
|
||||
private static NodeRef getTestNode(NodeService nodeService, RecordsManagementService rmService, MethodInvocation invocation, Class[] params, int position, boolean parent)
|
||||
{
|
||||
NodeRef testNodeRef = null;
|
||||
if (position < 0)
|
||||
@@ -558,7 +561,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
return testNodeRef;
|
||||
}
|
||||
|
||||
private int checkPolicy(MethodInvocation invocation, Class[] params, ConfigAttributeDefintion cad)
|
||||
@SuppressWarnings("unchecked")
|
||||
private int checkPolicy(MethodInvocation invocation, Class[] params, ConfigAttributeDefintion cad)
|
||||
{
|
||||
Policy policy = policies.get(cad.policyName);
|
||||
if (policy == null)
|
||||
@@ -577,7 +581,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
|
||||
}
|
||||
|
||||
private List<ConfigAttributeDefintion> extractSupportedDefinitions(ConfigAttributeDefinition config)
|
||||
@SuppressWarnings("unchecked")
|
||||
private List<ConfigAttributeDefintion> extractSupportedDefinitions(ConfigAttributeDefinition config)
|
||||
{
|
||||
List<ConfigAttributeDefintion> definitions = new ArrayList<ConfigAttributeDefintion>(2);
|
||||
Iterator iter = config.getConfigAttributes();
|
||||
@@ -792,7 +797,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
* @param cad
|
||||
* @return
|
||||
*/
|
||||
int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilitiesService,
|
||||
@@ -804,7 +810,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private static class ReadPolicy implements Policy
|
||||
{
|
||||
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
@@ -821,7 +828,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private static class CreatePolicy implements Policy
|
||||
{
|
||||
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
@@ -848,7 +856,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private static class MovePolicy implements Policy
|
||||
{
|
||||
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
@@ -884,7 +893,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private static class UpdatePolicy implements Policy
|
||||
{
|
||||
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
@@ -919,7 +929,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private static class DeletePolicy implements Policy
|
||||
{
|
||||
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
@@ -948,7 +959,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
|
||||
private static class UpdatePropertiesPolicy implements Policy
|
||||
{
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
@@ -986,7 +998,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private static class AssocPolicy implements Policy
|
||||
{
|
||||
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
@@ -1010,7 +1023,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private static class WriteContentPolicy implements Policy
|
||||
{
|
||||
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
@@ -1027,7 +1041,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private static class CapabilityPolicy implements Policy
|
||||
{
|
||||
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
@@ -1044,7 +1059,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private static class DeclarePolicy implements Policy
|
||||
{
|
||||
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
@@ -1061,7 +1077,8 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private static class ReadPropertyPolicy implements Policy
|
||||
{
|
||||
|
||||
public int evaluate(
|
||||
@SuppressWarnings("unchecked")
|
||||
public int evaluate(
|
||||
NodeService nodeService,
|
||||
RecordsManagementService rmService,
|
||||
CapabilityService capabilityService,
|
||||
|
@@ -45,7 +45,8 @@ public abstract class AbstractCapability extends RMSecurityCommon
|
||||
implements Capability, RecordsManagementModel, RMPermissionModel
|
||||
{
|
||||
/** Logger */
|
||||
private static Log logger = LogFactory.getLog(AbstractCapability.class);
|
||||
@SuppressWarnings("unused")
|
||||
private static Log logger = LogFactory.getLog(AbstractCapability.class);
|
||||
|
||||
/** RM entry voter */
|
||||
protected RMEntryVoter voter;
|
||||
|
Reference in New Issue
Block a user