Package fr.becpg.repo.jscript.app
Class BeCPGJSONConversionComponent
java.lang.Object
org.alfresco.repo.jscript.app.JSONConversionComponent
fr.becpg.repo.jscript.app.BeCPGJSONConversionComponent
public class BeCPGJSONConversionComponent
extends org.alfresco.repo.jscript.app.JSONConversionComponent
BeCPGJSONConversionComponent class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<org.alfresco.service.namespace.QName,AssociationDecorator> Registered decoratorsprivate AssociationServiceprivate static final Stringprivate static final org.apache.commons.logging.Logprivate static final Stringprivate SecurityServiceFields inherited from class org.alfresco.repo.jscript.app.JSONConversionComponent
contentService, fileFolderService, lockService, mimetypeService, namespacePrefixCache, namespaceService, nodeService, permissionService, propertyDecorators, publicServiceAccessService, userPermissions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.json.simple.JSONObjectassociationsToJSON(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean useShortQNames) associationsToJSON.private StringqnameToString(org.alfresco.service.namespace.QName qname, boolean isShortName) Convert a qname to a string - either full or short prefixed named.voidregisterAssociationDecorator(AssociationDecorator associationDecorator) Register a property decorator;voidsetAssociationService(AssociationService associationService) Setter for the fieldassociationService.voidsetSecurityService(SecurityService securityService) Setter for the fieldsecurityService.toJSON(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean useShortQNames) Convert a node reference to a JSON string.protected org.json.simple.JSONObjectuserPermissionsToJSON(org.alfresco.service.cmr.repository.NodeRef nodeRef) Methods inherited from class org.alfresco.repo.jscript.app.JSONConversionComponent
allSetPermissionsToJSON, apsectsToJSON, permissionsToJSON, propertiesToJSON, propertyToJSON, registerPropertyDecorator, setContentService, setFileFolderService, setLockService, setMimetypeService, setNamespaceService, setNodeService, setPermissionService, setPublicServiceAccessService, setRootValues, setUserPermissions, toJSONObject
-
Field Details
-
CREATE_CHILDREN
- See Also:
-
associationService
-
securityService
-
REPORT_DOWNLOAD_API_URL
- See Also:
-
logger
private static final org.apache.commons.logging.Log logger -
associationDecorators
protected final Map<org.alfresco.service.namespace.QName,AssociationDecorator> associationDecoratorsRegistered decorators
-
-
Constructor Details
-
BeCPGJSONConversionComponent
public BeCPGJSONConversionComponent()
-
-
Method Details
-
setSecurityService
Setter for the field
securityService.- Parameters:
securityService- aSecurityServiceobject.
-
setAssociationService
Setter for the field
associationService.- Parameters:
associationService- aAssociationServiceobject.
-
registerAssociationDecorator
Register a property decorator;- Parameters:
associationDecorator- aAssociationDecoratorobject.
-
toJSON
Convert a node reference to a JSON string. Selects the correct converter based on selection implementation.- Overrides:
toJSONin classorg.alfresco.repo.jscript.app.JSONConversionComponent
-
associationsToJSON
protected org.json.simple.JSONObject associationsToJSON(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean useShortQNames) associationsToJSON.
- Parameters:
nodeRef- aNodeRefobject.useShortQNames- a boolean.- Returns:
- a
JSONObjectobject.
-
qnameToString
Convert a qname to a string - either full or short prefixed named. -
userPermissionsToJSON
protected org.json.simple.JSONObject userPermissionsToJSON(org.alfresco.service.cmr.repository.NodeRef nodeRef) - Overrides:
userPermissionsToJSONin classorg.alfresco.repo.jscript.app.JSONConversionComponent
-