Powered By Blogger

Tuesday, November 3, 2015

Getting NodeRef of CompanyHome

 NodeRef getCompanyHomeNodeRef(){
        NodeRef companyNoderef = null ;
        NodeRef parentRef =    nodeService.getRootNode(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
        //NodeRef companyNodeRef  = nodeService.getChildByName(parentRef, ContentModel.ASSOC_CONTAINS, "Company Home");
        QName qname = QName.createQName(NamespaceService.APP_MODEL_1_0_URI, "company_home");
        List assocRefs = nodeService.getChildAssocs(parentRef, ContentModel.ASSOC_CHILDREN, qname);
        if(assocRefs != null){
            companyNoderef =  assocRefs.get(0).getChildRef();
        }else{
            LOGGER.error("Not able to find the Company Home nodeReference");
        }      
        return companyNoderef;
    }
    

Monday, September 28, 2015

Alfresco database queries

  Below query will give the id for the url
 
  
   SELECT  [id] 
  FROM [irm_alfresco].[dbo].[alf_namespace] where uri='http://www.ironmountain.com/model/content/1.0'
 
  22

  Below query will give the id used in the alf_node table
     SELECT [id]
      ,[version]
      ,[ns_id]
      ,[local_name]
  FROM [irm_alfresco].[dbo].[alf_qname] where (ns_id='22' AND local_name='customType')
 
  251
 
  
   SELECT  [id]
      ,[version]
      ,[store_id]
      ,[uuid]
      ,[transaction_id]
      ,[type_qname_id]
      ,[locale_id]
      ,[acl_id]
      ,[audit_creator]
      ,[audit_created]
      ,[audit_modifier]
      ,[audit_modified]
      ,[audit_accessed]
  FROM [irm_alfresco].[dbo].[alf_node] where type_qname_id='251'
 
  35978,01a29a40-d34a-4093-a641-16b9be2fee6b
 
  All properties will be given distinguish them based on qnmae_id
 
  SELECT TOP 1000 [node_id]
      ,[actual_type_n]
      ,[persisted_type_n]
      ,[boolean_value]
      ,[long_value]
      ,[float_value]
      ,[double_value]
      ,[string_value]
      ,[serializable_value]
      ,[qname_id]
      ,[list_index]
      ,[locale_id]

  FROM [irm_alfresco].[dbo].[alf_node_properties] where node_id='35978'



SELECT *
FROM [irm_alfresco].[dbo].[alf_node] AS n,
[irm_alfresco].[dbo].[alf_qname] AS q
WHERE (n.type_qname_id=q.id
AND q.local_name='customType' AND q.ns_id= (SELECT  [id]  
  FROM [irm_alfresco].[dbo].[alf_namespace] where uri='http://www.patil.com/model/content/1.0'))

Tuesday, July 7, 2015

Dynamic value from Database in Content Model

1. Placed share-config-custom.xml in the location C:\Users\bp823602\Workspace\Projects\Patil\AlfrescoServershare\tomcat\shared\classes\alfresco\web-extension
       
           
                       

                                               
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                   
                                                                                           
                                                     
                                                                       
                                                                       
                                                                                   
                                               

                                               
                                                                                                                               
                                                                           
                                                                                                  /share/page/patil/clearCache
                                                                           

                                                                       
     
                                               

                       

         

     

Thursday, July 2, 2015

Wednesday, June 24, 2015

Dynamic value in Content Model

Refer to below links

http://ecmarchitect.com/archives/2008/08/13/845
http://govindaroul.blogspot.in/2013/10/dynamic-list-constraints-in-alfresco.html
http://blog.arvixe.com/custom-constrains-in-alfresco-model/

 https://forums.alfresco.com/forum/developer-discussions/technical-architecture-discussion/dynamic-list-constraint-08212012-1521

https://forums.alfresco.com/forum/general/non-technical-alfresco-discussion/jean-barmash-blog-03212012-0222
https://forums.alfresco.com/forum/developer-discussions/repository-services/custom-constraint-03262008-1636#p140018
http://wiki.alfresco.com/wiki/Forms_Examples
https://forums.alfresco.com/forum/general/non-technical-alfresco-discussion/jean-barmash-blog-03212012-0222

Wednesday, May 27, 2015

Maven setting up global proxy

Below proxy setting needs to be done

Below setting needs to be copied in the location C:\Users\bp823602\Documents\Maven\apache-maven-3.2.3-bin\apache-maven-3.2.3\conf\settings.xml

 
   
   

      optional
      true
      http  
      3.20.128.5
      88    
   
 
   
 

Maven jars download

To download the jars , use below command after installing maven

C:\Users\bp82602>mvn org.apache.directory.server:apacheds-all:2.0.0-M20

It will download jars for the configuration

org.apache.directory.server
apacheds-all
2.0.0-M20






Tuesday, May 26, 2015

Making lucene to work with datetime stamp

Configuring DateTime resolution

To get full DateTime resolution for quantified predicates and ordering the analyzer for date time in Alfresco needs to changed from date to date time. This will also require an index rebuild if the change is not made at installation time.
Note: this was raised as a Jira in https://issues.alfresco.com/jira/browse/ALF-5378
In classes/alfresco/model/dataTypeAnalyzers.properties
change:
d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateAnalyser
into:
 d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateTimeAnalyser

Monday, April 6, 2015

My thoughts on Alfresco

Sl.No
Features
1
Hierarchical folders
2
Well managed permissions to the level of folders/contents
3
Activiti workflow engine integrated, which is BPMN 2 complaint engine.
4
Social Features - More collaborative platform as we can comment the contents/files,favourite content,like content, share content
5
Social Channel Publishing - Contents can be pushed to external channels like facebook,twitter,youtube
6
Multi file upload support
7
CMIS support is available
8
Dynamic Filters - Filter the list of files based on Tags, Recently added/modified, Files you/others are editing
9
Version Control - Simple update process, major/minor versions, version comments, and version history
10
Thumbnails - Automatic generation for wide-range of formats including MSOffice, OpenOffice, Image, and PDF
11
Flash Previews - Full Flash-based document preview, no download or client application launch required
12
Multi-Select Operations - Move/Copy multiple items in a single operation
13
RSS Feed for recent changes
14
AJAX driven UI built using the Yahoo YUI Library
15
Drag & Drop file upload feature
16
Can be used as the multi tenant environment
17
Search can be done with the help of solr
18
Document preview- no need to download the document to see the contents
19
google docs integration to work with documents
20
LDAP/AD/SSO integration
21
Bulk ingestion tool available
22
Synchronization with a cloud instance of Alfresco
23
JMX connectivity for remote monitoring and management of Alfresco
24
Clustering can be done
25
User dashboard to see the recent activities, his documents ,his site documents. Dashboard can be customised






Sl.No
Feature not sophisiticated
1
Archival is not sophisticated ,even though we can store the old contents in slower file system using content store selector
2
No e signature facility available. To be achieved using custom development
3
Reporting is not sophisticated
4
Audit log is not sophisticated needs custom configuration/coding
5
Encryption of content while storing in the disk is not sophisiticated
6
No automated backup restore steps, it should be taken care by admins

Monday, March 30, 2015

URL to connecte to JCONSOLE of Alfresco




JMX URL: service:jmx:rmi:///jndi/rmi://:/alfresco/jmxrmi

service:jmx:rmi:///jndi/rmi://3.148.27.98:60500/alfresco/jmxrmi



JMX Username: controlRole
JMX Password: change_asap

Thursday, March 26, 2015

Commands to Open Control Panel in Windows 7

Commands to Open Control Panel in Windows 7



Control panel tool             Command
   -----------------------------------------------------------------
   Accessibility Options          control access.cpl
   Add New Hardware               control sysdm.cpl add new hardware
   Add/Remove Programs            control appwiz.cpl
   Date/Time Properties           control timedate.cpl
   Display Properties             control desk.cpl
   FindFast                       control findfast.cpl
   Fonts Folder                   control fonts
   Internet Properties            control inetcpl.cpl
   Joystick Properties            control joy.cpl
   Keyboard Properties            control main.cpl keyboard
   Microsoft Exchange             control mlcfg32.cpl
      (or Windows Messaging)
   Microsoft Mail Post Office     control wgpocpl.cpl
   Modem Properties               control modem.cpl
   Mouse Properties               control main.cpl
   Multimedia Properties          control mmsys.cpl
   Network Properties             control netcpl.cpl
                                  NOTE: In Windows NT 4.0, Network
                                  properties is Ncpa.cpl, not Netcpl.cpl
   Password Properties            control password.cpl
   PC Card                        control main.cpl pc card (PCMCIA)
   Power Management (Windows 95)  control main.cpl power
   Power Management (Windows 98)  control powercfg.cpl
   Printers Folder                control printers
   Regional Settings              control intl.cpl
   Scanners and Cameras           control sticpl.cpl
   Sound Properties               control mmsys.cpl sounds
   System Properties              control sysdm.cpl