on 12-30-2006 5:03 AM
Hi,
I've developed a Repository Manager and packaged it into a par.
In the RM I added some new UICommands and properties. That's, after deploying the par, the user needs map the new UICommands in KM-CM-User Interface, map new properties in KM-CM-Global Services, and add the commands to a layout, and finally set the layout to the repository.
Is there any way to deliver these settings along with the par, so that users can use the new commands immediately after deploying the par?
Thanks,
Ray
Need help~~~ I have tried to export a layout set and then import it, but always fail... and still I have to map commands and properties manually.
I think there should be ways to ship the configuration information with the par.... Anybody knows how?
Thanks,
Ray
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ray,
you can download the sample implementation from the SDN Guide <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/31fa0d2d-0401-0010-efa3-af7a8647c3bc">Implementing Resource List Filters for Flexible UI Navigation</a> to see how it's implemented there.
You would need a folder src.config with the same structure you will find the KM LayoutSet export (i.e.: \install\data\cm\services\properties_metadata).
Hope this helps,
Robert
Hi Robert,
Thanks for your help.
For the guide, I guess what I want is not a resource filter - I wanna know how to add & map properties, commands, layout set...
For the structure, now I know I should add properties metadata in src.config, and maybe so it is with commands metadata - but what should I do for them.... I have looked at the exported configarchive, but there're many many co.xml. Do I need all of them? Your kind advice can save me lots of time~
Thanks,
Ray
Hi Robert,
Fine, I am testing it according to your help.
This is the question of configuring & mapping commands, so how can I add & map properties along with deploying the par? For example, my repository manager may add some new properties (and namespaces), can I do it in code, rather than going to Content Admin - KM - Global Services - Properties?
Thanks,
Ray
Hi Ray,
as mentioned above, instead of creating the properties manually you can integrated the KM configuration XML files in your par file.
For example, to create a new property my_displayname you can first create a XML files with the following content and save it in the folder of the PAR file I mentioned above:
<?xml version="1.0" encoding="UTF-8" ?>
<Configurable configclass="PropertyMetadata">
<property name="bundlekey" value="cm_rnd_displayname"/>
<property name="folder_patterns" value="/documents/**"/>
<property name="renderer" value="my_displayname"/>
<property name="values"/>
<property name="metadata_extension" value="my_labels"/>
<property name="default_value"/>
<property name="namespace_alias" value="my"/>
<property name="comparator_class"/>
<property name="readonly" value="false"/>
<property name="property_id" value="my_displayname"/>
<property name="maintainable" value="true"/>
<property name="hidden" value="false"/>
<property name="indexable" value="true"/>
<property name="resource_types"/>
<property name="mandatory" value="true"/>
<property name="group" value="my"/>
<property name="dependencies" value="false"/>
<property name="composed_of"/>
<property name="multi_valued" value="false"/>
<property name="type" value="String"/>
<property name="document_patterns"/>
<property name="additional_meta_tags"/>
<property name="sortmode" value="Ascending"/>
<property name="virtual" value="false"/>
<property name="mime_types"/>
<property name="labelIcon"/>
<property name="unique_id" value="my_displayname"/>
<property name="description"/>
</Configurable>
The namesace configuration file must be under src.config\install\data\cm\services\properties_metadata\namespaces\ and could look similar to this:
<?xml version="1.0" encoding="UTF-8" ?>
<Configurable configclass="PropertyNamespace">
<property name="namespace" value="http://net.brose.portal/xmlns/cm"/>
<property name="alias" value="brose"/>
</Configurable>
Hope this helps,
Robert
Hi Robert,
Thanks. Now let's move on:)
For the property, I tried to put the xx.co.cml under <b>properties_metadata</b> and <b>properties_metadata/properties</b>, but neither is OK - namespace.co.xml under <b>properties_metadata/namespaces</b> is OK. Commands and layouts are also OK.
Then, the user needs first enable service "presentation" before he can change the layout set of a document. So, can I also enable this service, and set the repository's layout in configarchive? I guess we can add a co.xml under cm/repository_services, but I don't know the format:(
Or, before deploying the repository manager, can I specify its layout in code?
Thanks,
Ray
Hi Ray,
sorry for not being able to reply earlier.
You can deliver properties with a PAR file like you have done with other KM configuration settings.
As mentioned above you need to create a new Portal Application in NWDS and create the folders src.config / install / data / cm / services / properties_metadata.
In this folder you can create the your_property.co.xml file that can look similar with the one I pasted above.
Additional you might need a configArchive.properties file directly under src.config with content similar to this:
ca.name=my.test
ca.version=6.0.1.0
ca.dependencies=
ca.creation.time=1041
ca.creation.date=20070125
ca.creation.user=undefined
ca.creation.machine=undefined
Concerning the Repository Manager it's the same procedure. You need to create the folder structure src.config / install / data / cm / repository_managers and there the configuration file with the content similar to the one posted by Thilo in the <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a772ac90-0201-0010-9985-8a1f74d7b152">Implementing a Repository Manager Guide</a>.
The section where you mention the repository services might look like:
<property name="services" value="layout, properties"/>
Hope this helps,
Robert
Hi Robert,
Thanks for help:)
As to properties, I've tried to add a my_property.co.xml under install/data/cm/services/properties_metadata and ..../properties_metadata_properties, but neither is OK, saying that there's no corresponding configuration definition file under some folder I forgot:(
From the import-xx.prjconfig I can see many things, like icons and mimes can also be deployed in the config archive. (local/cm/utilities/mimes, local/cm/utilities/icons, local/cm/utilities/channels, etc). Is there any document explaining the structure of the configuration files?
Thanks:)
Part of the import-xx-prjconfig:
Folder "config://local/cm/repository_services/event_mappings" migrated
Migrating folder "config://local/cm/utilities"
No configuration objects to create
Folder "config://local/cm/utilities" migrated
Migrating folder "config://local/cm/utilities/mimes"
Creating configuration objects (step "1")
"sh","roff","html","swa","boe_rep","movie","vcd","vdo","mov","rgb","body","VDA","for","boe_ana","aiff","xwd","jpe","JPE","pbm","apr","thtml","png","boe_wid","nc","DWG","ppz","f90","MPEG","DRW","skt","silo","tht","dvi","der","dxf","wk3","asx","com","cdf","boe_miv","etx","wk4","jpeg","wav","prz","SET","pot","scm","log","org","xml","sv4cpio","dir","ps","rpt","cpp","pdf","STP","JPG","sap-crt_state-warn","ms","PRT","rpm","bin","class","mif","ai","asm","txt","doc","perl","rm","sam","igs","tcl","uu","cxx","PS","tif","tiff","c","h","def","dms","swf","skm","vew","csh","wrl","cpio","dwg","asf","JPEG","sap-crt_state-ok","js","wiki","mpv2","MPG","lzh","boe_car","snd","lst","shar","bsh","iges","bcpio","asp","MPE","boe_rpt","spl","ram","xls","mw","or3","mp3","tar","lwp","thtm","au","boe_pkg","ice","tex","tr","sv4crc","ra","IGES","conf","bmp","man","boe_lnk","STEP","ief","hlp","zip","oda","latex","boe_dpg","mpp","boe_pub","CCAD","texinfo","dxr","gz","pps","vda","pgn","ksh","mp2","vsd","sdml","ez","dcr","mpe","STL","pl","hdf","jhtml","aifc","gif","wmf","uil","mjpg","ppt","DXF","unv","t","sim","pgm","prs","avx","hh","gtar","sgm","C","wp","src","qt","rtf","UNV","java","mime","ppa","set","mid","css","step","skp","smi","sap-crt_state-error","dot","ppm","midi","texi","lha","shtml","mpga","kar","ras","vrml","rtx","ustar","msh","pre","or2","mesh","mar","xbm","cpt","mpeg","wk1","sgml","viv","pnm","123","xpm","SOL","smil","mpg","hqx","xsl","htmls","prt","pcl","stl","htm","exe","list","Z","o","jar","cer","cc","avi","skd","eps","xyz","me","pdb","tsv","m","mpx","IGS","dtd","stp","sit","jpg","aif",
Folder "config://local/cm/utilities/mimes" migrated
Migrating folder "config://local/cm/utilities/acl_managers"
Creating configuration objects (step "1")
"acl_jdbc_rep_mgr","acl_jdbc_service_mgr",
Folder "config://local/cm/utilities/acl_managers" migrated
Migrating folder "config://local/cm/utilities/icons"
Creating configuration objects (step "1")
"link.application_vnd.wcm-folder","application_vnd.visio","audio_x_mpeg","link.audio_basic","boe_rep","text_xml","audio_midi","boerpt2","rpt","link.text_plain","application_vnd.wcm-weblink","application_vnd.ms-powerpoint","link.text_html","sap-crt_state-warn","boe_package","link.application_msword","boe_analysis_report","audio_basic","boe_myinfoview","link.audio_midi","default","link.application_pdf","link.application_vnd.visio","link.video_vdo","link.application_vnd.ms-excel","link.image_","boe_wid","link.default","application_pdf","text_html","text_plain","application_msword","boe_publication","boe_hyperlink","application_vnd.ms-excel","boe_dashboard","application_vnd.wcm-folder","audio_mpeg","link.audio_x_mpeg","link.audio_mpeg","boe_analytic","sap-crt_state-not-init","sap-crt_state-ok","video_vdo","link.text_xml","image_","link.application_octet-stream","boe_rpt","link.application_vnd.ms-powerpoint","bo_txt","sap-crt_state-error",
Folder "config://local/cm/utilities/icons" migrated
Migrating folder "config://local/cm/utilities/connection_pools"
Creating configuration objects (step "1")
"dbcon_rep","dbcon_wcmdb_cm","dbcon_acl",
Folder "config://local/cm/utilities/connection_pools" migrated
Migrating folder "config://local/cm/utilities/connection_pools/db_type"
Creating configuration objects (step "1")
"default",
Folder "config://local/cm/utilities/connection_pools/db_type" migrated
Migrating folder "config://local/cm/utilities/channel_originators"
Creating configuration objects (step "1")
"subscription_collaboration.EMAIL","subscription.SMS","notificator.EMAIL","subscription_collaboration.SMS","subscription.EMAIL",
Folder "config://local/cm/utilities/channel_originators" migrated
Migrating folder "config://local/cm/utilities/editing"
Creating configuration objects (step "1")
"OnlineEditing","LocalEditing",
Folder "config://local/cm/utilities/editing" migrated
Migrating folder "config://local/cm/utilities/control_status"
Creating configuration objects (step "1")
"ControlStatusService",
Folder "config://local/cm/utilities/control_status" migrated
Migrating folder "config://local/cm/utilities/content_access"
Creating configuration objects (step "1")
"one-and-only",
Folder "config://local/cm/utilities/content_access" migrated
Migrating folder "config://local/cm/utilities/content_access/content_access_plugins"
Creating configuration objects (step "1")
"wcm",
Folder "config://local/cm/utilities/content_access/content_access_plugins" migrated
Migrating folder "config://local/cm/utilities/acl_factories"
Creating configuration objects (step "1")
"acl_jdbc_service","acl_jdbc_rep",
Folder "config://local/cm/utilities/acl_factories" migrated
Migrating folder "config://local/cm/utilities/caches"
Creating configuration objects (step "1")
"ca_xmlforms_renderlistitems","ca_cm_srv_acl_perm","stringkeymemorycache","classification","attachment","ca_props_1","ca_cm_content","nm","ca_dce_groups","ca_cm_rep_acl_perm","ca_cm","ca_rsrc_acl","ca_cm_rep_acl","ca_um","ca_idmapper","longkeymemorycache","ca_dce_users","rendering","ca_dce_domains","ca_websimple","ca_cm_srv_acl","oth","GWUI","ca_props_2","ca_contentaccess","css","ca_pipeline",
Folder "config://local/cm/utilities/caches" migrated
Migrating folder "config://local/cm/utilities/system_config"
Creating configuration objects (step "1")
"collaboration service","cmadmin_service","ice_service","com.sap.portal.super_admin_role","index_service","com.sap.portal.system_admin_role","com.sap.portal.content_admin_role","notificator_service","bw_service","timebasedpublish_service","subscription_service",
Folder "config://local/cm/utilities/system_config" migrated
Migrating folder "config://local/cm/utilities/system_config/permission_mappings"
Creating configuration objects (step "1")
"write","delete","read",
Folder "config://local/cm/utilities/system_config/permission_mappings" migrated
Migrating folder "config://local/cm/utilities/channels"
Creating configuration objects (step "1")
"INBOX","SMS","INTERNET","NULL","EMAIL",
Folder "config://local/cm/utilities/channels" migrated
Thanks,
Ray
Hi Ray,
looks like you have done something wrong there. Just drop me a email (you find my address in the business card) and I'll send you a par file with a sample property configuration that I deployed on my server.
Unfortunately, I'm not aware of any documentation on the structure of config archives.
Hope this helps never the less,
Robert
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.