This file contains hidden or 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
import sys | |
import os | |
import time | |
from java.io import BufferedReader | |
from java.io import InputStreamReader | |
from java.lang import ProcessBuilder | |
from java.lang import System | |
def exists(appName): |
This file contains hidden or 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
def startApplicationOnSingleServer(cellName, nodeName, serverName, appName): | |
print "---------------------------------------------------------------" | |
print " AdminApplication: Start an application on a single server " | |
print " Application name: " + appName | |
print " Node name: " + nodeName | |
print " Server name: " + serverName | |
print " Cell name: " + cellName | |
print "---------------------------------------------------------------" |
This file contains hidden or 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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
box-sizing: border-box; | |
} |
This file contains hidden or 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
package ru.brbpm.lecm.server.samples; | |
import com.filenet.api.core.Document; | |
import com.filenet.api.core.Folder; | |
import ru.brbpm.lecm.utils.server.ejb.ServiceInterceptor; | |
import javax.annotation.Resource; | |
import javax.annotation.security.DeclareRoles; | |
import javax.annotation.security.RolesAllowed; | |
import javax.ejb.EJB; |
This file contains hidden or 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
package ru.brbpm.lecm.utils.server.filenet; | |
import com.filenet.api.constants.ConfigurationParameter; | |
import com.filenet.api.core.Connection; | |
import com.filenet.api.core.Factory; | |
import com.filenet.api.util.ConfigurationParameters; | |
import com.filenet.api.util.UserContext; | |
import com.google.common.base.Preconditions; | |
import ru.brbpm.lecm.shared.constants.ConnectionConstants; | |
import ru.brbpm.lecm.utils.server.LoggerUtils; |
This file contains hidden or 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
package ru.brbpm.testutils; | |
import org.junit.Assert; | |
import org.junit.Assume; | |
import org.junit.BeforeClass; | |
import ru.brbpm.lecm.utils.server.filenet.CeConnection; | |
/** | |
* User: dshahovkin | |
* Date: 23.05.13 |
This file contains hidden or 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
package ru.brbpm.lecm.wm.login.client; | |
import com.google.common.base.Strings; | |
import com.google.gwt.core.client.EntryPoint; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.event.dom.client.ClickEvent; | |
import com.google.gwt.event.dom.client.KeyCodes; | |
import com.google.gwt.event.dom.client.KeyDownEvent; | |
import com.google.gwt.uibinder.client.UiBinder; | |
import com.google.gwt.uibinder.client.UiField; |
This file contains hidden or 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
@Test | |
public void testBaseCalls() throws Exception { | |
LoginContext lc = null; | |
try { | |
lc = new LoginContext("WSLogin", new WSCallbackHandlerImpl("gcd_admin", "o9p0[-]=")); | |
} catch (LoginException le) { | |
Assert.fail("Cannot create LoginContext. " + le.getMessage()); | |
} catch (SecurityException se) { | |
Assert.fail("Cannot create LoginContext." + se.getMessage()); |
This file contains hidden or 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
package ru.brbpm.lecm.server.samples; | |
import com.filenet.api.constants.*; | |
import com.filenet.api.core.*; | |
import com.filenet.api.util.ConfigurationParameters; | |
import ru.brbpm.lecm.shared.api.ConfigServiceLocal; | |
import ru.brbpm.lecm.shared.constants.ConnectionConstants; | |
import ru.brbpm.lecm.utils.server.ejb.ServiceInterceptor; | |
import javax.annotation.PostConstruct; |
This file contains hidden or 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
package ru.brbpm.lecm.utils.client; | |
/** | |
* Утилиту использовать ТОЛЬКО для критических случаев. | |
* Для обычного трейса на клиенте использовать {@link com.google.gwt.core.client.GWT#log(String)} | |
* | |
* @author ikomissarov | |
*/ | |
public class Logger { | |
native static public void warn(String message) /*-{ |
NewerOlder