IBM Connections: Adicionando Atributos Estendidos: Difference between revisions

From Wiki
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Criar o arquivo de labels =
Criar na shared area
# cd <SHARED_AREA>/customization/strings
Criar um arquivo '''com.EmpresaX.resources.properties'''
label.empresax.info0=Informa\u00e7\u00f5es Adicionais:
label.empresax.info1=info1:
label.empresax.info2=info2:
label.empresax.info3=info3:
label.empresax.info4=info4:
label.empresax.info5=info5:
salve e feche o arquivo
= Colocando o arquivo de labels =
= Colocando o arquivo de labels =


Line 11: Line 28:
  <nowiki>
  <nowiki>
  <resources>
  <resources>
       <!-- Labels para o BB -  by @ebasso -->
       <!-- Labels -  by @ebasso -->
         <widgetBundle name="com.EmpresaX.resources" prefix="EmpresaX"/>
         <widgetBundle name="com.EmpresaX.resources" prefix="EmpresaX"/>
  </resources>
  </resources>
Line 25: Line 42:
  wsadmin> synchAllNodes()
  wsadmin> synchAllNodes()


 
= Ajustando os arquivos de profiles =
=== Ajustando os arquivos de profiles ===


Conectar no wsadmin.sh
Conectar no wsadmin.sh
Line 34: Line 50:
  wsadmin> ProfilesConfigService.checkOutConfig("/root/Temp",AdminControl.getCell())
  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>
Em outro terminal, editar o arquivo config '''/root/Temp/profiles-config.xml''' e adicionar antes do </profileExtensionAttributes>


Line 48: Line 65:


  <templateNlsBundles>EmpresaX</templateNlsBundles>
  <templateNlsBundles>EmpresaX</templateNlsBundles>
== profiles-types.xml ==


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


  <!-- Customizacao BB by @MigracaoC45 - Start        -->
  <!-- Customizacao by @ebasso - Start        -->
                <property>
                        <ref>cd-uor-dep</ref>
                        <updatability>read</updatability>
                        <hidden>false</hidden>
                </property>
 
                <property>
                        <ref>cd-cmss-fun</ref>
                        <updatability>read</updatability>
                        <hidden>false</hidden>
                </property>
                <property>
                        <ref>cd-pref-depe</ref>
                        <updatability>read</updatability>
                        <hidden>false</hidden>
                </property>
                <property>
                        <ref>cd-eqp</ref>
                        <updatability>read</updatability>
                        <hidden>false</hidden>
                </property>
                 <property>
                 <property>
                         <ref>info0</ref>
                         <ref>info0</ref>
                         <updatability>read</updatability>
                         <updatability>read</updatability>
                         <hidden>false</hidden>
                         <hidden>false</hidden>
                        <fullTextIndexed>true</fullTextIndexed>
                 </property>
                 </property>
                 <property>
                 <property>
Line 82: Line 81:
                         <updatability>read</updatability>
                         <updatability>read</updatability>
                         <hidden>false</hidden>
                         <hidden>false</hidden>
                        <fullTextIndexed>true</fullTextIndexed>
                 </property>
                 </property>
                 <property>
                 <property>
Line 87: Line 87:
                         <updatability>read</updatability>
                         <updatability>read</updatability>
                         <hidden>false</hidden>
                         <hidden>false</hidden>
                        <fullTextIndexed>true</fullTextIndexed>
                 </property>
                 </property>
                 <property>
                 <property>
Line 92: Line 93:
                         <updatability>read</updatability>
                         <updatability>read</updatability>
                         <hidden>false</hidden>
                         <hidden>false</hidden>
                        <fullTextIndexed>true</fullTextIndexed>
                 </property>
                 </property>
                 <property>
                 <property>
Line 97: Line 99:
                         <updatability>read</updatability>
                         <updatability>read</updatability>
                         <hidden>false</hidden>
                         <hidden>false</hidden>
                        <fullTextIndexed>true</fullTextIndexed>
                 </property>
                 </property>
                 <property>
                 <property>
Line 102: Line 105:
                         <updatability>read</updatability>
                         <updatability>read</updatability>
                         <hidden>false</hidden>
                         <hidden>false</hidden>
                        <fullTextIndexed>true</fullTextIndexed>
                 </property>
                 </property>
  <!-- Customizacao BB by @MigracaoC45 - 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>
 
== widget-config.xml ==
 
Em outro terminal, editar o arquivo config '''/root/Temp/widget-config.xml''' e adicionar antes de '''</@util.renderSection>  '''
  <widgetDef defId="Updates"
  ...
  '''<widgetDef defId="profileEmpresaX" url="{contextRoot}/widget-catalog/profile-details.xml?version={version}" modes="view fullpage"'''
  '''helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/c_pers_profiles.html" bundleRefId="EmpresaX">'''
  </definitions>


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


  wsadmin> ProfilesConfigService.checkInConfig()
  wsadmin> ProfilesConfigService.checkInConfig()
Line 114: Line 170:


Reinicie o ambiente IBM Connections
Reinicie o ambiente IBM Connections
= Ver também =
* [[IBM Connections:Reorg Connections Databases]]
* [[IBM Connections:Limpeza de diretórios]]
* [[IBM Connections|  Mais Artigos sobre IBM Connections]]
[[Category:IBM Connections]]
[[Category:Tuning IBM Connections]]

Latest revision as of 17:08, 14 May 2015

Criar o arquivo de labels

Criar na shared area

# cd <SHARED_AREA>/customization/strings

Criar um arquivo com.EmpresaX.resources.properties

label.empresax.info0=Informa\u00e7\u00f5es Adicionais:
label.empresax.info1=info1:
label.empresax.info2=info2:
label.empresax.info3=info3:
label.empresax.info4=info4:
label.empresax.info5=info5:

salve e feche o arquivo

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 -  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>

widget-config.xml

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

 <widgetDef defId="Updates" 
 ...
 <widgetDef defId="profileEmpresaX" url="{contextRoot}/widget-catalog/profile-details.xml?version={version}" modes="view fullpage" 
 helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/c_pers_profiles.html" bundleRefId="EmpresaX">
 </definitions>

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

Ver também