Class RecordServiceImpl
java.lang.Object
org.alfresco.module.org_alfresco_module_rm.util.ServiceBaseImpl
org.alfresco.module.org_alfresco_module_rm.model.BaseBehaviourBean
org.alfresco.module.org_alfresco_module_rm.record.RecordServiceImpl
- All Implemented Interfaces:
RecordsManagementCustomModel,RecordsManagementModel,RecordService,ContentServicePolicies.OnContentUpdatePolicy,NodeServicePolicies.OnAddAspectPolicy,NodeServicePolicies.OnCreateChildAssociationPolicy,NodeServicePolicies.OnRemoveAspectPolicy,NodeServicePolicies.OnUpdatePropertiesPolicy,BehaviourRegistry,AssociationPolicy,ClassPolicy,Policy,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class RecordServiceImpl
extends BaseBehaviourBean
implements RecordService, RecordsManagementModel, RecordsManagementCustomModel, NodeServicePolicies.OnAddAspectPolicy, NodeServicePolicies.OnCreateChildAssociationPolicy, NodeServicePolicies.OnRemoveAspectPolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, ContentServicePolicies.OnContentUpdatePolicy
Record service implementation.
- Since:
- 2.1
- Author:
- Roy Wetherall
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg -
Field Summary
FieldsFields inherited from class org.alfresco.module.org_alfresco_module_rm.model.BaseBehaviourBean
behaviourFilter, behaviours, MULTIPLE_CHILDREN_TYPE_ERROR, UNIQUE_CHILD_TYPE_ERRORFields inherited from class org.alfresco.module.org_alfresco_module_rm.util.ServiceBaseImpl
applicationContext, authenticationUtil, contentService, dictionaryService, nodeService, nodeTypeUtility, renditionService, transactionalResourceHelperFields inherited from interface org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnAddAspectPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnRemoveAspectPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
ARG_0, ARG_1, ARG_2, QNAMEFields inherited from interface org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementCustomModel
ASPECT_CUSTOM_ASSOCIATIONS, ASPECT_SUPPLEMENTAL_MARKING_LIST, CONSTRAINT_CUSTOM_SMLIST, CUSTOM_REF_CROSSREFERENCE, CUSTOM_REF_OBSOLETES, CUSTOM_REF_RENDITION, CUSTOM_REF_SUPERSEDES, CUSTOM_REF_SUPPORTS, CUSTOM_REF_VERSIONS, PROP_SUPPLEMENTAL_MARKING_LIST, RM_CUSTOM_MODEL, RM_CUSTOM_PREFIX, RM_CUSTOM_URIFields inherited from interface org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementModel
ASPECT_ARCHIVED, ASPECT_ASCENDED, ASPECT_CAVEAT_CONFIG_ROOT, ASPECT_COMMON_RECORD_DETAILS, ASPECT_COUNTABLE, ASPECT_CUSTOM_RM_DATA, ASPECT_CUT_OFF, ASPECT_DECLARED_RECORD, ASPECT_DISPOSITION_LIFECYCLE, ASPECT_DISPOSITION_PROCESSED, ASPECT_EMAIL_CONFIG_ROOT, ASPECT_EXTENDED_SECURITY, ASPECT_FILABLE, ASPECT_FILE_PLAN_COMPONENT, ASPECT_FROZEN, ASPECT_GHOSTED, ASPECT_HELD_CHILDREN, ASPECT_LOADED_DATA_SET_ID, ASPECT_RECORD, ASPECT_RECORD_COMPONENT_ID, ASPECT_RECORD_META_DATA, ASPECT_RECORD_ORIGINATING_DETAILS, ASPECT_RECORD_REJECTION_DETAILS, ASPECT_RECORDS_MANAGEMENT_ROOT, ASPECT_RM_SEARCH, ASPECT_SAVED_SEARCH, ASPECT_SCHEDULED, ASPECT_TRANSFERRED, ASPECT_TRANSFERRING, ASPECT_UNCUT_OFF, ASPECT_UNPUBLISHED_UPDATE, ASPECT_VERSIONED_RECORD, ASPECT_VITAL_RECORD, ASPECT_VITAL_RECORD_DEFINITION, ASSOC_CAVEAT_CONFIG, ASSOC_DISPOSITION_ACTION_DEFINITIONS, ASSOC_DISPOSITION_ACTION_HISTORY, ASSOC_DISPOSITION_SCHEDULE, ASSOC_EMAIL_CONFIG, ASSOC_EVENT_EXECUTIONS, ASSOC_FROZEN_CONTENT, ASSOC_FROZEN_RECORDS, ASSOC_HOLDS, ASSOC_NEXT_DISPOSITION_ACTION, ASSOC_TRANSFERRED, ASSOC_TRANSFERS, GL_URI, PROP_COMBINE_DISPOSITION_STEP_CONDITIONS, PROP_COUNT, PROP_CUT_OFF_DATE, PROP_DATE_FILED, PROP_DB_UNIQUENESS_ID, PROP_DECLARED_AT, PROP_DECLARED_BY, PROP_DISPOSITION_ACTION, PROP_DISPOSITION_ACTION_COMPLETED_AT, PROP_DISPOSITION_ACTION_COMPLETED_BY, PROP_DISPOSITION_ACTION_GHOST_ON_DESTROY, PROP_DISPOSITION_ACTION_ID, PROP_DISPOSITION_ACTION_NAME, PROP_DISPOSITION_ACTION_STARTED_AT, PROP_DISPOSITION_ACTION_STARTED_BY, PROP_DISPOSITION_AS_OF, PROP_DISPOSITION_AUTHORITY, PROP_DISPOSITION_DESCRIPTION, PROP_DISPOSITION_EVENT, PROP_DISPOSITION_EVENT_COMBINATION, PROP_DISPOSITION_EVENTS_ELIGIBLE, PROP_DISPOSITION_INSTRUCTIONS, PROP_DISPOSITION_LOCATION, PROP_DISPOSITION_PERIOD, PROP_DISPOSITION_PERIOD_PROPERTY, PROP_EVENT_EXECUTION_AUTOMATIC, PROP_EVENT_EXECUTION_COMPLETE, PROP_EVENT_EXECUTION_COMPLETED_AT, PROP_EVENT_EXECUTION_COMPLETED_BY, PROP_EVENT_EXECUTION_NAME, PROP_FROZEN_AT, PROP_FROZEN_BY, PROP_HELD_CHILDREN_COUNT, PROP_HOLD_REASON, PROP_IDENTIFIER, PROP_IS_CLOSED, PROP_LOADED_DATA_SET_IDS, PROP_LOCATION, PROP_MANUALLY_SET_AS_OF, PROP_ORIGIONAL_NAME, PROP_PUBLISH_IN_PROGRESS, PROP_READERS, PROP_RECORD_LEVEL_DISPOSITION, PROP_RECORD_ORIGINATING_CREATION_DATE, PROP_RECORD_ORIGINATING_LOCATION, PROP_RECORD_ORIGINATING_USER_ID, PROP_RECORD_REJECTION_DATE, PROP_RECORD_REJECTION_REASON, PROP_RECORD_REJECTION_USER_ID, PROP_REVIEW_AS_OF, PROP_REVIEW_PERIOD, PROP_ROOT_NODEREF, PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_AT, PROP_RS_DECLASSIFICATION_REVIEW_COMPLETED_BY, PROP_RS_DISPOITION_AUTHORITY, PROP_RS_DISPOITION_INSTRUCTIONS, PROP_RS_DISPOSITION_ACTION_AS_OF, PROP_RS_DISPOSITION_ACTION_NAME, PROP_RS_DISPOSITION_EVENTS, PROP_RS_DISPOSITION_EVENTS_ELIGIBLE, PROP_RS_DISPOSITION_PERIOD, PROP_RS_DISPOSITION_PERIOD_EXPRESSION, PROP_RS_HAS_DISPOITION_SCHEDULE, PROP_RS_HOLD_REASON, PROP_RS_VITAL_RECORD_REVIEW_PERIOD, PROP_RS_VITAL_RECORD_REVIEW_PERIOD_EXPRESSION, PROP_TRANSFER_ACCESSION_INDICATOR, PROP_TRANSFER_LOCATION, PROP_TRANSFER_PDF_INDICATOR, PROP_UNPUBLISHED_UPDATE, PROP_UPDATE_TO, PROP_UPDATED_PROPERTIES, PROP_VITAL_RECORD_INDICATOR, PROP_WRITERS, RM_MODEL, RM_PREFIX, RM_URI, TYPE_CAVEAT_CONFIG, TYPE_DISPOSITION_ACTION, TYPE_DISPOSITION_ACTION_DEFINITION, TYPE_DISPOSITION_SCHEDULE, TYPE_EMAIL_CONFIG, TYPE_EVENT_EXECUTION, TYPE_FILE_PLAN, TYPE_HOLD, TYPE_HOLD_CONTAINER, TYPE_NON_ELECTRONIC_DOCUMENT, TYPE_RECORD_CATEGORY, TYPE_RECORD_FOLDER, TYPE_RECORDS_MANAGEMENT_CONTAINER, TYPE_RM_SITE, TYPE_TRANSFER, TYPE_TRANSFER_CONTAINER, TYPE_UNFILED_RECORD_CONTAINER, TYPE_UNFILED_RECORD_FOLDER, UPDATE_TO_DISPOSITION_ACTION_DEFINITION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecordType(NodeRef nodeRef, QName typeQName) Adds the specified type to the recordvoidCompletes a recordvoidcreateRecord(NodeRef filePlan, NodeRef nodeRef) Links the newly created record to it's original location.voidcreateRecord(NodeRef filePlan, NodeRef nodeRef, boolean isLinked) Creates a new unfiled record from an existing node.voidcreateRecord(NodeRef filePlan, NodeRef nodeRef, NodeRef destinationNodeRef) Creates a new record from an existing node and files it into the specified location.voidcreateRecord(NodeRef filePlan, NodeRef nodeRef, NodeRef destinationNodeRef, boolean isLinked) Creates a new record from an existing node and files it into the specified location.createRecordFromContent(NodeRef parent, String name, QName type, Map<QName, Serializable> properties, ContentReader reader) Creates a new document in the unfiled records container if the given node reference is a file plan node reference otherwise the node reference will be used as the destination for the new record.createRecordFromCopy(NodeRef filePlan, NodeRef nodeRef) Creates a record from a copy of the node reference provided.voidDisables the property editable check.voiddisablePropertyEditableCheck(NodeRef nodeRef) Disables the property editable check for a given node in this transaction only.voidEnables the property editable check.voidHelper method to 'file' a new document that arrived in the file plan structure.getRecordMetadataAspects(NodeRef nodeRef) Gets a list of all the record metadata aspects relevant to the file plan type of the file plan component provided.getRecordMetadataAspects(QName filePlanType) Gets a list of all the record metadata aspect that relate to the provided file plan type.Deprecated.since 2.2, file plan is required to provide contextGet map containing record metadata aspects.getRecords(NodeRef recordFolder) Gets a list of all the records within a record foldervoidinit()Init methodprotected voidinvokeBeforeRecordDeclaration(NodeRef nodeRef) Invoke invokeBeforeRecordDeclaration policyprotected voidinvokeBeforeRecordRejection(NodeRef nodeRef) Invoke invokeBeforeRecordRejection policyprotected voidinvokeOnRecordDeclaration(NodeRef nodeRef) Invoke invokeOnRecordDeclaration policyprotected voidinvokeOnRecordRejection(NodeRef nodeRef) Invoke invokeOnRecordRejection policybooleanIndicates whether the record is filed or notbooleanisMetadataStub(NodeRef nodeRef) Indicates whether the given node (record or record folder) is a metadata stub or not.booleanisPropertyEditable(NodeRef record, QName property) Indicates whether a property of a record is editable for the current user or not.booleanisRecordMetadataAspect(QName aspect) Indicates whether the provided aspect is a registered record meta-data aspect.booleanisRecordMetadataProperty(QName property) Indicates whther the provided property is declared on a registered record meta-data aspect.voidLinks a record to a record foldervoidmakeRecord(NodeRef document) Creates a record from the given documentvoidonAddAspect(NodeRef nodeRef, QName aspect) voidonContentUpdate(NodeRef nodeRef, boolean newContent) voidonCreateChildAssociation(ChildAssociationRef childAssocRef, boolean bNew) Behaviour executed when a new item is added to a record folder.voidonRemoveAspect(NodeRef nodeRef, QName aspect) voidonUpdateProperties(NodeRef nodeRef, Map<QName, Serializable> before, Map<QName, Serializable> after) Ensure that the user only updates record properties that they have permission to.voidregisterRecordMetadataAspect(QName recordMetadataAspect, QName filePlanType) Register a record metadata aspect.voidrejectRecord(NodeRef nodeRef, String reason) Rejects a record with the provided reasonvoidsetAlwaysEditURIs(List<String> alwaysEditURIs) voidsetCapabilityService(CapabilityService capabilityService) voidsetCheckMandatoryPropertiesEnabled(boolean checkMandatoryPropertiesEnabled) voidsetDispositionService(DispositionService dispositionService) voidsetExtendedPermissionService(ExtendedPermissionService extendedPermissionService) voidsetExtendedSecurityService(ExtendedSecurityService extendedSecurityService) voidsetFileFolderService(FileFolderService fileFolderService) voidsetFilePlanRoleService(FilePlanRoleService filePlanRoleService) voidsetFilePlanService(FilePlanService filePlanService) voidsetFreezeService(FreezeService freezeService) voidsetIdentifierService(IdentifierService identifierService) voidsetIncompleteNodeTagger(IncompleteNodeTagger incompleteNodeTagger) voidsetNamespaceService(NamespaceService namespaceService) voidsetNotificationHelper(RecordsManagementNotificationHelper notificationHelper) voidsetOwnableService(OwnableService ownableService) voidsetPermissionService(PermissionService permissionService) voidsetPolicyComponent(PolicyComponent policyComponent) voidsetRecordableVersionService(RecordableVersionService recordableVersionService) voidsetRecordFolderService(RecordFolderService recordFolderService) voidsetRecordModelURIs(List<String> recordModelURIs) voidsetRecordsManagementContainerType(RecordsManagementContainerType recordsManagementContainerType) voidsetRelationshipService(RelationshipService relationshipService) voidsetRuleService(RuleService ruleService) voidsetVersionService(VersionService versionService) voidUnlinks a record from a specified record folder.Methods inherited from class org.alfresco.module.org_alfresco_module_rm.model.BaseBehaviourBean
getBehaviour, registerBehaviour, setBehaviourFilter, validateNewChildAssociation, validateNewChildAssociationSubTypesIncludedMethods inherited from class org.alfresco.module.org_alfresco_module_rm.util.ServiceBaseImpl
getFilePlan, getFilePlanComponentKind, getFilePlanComponentKindFromType, getInternalNodeService, getNextCount, getTypeAndApsects, instanceOf, instanceOf, isDeclared, isFilePlan, isFilePlanComponent, isFilePlanContainer, isHold, isRecord, isRecordCategory, isRecordFolder, isTransfer, isUnfiledRecordsContainer, setApplicationContext, setAuthenticationUtil, setContentService, setDictionaryService, setNodeService, setNodeTypeUtility, setRenditionService, setTransactionalResourceHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.module.org_alfresco_module_rm.record.RecordService
isDeclared, isRecord
-
Field Details
-
KEY_NEW_RECORDS
- See Also:
-
-
Constructor Details
-
RecordServiceImpl
public RecordServiceImpl()
-
-
Method Details
-
setAlwaysEditURIs
- Parameters:
alwaysEditURIs- the alwaysEditURIs to set
-
getAlwaysEditURIs
- Returns:
- the alwaysEditURIs
-
setRecordModelURIs
- Parameters:
recordModelURIs- namespaces specific to records
-
getRecordableVersionService
-
setIdentifierService
- Parameters:
identifierService- identifier service
-
setExtendedPermissionService
- Parameters:
extendedPermissionService- extended permission service
-
setExtendedSecurityService
- Parameters:
extendedSecurityService- extended security service
-
setFilePlanService
- Parameters:
filePlanService- file plan service
-
setNotificationHelper
- Parameters:
notificationHelper- notification helper
-
setPolicyComponent
- Parameters:
policyComponent- policy component
-
setOwnableService
- Parameters:
ownableService- ownable service
-
setCapabilityService
- Parameters:
capabilityService- capability service
-
setRuleService
- Parameters:
ruleService- rule service
-
setFileFolderService
- Parameters:
fileFolderService- file folder service
-
setRecordFolderService
- Parameters:
recordFolderService- record folder service
-
setFilePlanRoleService
- Parameters:
filePlanRoleService- file plan role service
-
setPermissionService
- Parameters:
permissionService- permission service
-
setVersionService
- Parameters:
versionService- version service
-
setRelationshipService
- Parameters:
relationshipService- relationship service
-
setDispositionService
- Parameters:
dispositionService- disposition service
-
setRecordsManagementContainerType
public void setRecordsManagementContainerType(RecordsManagementContainerType recordsManagementContainerType) - Parameters:
recordsManagementContainerType- records management container type
-
setRecordableVersionService
- Parameters:
recordableVersionService- recordable version service
-
setIncompleteNodeTagger
-
setFreezeService
- Parameters:
freezeService- freeze service
-
setNamespaceService
- Parameters:
namespaceService- namespace service
-
setCheckMandatoryPropertiesEnabled
public void setCheckMandatoryPropertiesEnabled(boolean checkMandatoryPropertiesEnabled) - Parameters:
checkMandatoryPropertiesEnabled- true if check mandatory properties is enabled, false otherwise
-
init
public void init()Init method -
onAddAspect
-
onRemoveAspect
-
onCreateChildAssociation
Behaviour executed when a new item is added to a record folder. -
disablePropertyEditableCheck
public void disablePropertyEditableCheck()Description copied from interface:RecordServiceDisables the property editable check.- Specified by:
disablePropertyEditableCheckin interfaceRecordService- See Also:
-
disablePropertyEditableCheck
Description copied from interface:RecordServiceDisables the property editable check for a given node in this transaction only.- Specified by:
disablePropertyEditableCheckin interfaceRecordService- Parameters:
nodeRef- node reference- See Also:
-
enablePropertyEditableCheck
public void enablePropertyEditableCheck()Description copied from interface:RecordServiceEnables the property editable check. By default this is always enabled.- Specified by:
enablePropertyEditableCheckin interfaceRecordService- See Also:
-
onUpdateProperties
public void onUpdateProperties(NodeRef nodeRef, Map<QName, Serializable> before, Map<QName, Serializable> after) Ensure that the user only updates record properties that they have permission to. -
getRecordMetadataAspectsMap
Get map containing record metadata aspects. -
registerRecordMetadataAspect
Description copied from interface:RecordServiceRegister a record metadata aspect.The file plan type indicates which file plan type the aspect applied to. Null indicates that the aspect applies to rma:filePlan.
A record metadata aspect can be registered more than once if it applies to more than one file plan type.
- Specified by:
registerRecordMetadataAspectin interfaceRecordService- Parameters:
recordMetadataAspect- record metadata aspect qualified namefilePlanType- file plan type- See Also:
-
getRecordMetaDataAspects
Deprecated.since 2.2, file plan is required to provide contextDescription copied from interface:RecordServiceGets a list of all the record meta-data aspects- Specified by:
getRecordMetaDataAspectsin interfaceRecordService- Returns:
Set<QName> list of record meta-data aspects
-
isRecordMetadataAspect
Description copied from interface:RecordServiceIndicates whether the provided aspect is a registered record meta-data aspect.- Specified by:
isRecordMetadataAspectin interfaceRecordService- Parameters:
aspect- aspectQName- Returns:
- boolean true if the aspect is a registered record meta-data aspect, false otherwise
- See Also:
-
isRecordMetadataProperty
Description copied from interface:RecordServiceIndicates whther the provided property is declared on a registered record meta-data aspect.- Specified by:
isRecordMetadataPropertyin interfaceRecordService- Parameters:
property- propertyQName- Returns:
- boolean true if the property is declared on a registered record meta-data aspect, false otherwise
- See Also:
-
getRecordMetadataAspects
Description copied from interface:RecordServiceGets a list of all the record metadata aspects relevant to the file plan type of the file plan component provided.If a null context is provided all record meta-data aspects are returned, but this is not recommended.
- Specified by:
getRecordMetadataAspectsin interfaceRecordService- Parameters:
nodeRef- node reference to file plan component providing context- Returns:
Set<QName> list of record meta-data aspects- See Also:
-
getRecordMetadataAspects
Description copied from interface:RecordServiceGets a list of all the record metadata aspect that relate to the provided file plan type.If null is provided for the file plan type then record metadata aspects for the default file plan type (rma:filePlan) are returned.
- Specified by:
getRecordMetadataAspectsin interfaceRecordService- Parameters:
filePlanType- file plan type- Returns:
Set<QName> list of record meta-data aspects- See Also:
-
createRecord
Description copied from interface:RecordServiceLinks the newly created record to it's original location.- Specified by:
createRecordin interfaceRecordService- See Also:
-
createRecord
Description copied from interface:RecordServiceCreates a new unfiled record from an existing node.Note that the node reference of the record will be the same as the original document.
- Specified by:
createRecordin interfaceRecordService- Parameters:
filePlan- The filePlan in which the record should be placed. filePlan can benullin this case the default RM site will be used.nodeRef- The node from which the record will be createdisLinked- indicates if the newly created record is linked to it's original location or not.- See Also:
-
createRecord
Description copied from interface:RecordServiceCreates a new record from an existing node and files it into the specified location.Note that the node reference of the record will be the same as the original document.
- Specified by:
createRecordin interfaceRecordService- Parameters:
filePlan- The filePlan in which the record should be placed. filePlan can benullin this case the default RM site will be used.nodeRef- The node from which the record will be createddestinationNodeRef- The container in which the record will be created- See Also:
-
createRecord
public void createRecord(NodeRef filePlan, NodeRef nodeRef, NodeRef destinationNodeRef, boolean isLinked) Description copied from interface:RecordServiceCreates a new record from an existing node and files it into the specified location.Note that the node reference of the record will be the same as the original document.
- Specified by:
createRecordin interfaceRecordService- Parameters:
filePlan- The filePlan in which the record should be placed. filePlan can benullin this case the default RM site will be used.nodeRef- The node from which the record will be createddestinationNodeRef- The container in which the record will be createdisLinked- indicates if the newly created record is linked to it's original location or not.- See Also:
-
createRecordFromCopy
Description copied from interface:RecordServiceCreates a record from a copy of the node reference provided.- Specified by:
createRecordFromCopyin interfaceRecordService- Parameters:
filePlan- file plannodeRef- node reference- See Also:
-
createRecordFromContent
public NodeRef createRecordFromContent(NodeRef parent, String name, QName type, Map<QName, Serializable> properties, ContentReader reader) Description copied from interface:RecordServiceCreates a new document in the unfiled records container if the given node reference is a file plan node reference otherwise the node reference will be used as the destination for the new record.- Specified by:
createRecordFromContentin interfaceRecordService- Parameters:
parent- parent node referencename- name of the new recordtype- content type, cm:content if nullproperties- propertiesreader- content reader- See Also:
-
makeRecord
Creates a record from the given document- Specified by:
makeRecordin interfaceRecordService- Parameters:
document- the document from which a record will be created
-
isFiled
Description copied from interface:RecordServiceIndicates whether the record is filed or not- Specified by:
isFiledin interfaceRecordService- Parameters:
nodeRef- nodeRef of record- Returns:
- boolean true if filed, false otherwise
- See Also:
-
file
Helper method to 'file' a new document that arrived in the file plan structure. TODO atm we only 'file' content as a record .. may need to consider other types if we are to support the notion of composite records.- Specified by:
filein interfaceRecordService- Parameters:
record- node reference to record (or soon to be record!)
-
rejectRecord
Description copied from interface:RecordServiceRejects a record with the provided reason- Specified by:
rejectRecordin interfaceRecordService- Parameters:
nodeRef- The record which will be rejectedreason- The reason for rejection- See Also:
-
isPropertyEditable
Description copied from interface:RecordServiceIndicates whether a property of a record is editable for the current user or not.- Specified by:
isPropertyEditablein interfaceRecordService- Parameters:
record- recordproperty- property- Returns:
- boolean true if editable, false otherwise.
- See Also:
-
isMetadataStub
Description copied from interface:RecordServiceIndicates whether the given node (record or record folder) is a metadata stub or not.- Specified by:
isMetadataStubin interfaceRecordService- Parameters:
nodeRef- node reference- Returns:
- boolean true if a metadata stub, false otherwise
- See Also:
-
getRecords
Description copied from interface:RecordServiceGets a list of all the records within a record folder- Specified by:
getRecordsin interfaceRecordService- Parameters:
recordFolder- record folder- Returns:
- List<NodeRef> list of records in the record folder
- See Also:
-
addRecordType
Description copied from interface:RecordServiceAdds the specified type to the record- Specified by:
addRecordTypein interfaceRecordService- Parameters:
nodeRef- Record node referencetypeQName- Type to add- See Also:
-
link
Description copied from interface:RecordServiceLinks a record to a record folder- Specified by:
linkin interfaceRecordService- Parameters:
record- the record to linkrecordFolder- the record folder to link it to- See Also:
-
unlink
Description copied from interface:RecordServiceUnlinks a record from a specified record folder.- Specified by:
unlinkin interfaceRecordService- Parameters:
record- the record to unlinkrecordFolder- the record folder to unlink it from- See Also:
-
onContentUpdate
- Specified by:
onContentUpdatein interfaceContentServicePolicies.OnContentUpdatePolicy
-
invokeBeforeRecordDeclaration
Invoke invokeBeforeRecordDeclaration policy- Parameters:
nodeRef- node reference
-
invokeOnRecordDeclaration
Invoke invokeOnRecordDeclaration policy- Parameters:
nodeRef- node reference
-
invokeBeforeRecordRejection
Invoke invokeBeforeRecordRejection policy- Parameters:
nodeRef- node reference
-
invokeOnRecordRejection
Invoke invokeOnRecordRejection policy- Parameters:
nodeRef- node reference
-
complete
Completes a record- Specified by:
completein interfaceRecordService- Parameters:
nodeRef- Record node reference
-