IBM Connections: Adicionando Atributos Estendidos: Difference between revisions

From Wiki
Line 92: Line 92:
                 </property>
                 </property>
  <!-- Customizacao  by @ebasso - End        -->
  <!-- Customizacao  by @ebasso - End        -->
== profileDetails.ftl ==
Em outro terminal, editar o arquivo config '''/root/Temp/profileDetails.ftl''' e adicionar antes de '''</@util.renderSection>  '''
    <@util.renderProperty ref="info0" nlsBundle="EmpresaX" nlsKey="label.empresax.info0" hideIfEmpty=false ;  ref, dataId, dataKey, nlsKey, nlsBundle>
        <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/>
        <@util.renderValue ref=ref/>
        <br/>
    </@util.renderProperty>
    <@util.renderProperty ref="info1" nlsBundle="EmpresaX" nlsKey="label.empresax.info1" hideIfEmpty=false ;  ref, dataId, dataKey, nlsKey, nlsBundle>
        <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/>
        <@util.renderValue ref=ref/>
        <br/>
    </@util.renderProperty>
    <@util.renderProperty ref="info2" nlsBundle="EmpresaX" nlsKey="label.empresax.info2" hideIfEmpty=false ;  ref, dataId, dataKey, nlsKey, nlsBundle>
        <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/>
        <@util.renderValue ref=ref/>
        <br/>
    </@util.renderProperty>
    <@util.renderProperty ref="info3" nlsBundle="EmpresaX" nlsKey="label.empresax.info3" hideIfEmpty=false ;  ref, dataId, dataKey, nlsKey, nlsBundle>
        <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/>
        <@util.renderValue ref=ref/>
        <br/>
    </@util.renderProperty>
    <@util.renderProperty ref="info4" nlsBundle="EmpresaX" nlsKey="label.empresax.info4" hideIfEmpty=false ;  ref, dataId, dataKey, nlsKey, nlsBundle>
        <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/>
        <@util.renderValue ref=ref/>
        <br/>
    </@util.renderProperty>
    <@util.renderProperty ref="info5" nlsBundle="EmpresaX" nlsKey="label.empresax.info5" hideIfEmpty=false ;  ref, dataId, dataKey, nlsKey, nlsBundle>
        <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/>
        <@util.renderValue ref=ref/>
        <br/>
    </@util.renderProperty>
</@util.renderSection>


== Faça o checkin ==
== Faça o checkin ==

Revision as of 22:06, 21 October 2014

Colocando o arquivo de labels

Dentro do WSAdmin

wsadmin> execfile("connectionsConfig.py")

wsadmin> LCConfigService.checkOutConfig("/root/Temp",AdminControl.getCell())

Editar o arquivo config /root/Temp/LotusConnections-config.xml

 <resources>
       <!-- Labels para o BB -  by @ebasso -->
        <widgetBundle name="com.EmpresaX.resources" prefix="EmpresaX"/>
 </resources>
  

Fazer o Checkin

wsadmin> LCConfigService.checkInConfig()


Sincronize os nós

wsadmin> synchAllNodes()


Ajustando os arquivos de profiles

Conectar no wsadmin.sh

wsadmin> execfile("profilesAdmin.py")

wsadmin> ProfilesConfigService.checkOutConfig("/root/Temp",AdminControl.getCell())

profiles-config.xml

Em outro terminal, editar o arquivo config /root/Temp/profiles-config.xml e adicionar antes do </profileExtensionAttributes>

           <!-- Atributos adicionais @ebasso -->
           <simpleAttribute extensionId="info0" length="64"/>
           <simpleAttribute extensionId="info1" length="64"/>
           <simpleAttribute extensionId="info2" length="64"/>
           <simpleAttribute extensionId="info3" length="64"/>
           <simpleAttribute extensionId="info4" length="64"/>
           <simpleAttribute extensionId="info5" length="64"/>
</profileExtensionAttributes>

Localizar <templateNlsBundles/> e alterar para

<templateNlsBundles>EmpresaX</templateNlsBundles>

profiles-types.xml

Em outro terminal, editar o arquivo config /root/Temp/profiles-types.xml e adicionar antes </type> do properties

               <property>
                       <ref>info0</ref>
                       <updatability>read</updatability>
                       <hidden>false</hidden>
                       <fullTextIndexed>true</fullTextIndexed>
               </property>
               <property>
                       <ref>info1</ref>
                       <updatability>read</updatability>
                       <hidden>false</hidden>
                       <fullTextIndexed>true</fullTextIndexed>
               </property>
               <property>
                       <ref>info2</ref>
                       <updatability>read</updatability>
                       <hidden>false</hidden>
                       <fullTextIndexed>true</fullTextIndexed>
               </property>
               <property>
                       <ref>info3</ref>
                       <updatability>read</updatability>
                       <hidden>false</hidden>
                       <fullTextIndexed>true</fullTextIndexed>
               </property>
               <property>
                       <ref>info4</ref>
                       <updatability>read</updatability>
                       <hidden>false</hidden>
                       <fullTextIndexed>true</fullTextIndexed>
               </property>
               <property>
                       <ref>info5</ref>
                       <updatability>read</updatability>
                       <hidden>false</hidden>
                       <fullTextIndexed>true</fullTextIndexed>
               </property>

profileDetails.ftl

Em outro terminal, editar o arquivo config /root/Temp/profileDetails.ftl e adicionar antes de </@util.renderSection>

   <@util.renderProperty ref="info0" nlsBundle="EmpresaX" nlsKey="label.empresax.info0" hideIfEmpty=false ;  ref, dataId, dataKey, nlsKey, nlsBundle>
       <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/>
       <@util.renderValue ref=ref/>
       
</@util.renderProperty> <@util.renderProperty ref="info1" nlsBundle="EmpresaX" nlsKey="label.empresax.info1" hideIfEmpty=false ; ref, dataId, dataKey, nlsKey, nlsBundle> <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/> <@util.renderValue ref=ref/>
</@util.renderProperty> <@util.renderProperty ref="info2" nlsBundle="EmpresaX" nlsKey="label.empresax.info2" hideIfEmpty=false ; ref, dataId, dataKey, nlsKey, nlsBundle> <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/> <@util.renderValue ref=ref/>
</@util.renderProperty> <@util.renderProperty ref="info3" nlsBundle="EmpresaX" nlsKey="label.empresax.info3" hideIfEmpty=false ; ref, dataId, dataKey, nlsKey, nlsBundle> <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/> <@util.renderValue ref=ref/>
</@util.renderProperty> <@util.renderProperty ref="info4" nlsBundle="EmpresaX" nlsKey="label.empresax.info4" hideIfEmpty=false ; ref, dataId, dataKey, nlsKey, nlsBundle> <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/> <@util.renderValue ref=ref/>
</@util.renderProperty> <@util.renderProperty ref="info5" nlsBundle="EmpresaX" nlsKey="label.empresax.info5" hideIfEmpty=false ; ref, dataId, dataKey, nlsKey, nlsBundle> <@util.renderNls nlsKey=nlsKey nlsBundle=nlsBundle/> <@util.renderValue ref=ref/>
</@util.renderProperty> </@util.renderSection>

Faça o checkin

wsadmin> ProfilesConfigService.checkInConfig()

wsadmin> synchAllNodes()

Caso seja requerido faça a mesma modificação nos demais nós.

Reinicie o ambiente IBM Connections