IBM Connections: Aumentando o tamanho do Galeria de Mídia (Media Gallery): Difference between revisions
(Criou página com: 'Abaixo temos o procedimento para aumentar o tamanho da Galeria de Mídia no IBM Connections. Para fazer vamos precisar fazer os seguintes passos: # Verificar o tamanho padr...') |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
# Criar uma política com tamanho maior | # Criar uma política com tamanho maior | ||
# Atribuir a política a está library | # Atribuir a política a está library | ||
Veja abaixo o procedimento. | |||
= Procedimento = | = Procedimento = | ||
== | == Verificar o tamanho padrão == | ||
1) Via terminal Linux, conectar no dmgr | 1) Via terminal Linux, conectar no dmgr | ||
Line 38: | Line 40: | ||
ze=524288000, title=!Default for Community Files, id=00000000-0000-0000-0000-000 | ze=524288000, title=!Default for Community Files, id=00000000-0000-0000-0000-000 | ||
000000001}] | 000000001}] | ||
== Alterando em Comunidades == | |||
===Identificar a comunidade e a library desta comunidade=== | |||
3) Criando a Listagem das Libraries | 3) Criando a Listagem das Libraries | ||
Line 51: | Line 57: | ||
Abra o arquivo '''/tmp/community_output.xml''', e localize a comunidade com o uuid (em ''itálico''), e pegue o id da library da comunidade (em '''negrito'''): | Abra o arquivo '''/tmp/community_output.xml''', e localize a comunidade com o uuid (em ''itálico''), e pegue o id da library da comunidade (em '''negrito'''): | ||
<snx:resource xmlns:snx="http://www.ibm.com/xmlns/prod/sn" type="community" id="''006a5839-beb7-463b-92e8-6039e7c813f4''" | <nowiki> | ||
<snx:resource xmlns:snx="http://www.ibm.com/xmlns/prod/sn" type="community" id="</nowiki>''006a5839-beb7-463b-92e8-6039e7c813f4''<nowiki>" | |||
widgetInstanceId="W15d677776ab8_43a6_88d5_6424e99efd2d" name="comm3byadmin" themeName="default"> | widgetInstanceId="W15d677776ab8_43a6_88d5_6424e99efd2d" name="comm3byadmin" themeName="default"> | ||
<snx:creator xmlns:snx="http://www.ibm.com/xmlns/prod/sn"> | <snx:creator xmlns:snx="http://www.ibm.com/xmlns/prod/sn"> | ||
Line 63: | Line 70: | ||
<snx:property xmlns:snx="http://www.ibm.com/xmlns/prod/sn" name="communityType">public* | <snx:property xmlns:snx="http://www.ibm.com/xmlns/prod/sn" name="communityType">public* | ||
<snx:objectIdentifyingTerm xmlns:snx="http://www.ibm.com/xmlns/prod/sn">comm3byadmin | <snx:objectIdentifyingTerm xmlns:snx="http://www.ibm.com/xmlns/prod/sn">comm3byadmin | ||
<snx:objectIdentifyingId xmlns:snx="http://www.ibm.com/xmlns/prod/sn">''' | <snx:objectIdentifyingId xmlns:snx="http://www.ibm.com/xmlns/prod/sn"></nowiki>'''cb6a12345-dd2b-4ce0-bca7-123c0a58bcde'''<nowiki></snx:objectIdentifyingId> | ||
</snx:resource> | </snx:resource> | ||
</nowiki> | |||
===Criar uma política com tamanho maior=== | |||
Criando uma nova política com tamanho de 4G | |||
wsadmin> '''FilesPolicyService.add("4GB Community Policy", 4000000000L)''' | |||
A policy was added with the new id c1231234-123e-12a5-a12d-cb47a520123d . | |||
=== Atribuir a política a está library=== | |||
Execute o comando para adicionar a policity | |||
wsadmin> '''FilesLibraryService.assignPolicy("cb6a12345-dd2b-4ce0-bca7-123c0a58bcde","c1231234-123e-12a5-a12d-cb47a520123d")''' | |||
wsadmin> ''' | wsadmin> '''exit''' | ||
.. | |||
Sincronize os nós | |||
== Alterando para Usuários == | |||
=== Identificando o usuários === | |||
1) Pegando o usuário pelo email | |||
wsadmin> FilesMemberService.getByEmail("fulano@company.com") | |||
{id='''6379414c-3c51-496c-ac33-4c74cb4a6164''', communityLastUpdate=Fri Sep 02 15:36:20 BRT 2016, lastVisit=Fri Sep 02 15:36:20 BRT 2016, directoryLastUpdate=Fri Aug 22 10:59:51 BRT 2014, | |||
[email protected], name=Fulano de Tal, directoryGroupLastUpdate=Fri Sep 02 15:36:20 BRT 2016, createDate=Wed Jul 30 09:27:55 BRT 2014, isOprhan=false} | |||
2) Pegando o id, vamos pegar a library id | |||
wsadmin> ''' | wsadmin> FilesLibraryService.getPersonalByOwnerId("'''6379414c-3c51-496c-ac33-4c74cb4a6164'''") | ||
{summary=, lastUpdate=Wed Aug 06 19:08:36 BRT 2014, maximumSize=536870912, label=46C8C000-B7DA-17C6-95E3-40208401F1AC, ownerUserId=6379414c-3c51-496c-ac33-4c74cb4a6164, | |||
type=personal, size=11317161, id='''8371846b-c6ac-44c8-872c-1c51f6d560b9''', externalContainerId=null, externalInstanceId=null, title=Fulano de Tal, | |||
policyId=00000000-0000-0000-0000-000000000000, themeName=, createDate=Wed Jul 30 09:27:55 BRT 2014, percentUsed=2.1079855039715767} | |||
=== Atribuindo a uma política existente === | |||
Usando o FilesLibraryService.assignPolicy(String id, string policyId) | |||
FilesLibraryService.assignPolicy("8371846b-c6ac-44c8-872c-1c51f6d560b9","7067fcb1-3360-47e8-8185-f43a36175d2b") | |||
== Sincronizando os nós == | == Sincronizando os nós == | ||
Line 100: | Line 131: | ||
então reinicie os Applications Servers | então reinicie os Applications Servers | ||
= Ver também = | = Ver também = |
Latest revision as of 20:21, 3 March 2017
Abaixo temos o procedimento para aumentar o tamanho da Galeria de Mídia no IBM Connections.
Para fazer vamos precisar fazer os seguintes passos:
- Verificar o tamanho padrão
- Identificar a comunidade e a library desta comunidade
- Criar uma política com tamanho maior
- Atribuir a política a está library
Veja abaixo o procedimento.
Procedimento
Verificar o tamanho padrão
1) Via terminal Linux, conectar no dmgr
# mkdir -p /root/Temp # cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin
Executar wsadmin.sh
# ./wsadmin.sh -lang jython -username wsadmin -password <ALTERAR_SENHA> wsadmin> execfile("filesAdmin.py") Connections Administration initialized
Escolha um dos servidores do Files
2) Vamos primeiro verificar o tamanho default
wsadmin> FilesPolicyService.browse(sortOption="maximumSize", sortAscending="false")
[{maximumSize=524288000, title=!Default for Personal Files, id=00000000-0000-000 0-0000-000000000000}, {maximumSize=524288000, title=!Default for Community Wikis , id=00000000-0000-0000-0000-000000000003}, {maximumSize=524288000, title=!Defau lt for Non-Community Wikis, id=00000000-0000-0000-0000-000000000002}, {maximumSi ze=524288000, title=!Default for Community Files, id=00000000-0000-0000-0000-000 000000001}]
Alterando em Comunidades
Identificar a comunidade e a library desta comunidade
3) Criando a Listagem das Libraries
wsadmin> FilesLibraryService.exportSyncedResourceInfo("/tmp/community_output.xml", "community")
Você deve pegar esta listagem na máquina onde a aplicação Files está sendo executada.
Pegue o uuid da comunidade utilizando a url:
http://connections.empresa.com/communities/service/html/communityview?communityUuid=006a5839-beb7-463b-92e8-6039e7c813f4
Abra o arquivo /tmp/community_output.xml, e localize a comunidade com o uuid (em itálico), e pegue o id da library da comunidade (em negrito):
<snx:resource xmlns:snx="http://www.ibm.com/xmlns/prod/sn" type="community" id="006a5839-beb7-463b-92e8-6039e7c813f4" widgetInstanceId="W15d677776ab8_43a6_88d5_6424e99efd2d" name="comm3byadmin" themeName="default"> <snx:creator xmlns:snx="http://www.ibm.com/xmlns/prod/sn"> <email xmlns="http://www.w3.org/2005/Atom"> <snx:userid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">00000000-0000-0000-0000-000000000000 </snx:creator> <snx:lastmodby xmlns:snx="http://www.ibm.com/xmlns/prod/sn"> <email xmlns="http://www.w3.org/2005/Atom">[email protected] <snx:userid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">a3e10cb4-1ecc-46bd-b48c-7be28ece4295 </snx:lastmodby> <snx:property xmlns:snx="http://www.ibm.com/xmlns/prod/sn" name="communityType">public* <snx:objectIdentifyingTerm xmlns:snx="http://www.ibm.com/xmlns/prod/sn">comm3byadmin <snx:objectIdentifyingId xmlns:snx="http://www.ibm.com/xmlns/prod/sn">cb6a12345-dd2b-4ce0-bca7-123c0a58bcde</snx:objectIdentifyingId> </snx:resource>
Criar uma política com tamanho maior
Criando uma nova política com tamanho de 4G
wsadmin> FilesPolicyService.add("4GB Community Policy", 4000000000L)
A policy was added with the new id c1231234-123e-12a5-a12d-cb47a520123d .
Atribuir a política a está library
Execute o comando para adicionar a policity
wsadmin> FilesLibraryService.assignPolicy("cb6a12345-dd2b-4ce0-bca7-123c0a58bcde","c1231234-123e-12a5-a12d-cb47a520123d") wsadmin> exit
Sincronize os nós
Alterando para Usuários
Identificando o usuários
1) Pegando o usuário pelo email
wsadmin> FilesMemberService.getByEmail("[email protected]") {id=6379414c-3c51-496c-ac33-4c74cb4a6164, communityLastUpdate=Fri Sep 02 15:36:20 BRT 2016, lastVisit=Fri Sep 02 15:36:20 BRT 2016, directoryLastUpdate=Fri Aug 22 10:59:51 BRT 2014, [email protected], name=Fulano de Tal, directoryGroupLastUpdate=Fri Sep 02 15:36:20 BRT 2016, createDate=Wed Jul 30 09:27:55 BRT 2014, isOprhan=false}
2) Pegando o id, vamos pegar a library id
wsadmin> FilesLibraryService.getPersonalByOwnerId("6379414c-3c51-496c-ac33-4c74cb4a6164") {summary=, lastUpdate=Wed Aug 06 19:08:36 BRT 2014, maximumSize=536870912, label=46C8C000-B7DA-17C6-95E3-40208401F1AC, ownerUserId=6379414c-3c51-496c-ac33-4c74cb4a6164, type=personal, size=11317161, id=8371846b-c6ac-44c8-872c-1c51f6d560b9, externalContainerId=null, externalInstanceId=null, title=Fulano de Tal, policyId=00000000-0000-0000-0000-000000000000, themeName=, createDate=Wed Jul 30 09:27:55 BRT 2014, percentUsed=2.1079855039715767}
Atribuindo a uma política existente
Usando o FilesLibraryService.assignPolicy(String id, string policyId)
FilesLibraryService.assignPolicy("8371846b-c6ac-44c8-872c-1c51f6d560b9","7067fcb1-3360-47e8-8185-f43a36175d2b")
Sincronizando os nós
Procedimento:
1) Acessar o IBM System Console
https://<ip_do_dmgr>:9043/ibm/console
2) Clique em System Administration -> Nodes
3) Selecione os nós, e clique em Full Resyncronize
então reinicie os Applications Servers
Ver também
- Mais Artigos sobre IBM Connections IBM Connections