Class JSONConversionComponent
java.lang.Object
org.alfresco.repo.jscript.app.JSONConversionComponent
org.alfresco.module.org_alfresco_module_rm.jscript.app.JSONConversionComponent
- All Implemented Interfaces:
NodeServicePolicies.OnCreateNodePolicy
,NodeServicePolicies.OnDeleteNodePolicy
,ClassPolicy
,Policy
public class JSONConversionComponent
extends JSONConversionComponent
implements NodeServicePolicies.OnDeleteNodePolicy, NodeServicePolicies.OnCreateNodePolicy
Extend JSON conversion component to include RM specifics.
- Author:
- Roy Wetherall
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
-
Field Summary
Fields inherited from class org.alfresco.repo.jscript.app.JSONConversionComponent
contentService, fileFolderService, lockService, mimetypeService, namespacePrefixCache, namespaceService, nodeService, permissionService, propertyDecorators, publicServiceAccessService, userPermissions
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy
QNAME
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteNodePolicy
QNAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CapabilityService
protected FilePlanService
protected SimpleCache<String,
Object> Gets the json conversion component cachevoid
init()
The initialise methodvoid
onCreateNode
(ChildAssociationRef childAssocRef) void
onDeleteNode
(ChildAssociationRef childAssocRef, boolean isNodeArchived) protected org.json.simple.JSONObject
permissionsToJSON
(NodeRef nodeRef) void
registerAction
(BaseEvaluator action) void
registerIndicator
(BaseEvaluator indicator) void
setCapabilityService
(CapabilityService capabilityService) void
setDictionaryService
(DictionaryService dictionaryService) void
setDispositionService
(DispositionService dispositionService) void
setFilePlanRoleService
(FilePlanRoleService filePlanRoleService) void
setFilePlanService
(FilePlanService filePlanService) void
setFreezeService
(FreezeService freezeService) void
setJsonConversionComponentCache
(SimpleCache<String, Object> jsonConversionComponentCache) Sets the json conversion component cachevoid
setPolicyComponent
(PolicyComponent policyComponent) void
setRecordContributorsGroupEnabled
(boolean enabled) void
setRecordContributorsGroupName
(String recordContributorsGroupName) void
setRecordService
(RecordService recordService) protected void
setRootValues
(FileInfo nodeInfo, org.json.simple.JSONObject rootJSONObject, boolean useShortQNames) void
setSiteService
(SiteService siteService) Methods inherited from class org.alfresco.repo.jscript.app.JSONConversionComponent
allSetPermissionsToJSON, apsectsToJSON, propertiesToJSON, propertyToJSON, registerPropertyDecorator, setContentService, setFileFolderService, setLockService, setMimetypeService, setNamespaceService, setNodeService, setPermissionService, setPublicServiceAccessService, setUserPermissions, toJSON, toJSONObject, userPermissionsToJSON
-
Constructor Details
-
JSONConversionComponent
public JSONConversionComponent()
-
-
Method Details
-
setRecordContributorsGroupEnabled
public void setRecordContributorsGroupEnabled(boolean enabled) - Parameters:
enabled
- true if enabled, false otherwise
-
setRecordContributorsGroupName
- Parameters:
recordContributorsGroupName
- record contributors group name
-
setRecordService
- Parameters:
recordService
- record service
-
setFilePlanService
- Parameters:
filePlanService
- file plan service
-
setFilePlanRoleService
- Parameters:
filePlanRoleService
- file plan role service
-
setCapabilityService
- Parameters:
capabilityService
- capability service
-
getFileplanService
- Returns:
- the filePlanService
-
getCapabilityService
- Returns:
- the capabilityService
-
setDictionaryService
- Parameters:
dictionaryService
- dictionary service
-
setSiteService
- Parameters:
siteService
- site service
-
registerIndicator
- Parameters:
indicator
- registered indicator
-
registerAction
- Parameters:
action
- registered action
-
setPolicyComponent
- Parameters:
policyComponent
- policy component
-
getJsonConversionComponentCache
Gets the json conversion component cache- Returns:
- The json conversion component cache
-
setJsonConversionComponentCache
public void setJsonConversionComponentCache(SimpleCache<String, Object> jsonConversionComponentCache) Sets the json conversion component cache- Parameters:
jsonConversionComponentCache
- The json conversion component cache
-
setDispositionService
- Parameters:
dispositionService
- the disposition service
-
setFreezeService
- Parameters:
freezeService
-
-
init
public void init()The initialise method -
setRootValues
protected void setRootValues(FileInfo nodeInfo, org.json.simple.JSONObject rootJSONObject, boolean useShortQNames) -
permissionsToJSON
- Overrides:
permissionsToJSON
in classJSONConversionComponent
- See Also:
-
onDeleteNode
-
onCreateNode
-