This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public boolean hasUpdateFieldPermission( | |
PermissionChecker permissionChecker, User updatingUser, | |
User updatedUser, String field) | |
throws PortalException, SystemException { | |
// Condição de guarda. Não sei em que caso de uso updatedUser é null. | |
if (updatedUser == null) { | |
return true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intro: D9 Am7 Am4/7 A7/9 Eb7M Am4 Am6 D9 Am4/7 Am7 Am7/9 Eb7M Am4 Am4/7 Am6 Am7/G D7/9 | |
G7M Eb7M Am7 G7M | |
Anda, vem me lumiar com sua chama, vai anoitecer | |
Bb/C Gm/E Eb7M9 C/D | |
Não importa se o vento quer entrar na nossa porta | |
G7M | |
Pra assustar você |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set search_path="single"; | |
INSERT INTO biblio_form_datafields (datafield, collapsed, repeatable, indicator_1, indicator_2, material_type, created, created_by, modified, modified_by) VALUES ('013', false, true, '', '', 'book,manuscript,pamphlet,thesis,computer_legible,map,movie,score,object_3d,photo,periodic,articles,music,nonmusical_sound', '2013-04-13 13:42:03.23405', NULL, '2013-04-13 13:42:03.23405', NULL) ON CONFLICT DO NOTHING; | |
INSERT INTO biblio_form_datafields (datafield, collapsed, repeatable, indicator_1, indicator_2, material_type, created, created_by, modified, modified_by) VALUES ('020', false, false, '', '', 'book', '2013-04-13 13:42:03.23405', NULL, '2013-04-13 13:42:03.23405', NULL) ON CONFLICT DO NOTHING; | |
INSERT INTO biblio_form_datafields (datafield, collapsed, repeatable, indicator_1, indicator_2, material_type, created, created_by, modified, modified_by) VALUES ('022', false, false, '', '', 'book,periodic,articles', '2013-04-13 13:42:03.23405', NULL, '2013-04-13 13:42:03.23405', NULL) ON CON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set search_path="single"; | |
INSERT INTO biblio_form_datafields (datafield, collapsed, repeatable, indicator_1, indicator_2, material_type, created, created_by, modified, modified_by) SELECT '013', false, true, '', '', 'book,manuscript,pamphlet,thesis,computer_legible,map,movie,score,object_3d,photo,periodic,articles,music,nonmusical_sound', '2013-04-13 13:42:03.23405', NULL, '2013-04-13 13:42:03.23405', NULL WHERE NOT EXISTS (SELECT * FROM biblio_form_datafields bfd WHERE bfd.datafield = '013'); | |
INSERT INTO biblio_form_datafields (datafield, collapsed, repeatable, indicator_1, indicator_2, material_type, created, created_by, modified, modified_by) SELECT '020', false, false, '', '', 'book', '2013-04-13 13:42:03.23405', NULL, '2013-04-13 13:42:03.23405', NULL WHERE NOT EXISTS (SELECT * FROM biblio_form_datafields bfd WHERE bfd.datafield = '020'); | |
INSERT INTO biblio_form_datafields (datafield, collapsed, repeatable, indicator_1, indicator_2, material_type, created, created_by, modified, modified_by) SELECT '022', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Adiciona repositório que contém o PostgresSQL 9.1 (obsoleto) | |
echo "Adicionando repositório que contém o PostgresSQL 9.1 (obsoleto)" | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
# Adiciona repositório que contém o Tomcat 7 (obsoleto) | |
echo "Adicionando repositório que contém o Tomcat 7 (obsoleto)" | |
sudo sh -c 'echo "deb http://br.archive.ubuntu.com/ubuntu/ xenial main" > /etc/apt/sources.list.d/tomcat7.list' | |
sudo sh -c 'echo "deb http://br.archive.ubuntu.com/ubuntu/ xenial universe" >> /etc/apt/sources.list.d/tomcat7.list' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Hello React!</title> | |
<script src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
<script src="https://unpkg.com/[email protected]/babel.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Postgresql 9.6 | |
sudo yum install -y postgresql-server postgresql-contrib java-1.8.0-openjdk java-1.8.0-openjdk-devel tomcat | |
sudo postgresql-setup initdb | |
# Permite a autenticação com senha no Postgres | |
echo "Habilitando a autenticação com senha no PostgreSQL" | |
sudo sed -i -e 's/ident$/md5/g' /var/lib/pgsql/data/pg_hba.conf | |
# Habilita e inicia serviço do PosgreSQL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tomcat7_home_folder=`getent passwd "tomcat7" | cut -d: -f6`/Biblivre | |
sudo mkdir $tomcat7_home_folder | |
sudo chown tomcat7 $tomcat7_home_folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COPY (SELECT ROW_TO_JSON(t) FROM (SELECT * FROM access_cards) t) TO '/tmp/access_cards.json'; | |
COPY (SELECT ROW_TO_JSON(t) FROM (SELECT * FROM access_control) t) TO '/tmp/access_control.json'; | |
COPY (SELECT ROW_TO_JSON(t) FROM (SELECT * FROM authorities_brief_formats) t) TO '/tmp/authorities_brief_formats.json'; | |
COPY (SELECT ROW_TO_JSON(t) FROM (SELECT * FROM authorities_form_datafields) t) TO '/tmp/authorities_form_datafields.json'; | |
COPY (SELECT ROW_TO_JSON(t) FROM (SELECT * FROM authorities_form_subfields) t) TO '/tmp/authorities_form_subfields.json'; | |
COPY (SELECT ROW_TO_JSON(t) FROM (SELECT * FROM authorities_idx_autocomplete) t) TO '/tmp/authorities_idx_autocomplete.json'; | |
COPY (SELECT ROW_TO_JSON(t) FROM (SELECT * FROM authorities_idx_fields) t) TO '/tmp/authorities_idx_fields.json'; | |
COPY (SELECT ROW_TO_JSON(t) FROM (SELECT * FROM authorities_idx_sort) t) TO '/tmp/authorities_idx_sort.json'; | |
COPY (SELECT ROW_TO_JSON(t) FROM (SELECT * FROM authorities_indexing_groups) t) TO '/tmp/authorities_indexing_groups |