Académique Documents
Professionnel Documents
Culture Documents
1. About JCR
2. What is CRX
3. Features of CRX
4. Structure of CRX
5. How the data is stored in CRX
6. CRX Explorer and CRXDE
About JCR
1.AJCRrepositorycanbethoughtofasa
"superfilesystem".
2.JCRcombinescharacteristicsof
conventionalfilesystemswiththoseof
relationaldatabases,andaddsanumberof
additionalfeaturesthatcontent
applicationsoftenneed.
3.ContentinaJCRrepositorycanbe
addressedbypath.Thisisusefulwhen
deliveringcontenttothewebsincemost
websitesarealsoorganized
hierarchically.
What is CRX?
1.CRXisadatastoragesystem
specificallydesignedforcontent
centricapplications.
2.CRXimplementstheContent
RepositoryAPIforJavaTechnology
(JCR).
3.Thisstandarddefinesadatamodel
andapplicationprogramminginterface
(thatis,asetofcommands)for
contentrepositories.
Features of CRX
1.Hierarchy:ContentinaCRX
repositorycanbeaddressedbypath.
Thisisusefulwhendeliveringcontent
tothewebsincemostwebsitesare
alsoorganizedhierarchically.
2.Semistructuredcontent:CRXcan
storestructureddocuments,likeXML,
eitherasopaquefiles(asafile
systemwould)orasstructures
ingesteddirectlyintotheJCR
hierarchy.
3.AccessControlandLocking:CRXcan
restrictaccesstodifferentpartsofthe
contenthierarchybasedonpoliciesor
ACLs.Italsosupportslockingofcontent
topreventconflicts.
LinktoDetailedDescription::
http://dev.day.com/docs/en/crx/current/ge
tting_started/overview.html
Structure of CRX
Node and its properties.
CRX Structure
InCQtheCRXhasthefollowingfolder
structure
/apps
/libs
/etc
/var
/bin
/home
/content
/tmp
*LONG
*DOUBLE
*DECIMAL
*PATH
*NAME
*BINARY
*REFERENCE
*WEAKREFERENCE
SUMMARYOFTHEJCRREPOSITORYMODEL
ThemainfeaturesoftheJCRrepositorymodelare:
1)Arepositoryconsistofoneormore
workspaces.
2)Eachworkspaceconsistsofahierarchyof
nodesandproperties.
3)Nodesandpropertiescanbeaddressedby
path.
4)Nodescanalsobeaddresseddirectlyby
uniqueidentifiers.
5)Propertiesstoretheactualcontentofthe
repository.
6)Nodesprovidethestructuralorganization
ofthecontent.
7)Propertieshavetypes.
8)Nodeshavetypes
9)Anode'stypegovernswhichpropertiesand
subnodesitmayormusthave.
10)Nodetypescanbeusedtoenforce
constraintsoncontentstructures.
11)But,JCRalsosupportsfreeform
unstructuredcontent.
7)ExecuteXPATH/SQL2queriestosearchfor
contentintherepository.
8)Namespaceadministrationcanbedone.
9)TarPersistencemanagementcanbedone.
CRXDE Lite
1)CRXDEisadevelopmentenvironmentin
CQ.
2)Itisaservletanditcanbeaccessed
byurl:http://localhost:4502/crx/de.
3)WecancreateTemplates,Components,
Bundles,createanddeletethenodes,
Executethequeries,addmixinstothe
nodes.
4)MostofthefunctionalitiesofCRX
ExplorercanbedonefromCRXDE.
5)Mostlyusedfordevelopmentpurpose.
6)EclipsebasedCRXDEcanbeusedasan
alternativeforthis.
Widget
1)Widgetisanextjscomponentusedfor
componentdevelopmentinCQ.
2)Awidgetisaddedtothecomponentby
usingthepropetyXTYPE.
3)Somedefaultwidgetsaretextfield,
selection,richtext,pathfield,button,
textarea,etc..
4)InCQcomponentaUIelementiscreated
basedonthegivenxtype.
5)Acomponentcanhavemultiplewidgets.
DifferentWidgetscanbeexaminedinthe
followingURL:
http://dev.day.com/docs/en/cq/56/widgets
api/index.html
Dialog
1) Adialogprovidestheuserwithanoption
toeditthecontentonthepagedynamically
withouteditingthehtml.
2)Adialogisanextjscomponentwhich
holdsdifferentwidgets.
3)Adialogwillholdacontainerwhichcan
beapanelorwidgetcollectionwhichin
turnholdsthewidgets.
4)Adialogisaddedtoacomponentandthe
componentisaddedtothepage.Usercan
editthecontentforthatcomponentbasedon
thegivenwidgets.
5)Theeditedcontentisstoredunderthe
pagejcr:contentnode.