Skip to content

Instantly share code, notes, and snippets.

View aviriel's full-sized avatar

Oksana Kurysheva aviriel

View GitHub Profile
var node = people.getGroup("GROUP_ALFRESCO_ADMINISTRATORS");
var members = people.getMembers(node);
print(members);
var user = people.getPerson("admin");
print(user);
var isMember = members.indexOf(user);
print(isMember);
{
name: "alfresco/lists/AlfList",
config: {
loadDataPublishTopic: "GET.....",
loadDataPublishPayload: {
siteId: siteId
},
itemsProperty: "items",
widgets: [{
name: "alfresco/lists/views/AlfListView",
[{
name: "mgs/widgets/forms/FilteringSelect",
widthPx: 600,
config: {
name: "mgs1_CourtDName",
label: "Суд 1-й инстанции",
value: "",
postWhenHiddenOrDisabled: false,
additionalCssClasses: "long",
optionsConfig: {
2016-07-24 16:37:34,290 http-bio-8080-exec-7 ERROR admin 997x2576x1 1o2dqqb 172.17.33.61 /secure/CreateIssue.jspa [atlas.plugins.requestedfiedls.JsonHttpRunner] JsonHttpRunner::getData - error renderring
java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic YWRtaW46c21hcnR2bQ==
at sun.net.www.protocol.http.HttpURLConnection.checkMessageHeader(HttpURLConnection.java:507)
at sun.net.www.protocol.http.HttpURLConnection.isExternalMessageHeaderAllowed(HttpURLConnection.java:459)
at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(HttpURLConnection.java:3017)
at ru.andreymarkelov.atlas.plugins.requestedfiedls.util.HttpSender.call(HttpSender.java:71)
at ru.andreymarkelov.atlas.plugins.requestedfiedls.JsonHttpRunner.getData(JsonHttpRunner.java:31)
at sun.reflect.GeneratedMethodAccessor1247.invoke(Unknown Source)
INFO: Initializing ProtocolHandler ["http-bio-8081"]
May 10, 2016 12:34:19 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
May 10, 2016 12:34:19 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
May 10, 2016 12:34:24 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://www.springframework.org/tags/surf is already defined
May 10, 2016 12:34:24 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
May 10, 2016 12:34:24 PM org.apache.catalina.core.ApplicationContext log
{
"name": "alfresco/forms/DynamicForm",
"config": {
....
"widgets": [{
"name": "alfresco/forms/controls/Select",
"config": {
"name": "A",
"label": "A",
"fieldId": "PRESET_A",
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="alvex-course-examples" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap,alvex-documents-registers-deployer">
<property name="labels">
<list>
<value>alfresco.extension.messages.alvex-course-examples</value>
</list>
</property>
<property name="models">
alvexcoursedocs_documents_model.type.alvexcoursedocs_document_partner_agreement.title=Distribution agreement
alvexcoursedocs_documents_model.aspect.alvexcoursedocs_withVendorInfo.title=With vendor info
alvexcoursedocs_documents_model.property.alvexcoursedocs_partnerDiscount.title=Partner discount, %
alvexcourcedocs_documents_model.association.alvexcoursedocs_documentManager.title=Contract Manager
alvexcoursedocs_documents_model.property.alvexcoursedocs_vendorCompanyName.title=Vendor company name
alvexcoursedocs_documents_model.property.alvexcoursedocs_vendorWebSite.title=Vendor web site
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="alvex-course-examples-configs-deployer" class="org.springframework.extensions.config.ConfigBootstrap" init-method="register" depends-on="">
<property name="configService" ref="web.config" />
<property name="configs">
<list>
<value>classpath:alfresco/web-extension/alvex-course-examples-config.xml</value>
</list>
</property>
<alfresco-config>
<config evaluator="model-type" condition="alvexcoursedocs:document_partner_agreement">
<forms>
<form id="datagrid">
<field-visibility>
<show id="alvexdt:id" />
<show id="alvexdt:company" />
<show id="alvexdt:contractor" />
<show id="alvexcoursedocs:vendorCompanyName" />