IBM Connections: Aumentando o tamanho do Galeria de Mídia (Media Gallery): Difference between revisions
No edit summary |
|||
Line 41: | Line 41: | ||
000000001}] | 000000001}] | ||
= Alterando em Comunidades = | == Alterando em Comunidades == | ||
==Identificar a comunidade e a library desta comunidade== | ===Identificar a comunidade e a library desta comunidade=== | ||
3) Criando a Listagem das Libraries | 3) Criando a Listagem das Libraries | ||
Line 74: | Line 74: | ||
</nowiki> | </nowiki> | ||
==Criar uma política com tamanho maior== | ===Criar uma política com tamanho maior=== | ||
Criando uma nova política com tamanho de 4G | Criando uma nova política com tamanho de 4G | ||
Line 81: | Line 81: | ||
A policy was added with the new id c1231234-123e-12a5-a12d-cb47a520123d . | A policy was added with the new id c1231234-123e-12a5-a12d-cb47a520123d . | ||
== Atribuir a política a está library== | === Atribuir a política a está library=== | ||
Execute o comando para adicionar a policity | Execute o comando para adicionar a policity | ||
Line 91: | Line 91: | ||
Sincronize os nós | Sincronize os nós | ||
= Alterando para Usuários = | == Alterando para Usuários == | ||
== Identificando o usuários == | === Identificando o usuários === | ||
1) Pegando o usuário pelo email | 1) Pegando o usuário pelo email | ||
Line 111: | Line 111: | ||
policyId=00000000-0000-0000-0000-000000000000, themeName=, createDate=Wed Jul 30 09:27:55 BRT 2014, percentUsed=2.1079855039715767} | 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 == | === Atribuindo a uma política existente === | ||
Usando o FilesLibraryService.assignPolicy(String id, string policyId) | Usando o FilesLibraryService.assignPolicy(String id, string policyId) | ||
Line 118: | Line 118: | ||
= Sincronizando os nós = | == Sincronizando os nós == | ||
'''Procedimento''': | '''Procedimento''': |
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