mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed major issues reported by sonar (Parameter Name)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@63810 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,11 +30,11 @@ import org.springframework.extensions.surf.util.I18NUtil;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* rma:ghosted behaviour bean
|
* rma:ghosted behaviour bean
|
||||||
*
|
*
|
||||||
* @author Roy Wetherall
|
* @author Roy Wetherall
|
||||||
* @since 2.2
|
* @since 2.2
|
||||||
*/
|
*/
|
||||||
@BehaviourBean
|
@BehaviourBean
|
||||||
(
|
(
|
||||||
defaultType = "rma:ghosted" // optional
|
defaultType = "rma:ghosted" // optional
|
||||||
)
|
)
|
||||||
@@ -43,12 +43,12 @@ public class GhostedAspect extends BaseBehaviourBean
|
|||||||
{
|
{
|
||||||
/** I18N */
|
/** I18N */
|
||||||
private static final String MSG_GHOSTED_PROP_UPDATE = "rm.action.ghosted-prop-update";
|
private static final String MSG_GHOSTED_PROP_UPDATE = "rm.action.ghosted-prop-update";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensure that the content of a ghosted node can not be updated.
|
* Ensure that the content of a ghosted node can not be updated.
|
||||||
*
|
*
|
||||||
* @see org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy#onContentUpdate(org.alfresco.service.cmr.repository.NodeRef, boolean)
|
* @see org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy#onContentUpdate(org.alfresco.service.cmr.repository.NodeRef, boolean)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Behaviour
|
@Behaviour
|
||||||
(
|
(
|
||||||
@@ -56,13 +56,13 @@ public class GhostedAspect extends BaseBehaviourBean
|
|||||||
notificationFrequency = NotificationFrequency.EVERY_EVENT, // (defaults to EVERY_EVENT)
|
notificationFrequency = NotificationFrequency.EVERY_EVENT, // (defaults to EVERY_EVENT)
|
||||||
policy = "alf:onContentUpdate", // (defaults to alf:<methodname>)
|
policy = "alf:onContentUpdate", // (defaults to alf:<methodname>)
|
||||||
type = "rma:ghosted" // required, unless defaultType set
|
type = "rma:ghosted" // required, unless defaultType set
|
||||||
|
|
||||||
// isService (default false)
|
// isService (default false)
|
||||||
// name (only needs to specified if associated behvaiour object needs to be accessed)
|
// name (only needs to specified if associated behvaiour object needs to be accessed)
|
||||||
// assocType (defaults to cm:contains, used with BehaviourKind.ASSOC)
|
// assocType (defaults to cm:contains, used with BehaviourKind.ASSOC)
|
||||||
)
|
)
|
||||||
public void onContentUpdate(NodeRef Content, boolean bNew)
|
public void onContentUpdate(NodeRef content, boolean bNew)
|
||||||
{
|
{
|
||||||
throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_GHOSTED_PROP_UPDATE));
|
throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_GHOSTED_PROP_UPDATE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user