rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
protected File getXmlFileDirectory(final Project project)
protected File getXmlFileDirectory(final Document document)
protected File getXmlFileDirectory(final Project project) throws FileNotFoundException, IOException { logger.info("getXmlFileDirectory(Project)"); logger.debug(project); return getXmlFile(project).getParentFile(); }
logger.info("getXmlFileDirectory(Project)"); logger.debug(project); return getXmlFile(project).getParentFile();
logger.info("getXmlFileDirectory(Document)"); logger.debug(document); return getXmlFile(document).getParentFile();
protected File getXmlFileDirectory(final Project project) throws FileNotFoundException, IOException { logger.info("getXmlFileDirectory(Project)"); logger.debug(project); return getXmlFile(project).getParentFile(); }
protected File getXmlFile(final Project project)
protected File getXmlFile(final Document document)
protected File getXmlFile(final Project project) throws FileNotFoundException, IOException { logger.info("getXmlFile(Project)"); logger.debug(project); final File xmlFile = lookupXmlFile(project.getId()); if(null != xmlFile) { return xmlFile; } else { return xmlPathBuilder.getXmlFile(project, fillInStack(proj...
logger.info("getXmlFile(Project)"); logger.debug(project); final File xmlFile = lookupXmlFile(project.getId());
final File xmlFile = lookupXmlFile(document.getId());
protected File getXmlFile(final Project project) throws FileNotFoundException, IOException { logger.info("getXmlFile(Project)"); logger.debug(project); final File xmlFile = lookupXmlFile(project.getId()); if(null != xmlFile) { return xmlFile; } else { return xmlPathBuilder.getXmlFile(project, fillInStack(proj...
return xmlPathBuilder.getXmlFile(project, fillInStack(project));
return xmlPathBuilder.getXmlFile(document, fillInStack(document));
protected File getXmlFile(final Project project) throws FileNotFoundException, IOException { logger.info("getXmlFile(Project)"); logger.debug(project); final File xmlFile = lookupXmlFile(project.getId()); if(null != xmlFile) { return xmlFile; } else { return xmlPathBuilder.getXmlFile(project, fillInStack(proj...
protected void write(final Project project, final File xmlFile)
protected void write(final Document document, final File xmlFile)
protected void write(final Project project, final File xmlFile) throws FileNotFoundException, IOException { logger.info("write(Project,File)"); writeXmlFile(toXml(project), xmlFile); writeIndexXml(project); }
logger.info("write(Project,File)"); writeXmlFile(toXml(project), xmlFile); writeIndexXml(project);
logger.info("write(Document,File)"); writeXmlFile(toXml(document), xmlFile); writeIndexXml(document);
protected void write(final Project project, final File xmlFile) throws FileNotFoundException, IOException { logger.info("write(Project,File)"); writeXmlFile(toXml(project), xmlFile); writeIndexXml(project); }
private File lookupXmlFile(final UUID id) throws FileNotFoundException,
protected File lookupXmlFile(final UUID id) throws FileNotFoundException,
private File lookupXmlFile(final UUID id) throws FileNotFoundException, IOException { final IndexXmlIO indexXmlIO = new IndexXmlIO(workspace); return indexXmlIO.get().lookupXmlFile(id); }
reader.close();
try { datum.stream.close(); reader.close(); } catch (final IOException iox2) { fail(createFailMessage(iox2)); }
public void testReader() { final StreamReader reader = new StreamReader(datum.streamSession); try { reader.open(); reader.read(datum.streamId, datum.stream); } finally { reader.close(); } }
public StreamReader(final StreamSession session) { super(Type.DOWNSTREAM, session);
public StreamReader(final StreamMonitor monitor, final StreamSession session) { super(Type.DOWNSTREAM, monitor, session);
public StreamReader(final StreamSession session) { super(Type.DOWNSTREAM, session); }
infoText = "";
infoText = getString("Info.CREATE");
private void setInfoText(final HistoryItem historyItem) { final Object[] arguments; final String infoText; switch(historyItem.getEvent()) { case CLOSE: case CREATE: infoText = ""; break; case RECEIVE: case RECEIVE_KEY: final ReceiveHistoryItem rhi = (ReceiveHistoryItem) historyItem; arguments = new Obje...
case RECEIVE_KEY:
private void setInfoText(final HistoryItem historyItem) { final Object[] arguments; final String infoText; switch(historyItem.getEvent()) { case CLOSE: case CREATE: infoText = ""; break; case RECEIVE: case RECEIVE_KEY: final ReceiveHistoryItem rhi = (ReceiveHistoryItem) historyItem; arguments = new Obje...
infoText = getString("Info.RECEIVED_FROM", arguments);
infoText = getString("Info.RECEIVE", arguments); break; case RECEIVE_KEY: final ReceiveKeyHistoryItem rki = (ReceiveKeyHistoryItem) historyItem; arguments = new Object[] {ModelUtil.getName(rki.getReceivedFrom())}; infoText = getString("Info.RECEIVE_KEY", arguments); break; case REQUEST_KEY: final RequestKeyItem rki2 = ...
private void setInfoText(final HistoryItem historyItem) { final Object[] arguments; final String infoText; switch(historyItem.getEvent()) { case CLOSE: case CREATE: infoText = ""; break; case RECEIVE: case RECEIVE_KEY: final ReceiveHistoryItem rhi = (ReceiveHistoryItem) historyItem; arguments = new Obje...
if(0 == i++) { localKey = "Info.SENT_TO_0"; } else { localKey = "Info.SENT_TO_N"; }
if(0 == i++) { localKey = "Info.SEND_0"; } else { localKey = "Info.SEND_N"; }
private void setInfoText(final HistoryItem historyItem) { final Object[] arguments; final String infoText; switch(historyItem.getEvent()) { case CLOSE: case CREATE: infoText = ""; break; case RECEIVE: case RECEIVE_KEY: final ReceiveHistoryItem rhi = (ReceiveHistoryItem) historyItem; arguments = new Obje...
infoText = getString("Info.SENT_TO_0", new Object[] {ModelUtil.getName(skhi.getSentTo())});
infoText = getString("Info.SEND_KEY", new Object[] {ModelUtil.getName(skhi.getSentTo())});
private void setInfoText(final HistoryItem historyItem) { final Object[] arguments; final String infoText; switch(historyItem.getEvent()) { case CLOSE: case CREATE: infoText = ""; break; case RECEIVE: case RECEIVE_KEY: final ReceiveHistoryItem rhi = (ReceiveHistoryItem) historyItem; arguments = new Obje...
NameComparator(final Boolean doCompareAscending) { super(doCompareAscending); }
NameComparator(final Boolean doCompareAscending) { super(doCompareAscending); this.comparator = new StringComparator(doCompareAscending); }
NameComparator(final Boolean doCompareAscending) { super(doCompareAscending); }
OrganizationComparator(final Boolean doCompareAscending) { super(doCompareAscending); }
OrganizationComparator(final Boolean doCompareAscending) { super(doCompareAscending); this.comparator = new StringComparator(doCompareAscending); }
OrganizationComparator(final Boolean doCompareAscending) { super(doCompareAscending); }
globalProperties.setProperty("log4j.logger.com.thinkparity.server", "ERROR, serverHTML"); globalProperties.setProperty("log4j.logger.com.thinkparity.server.ParityServer", "INFO"); globalProperties.setProperty("log4j.logger.com.thinkparity.server.handler", "INFO");
globalProperties.setProperty("log4j.logger.com.thinkparity.server", "INFO, serverHTML");
private void configureGlobal(final Properties globalProperties) { globalProperties.setProperty("log4j.logger.com.thinkparity.server", "ERROR, serverHTML"); globalProperties.setProperty("log4j.logger.com.thinkparity.server.ParityServer", "INFO"); globalProperties.setProperty("log4j.logger.com.thinkparity.server.hand...
log4jProperties.setProperty("log4j.appender.serverHTML.MaxFileSize", "512MB");
log4jProperties.setProperty("log4j.appender.serverHTML.MaxFileSize", "512KB");
private void configureServerHTMLAppender( final Properties log4jProperties, final File log4jDirectory) { log4jProperties.setProperty("log4j.appender.serverHTML", "org.apache.log4j.RollingFileAppender"); log4jProperties.setProperty("log4j.appender.serverHTML.MaxFileSize", "512MB"); log4jProperties.setProperty("log...
logger.info(getApiId("[CREATE DRAFT]")); logger.debug(containerId); assertOnline(getApiId("[CREATE DRAFT] [USER NOT ONLINE]"));
logApiId(); logVariable("containerId", containerId); assertOnline("USER NOT ONLINE");
ContainerDraft createDraft(final Long containerId) { logger.info(getApiId("[CREATE DRAFT]")); logger.debug(containerId); assertOnline(getApiId("[CREATE DRAFT] [USER NOT ONLINE]")); final Container container = read(containerId); if(!isDistributed(container.getId())) { cr...
final TeamMember teamMember) {
final TeamMember owner) {
private ContainerDraft createFirstDraft(final Long containerId, final TeamMember teamMember) { final ContainerDraft draft = new ContainerDraft(); draft.setContainerId(containerId); draft.setOwner(teamMember); containerIO.createDraft(draft); // fire draft event fi...
draft.setOwner(teamMember);
draft.setOwner(owner);
private ContainerDraft createFirstDraft(final Long containerId, final TeamMember teamMember) { final ContainerDraft draft = new ContainerDraft(); draft.setContainerId(containerId); draft.setOwner(teamMember); containerIO.createDraft(draft); // fire draft event fi...
private void deleteLocal(final Long containerId) throws ParityException {
private void deleteLocal(final Long containerId) {
private void deleteLocal(final Long containerId) throws ParityException { // delete the draft final ContainerDraft draft = readDraft(containerId); if(null != draft) { for(final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, ...
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecks...
void handleArtifactPublished(final UUID uniqueId, final Long versionId, final String name, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final byte[] artifactBytes, final JabberId publishedBy, final Calendar publishe...
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
logVariable("publishedBy", publishedBy); logVariable("publishedOn", publishedOn); logVariable("containerUniqueId", containerUniqueId); logVariable("containerVersionId", containerVersionId); logVariable("containerName", containerName);
logVariable("uniqueId", uniqueId); logVariable("versionId", versionId); logVariable("name", name);
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
final Boolean doesExist = artifactModel.doesExist(containerUniqueId);
final Boolean doesExist = artifactModel.doesExist(uniqueId);
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
containerId = artifactModel.readId(containerUniqueId);
containerId = artifactModel.readId(uniqueId);
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
doesVersionExist = artifactModel.doesVersionExist(containerId, containerVersionId);
doesVersionExist = artifactModel.doesVersionExist(containerId, versionId);
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
version = readVersion(container.getId(), containerVersionId);
version = readVersion(container.getId(), versionId);
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
containerVersionId, publishedBy, publishedOn);
versionId, publishedBy, publishedOn);
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
container.setName(containerName);
container.setName(name);
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
container.setUniqueId(containerUniqueId);
container.setUniqueId(uniqueId);
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
version = createVersion(container.getId(), containerVersionId,
version = createVersion(container.getId(), versionId,
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
artifactVersion = handleDocumentPublished(publishedBy, publishedOn, artifactUniqueId, artifactVersionId, artifactName, artifactChecksum, artifactBytes);
artifactVersion = handleDocumentPublished(artifactUniqueId, artifactVersionId, artifactName, artifactChecksum, artifactBytes, publishedBy, publishedOn);
void handleArtifactPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final Artifa...
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId,
void handleArtifactSent(final UUID uniqueId, final Long versionId, final String name, final UUID artifactUniqueId,
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
final byte[] artifactBytes) {
final byte[] artifactBytes, final JabberId sentBy, final Calendar sentOn) {
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
logVariable("containerUniqueId", containerUniqueId); logVariable("containerVersionId", containerVersionId); logVariable("containerName", containerName);
logVariable("containerUniqueId", uniqueId); logVariable("containerVersionId", versionId); logVariable("containerName", name);
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
final Boolean doesExist = artifactModel.doesExist(containerUniqueId);
final Boolean doesExist = artifactModel.doesExist(uniqueId);
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
if(doesExist) { container = read(artifactModel.readId(containerUniqueId));
if (doesExist) { container = read(artifactModel.readId(uniqueId));
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
artifactModel.doesVersionExist(container.getId(), containerVersionId); if(doesVersionExist) { version = readVersion(container.getId(), containerVersionId);
artifactModel.doesVersionExist(container.getId(), versionId); if (doesVersionExist) { version = readVersion(container.getId(), versionId); } else { version = createVersion(container.getId(), versionId, sentBy, sentOn);
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
else { version = createVersion(container.getId(), containerVersionId, sentBy, sentOn); } } else {
} else {
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
container.setName(containerName);
container.setName(name);
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
container.setUniqueId(containerUniqueId);
container.setUniqueId(uniqueId);
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
version = createVersion(container.getId(), containerVersionId,
version = createVersion(container.getId(), versionId,
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
throw Assert.createUnreachable("[UNSUPPORTED ARTIFACT TYPE]");
throw Assert.createUnreachable("UNSUPPORTED ARTIFACT TYPE");
void handleArtifactSent(final JabberId sentBy, final Calendar sentOn, final UUID containerUniqueId, final Long containerVersionId, final String containerName, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifact...
private DocumentVersion handleDocumentPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID uniqueId, final Long versionId, final String name, final String checksum, final byte[] bytes) throws IOException {
private DocumentVersion handleDocumentPublished(final UUID uniqueId, final Long versionId, final String name, final String checksum, final byte[] bytes, final JabberId publishedBy, final Calendar publishedOn) throws IOException {
private DocumentVersion handleDocumentPublished(final JabberId publishedBy, final Calendar publishedOn, final UUID uniqueId, final Long versionId, final String name, final String checksum, final byte[] bytes) throws IOException { final InternalDocumentModel documentModel = ge...
final List<ContainerVersion> versions = readVersions(containerId); return 0 < versions.size();
return getInternalArtifactModel().doesVersionExist(containerId, Versioning.START);
private Boolean isDistributed(final Long containerId) { final List<ContainerVersion> versions = readVersions(containerId); return 0 < versions.size(); }
logVariable("userId", userId); logVariable("contactId", contactId);
logger.logVariable("userId", userId); logger.logVariable("contactId", contactId);
private void delete(final JabberId userId, final JabberId contactId) { logVariable("userId", userId); logVariable("contactId", contactId); getContactModel().delete(userId, contactId); }
switchFeed();
public RSS(String name, String hostname, Integer port) throws MalformedURLException { super("RSS." + name, hostname, port); poller = new Poller(1); }
String urlstring = airBrush.getParameterString("QueryString"); URL ret = null; try { ret = new URL(urlstring); } catch (MalformedURLException e) { throw new MalformedURLException("The QueryString parameter is not well formed (" + urlstring + ").");
final String paramname = "FeedURI"; if (airBrush.hasParameter(paramname)) { String urlstring = airBrush.getParameterString(paramname); URL ret = null; try { ret = new URL(urlstring); } catch (MalformedURLException e) { throw new MalformedURLException( "The " + paramname + " parameter is not well formed (" + urlstring +...
private URL getURL() throws MalformedURLException { String urlstring = airBrush.getParameterString("QueryString"); URL ret = null; try { ret = new URL(urlstring); } catch (MalformedURLException e) { throw new MalformedURLException("The QueryString parameter is not w...
return ret;
private URL getURL() throws MalformedURLException { String urlstring = airBrush.getParameterString("QueryString"); URL ret = null; try { ret = new URL(urlstring); } catch (MalformedURLException e) { throw new MalformedURLException("The QueryString parameter is not w...
final String host; host = "0.0.0.0";
final String host = "0.0.0.0";
StreamServer(final File workingDirectory, final Environment environment) { super(); this.fileServer = new StreamFileServer(this, workingDirectory); this.logger = new Log4JWrapper(); final String host; host = "0.0.0.0";//NetworkUtil.getIp(); //try { //} catch (final U...
if (op.equals("Departamento RRHH"))
else if (op.equals("Departamento RRHH"))
public void procesarEvento() { ObjetoBean aviso= (ObjetoBean)this.getSesion().getAttribute("beanAvisos"); HashMap listaGrupos=(HashMap)this.getSesion().getAttribute("listagrupos"); //Esto no esta definido todavia String op = (String)this.getSesion().getAttribute("claveaviso"); //Integer pos = (Integer)this.getSes...
System.out.println("Entra en alumnos");
public void procesarEvento() { ObjetoBean aviso= (ObjetoBean)this.getSesion().getAttribute("beanAvisos"); HashMap listaGrupos=(HashMap)this.getSesion().getAttribute("listagrupos"); //Esto no esta definido todavia String op = (String)this.getSesion().getAttribute("claveaviso"); //Integer pos = (Integer)this.getSes...
catch(UnauthorizedException ux) {
catch(final UnauthorizedException ux) {
void requestKey(final UUID artifactUniqueId) throws ParityServerModelException { logger.info("requestKey(UUID)"); logger.debug(artifactUniqueId); try { final JID keyHolderJID = getKeyHolder(artifactUniqueId); final IQ iq = new IQKeyRequest(artifactUniqueId); iq.setTo(keyHolderJID); iq.setFrom(session.getJID...
catch(RuntimeException rx) {
catch(final RuntimeException rx) {
void requestKey(final UUID artifactUniqueId) throws ParityServerModelException { logger.info("requestKey(UUID)"); logger.debug(artifactUniqueId); try { final JID keyHolderJID = getKeyHolder(artifactUniqueId); final IQ iq = new IQKeyRequest(artifactUniqueId); iq.setTo(keyHolderJID); iq.setFrom(session.getJID...
public CodebaseTestCase() {super();}
public CodebaseTestCase(String arg0) { super(arg0); this.helper = new CodebaseTestHelper(); }
public CodebaseTestCase() {super();}
assertNull(NAME + " [EVENT CONTAINER IS NOT NULL]", e.getContainer());
assertNotNull(NAME + " EVENT CONTAINER IS NULL", e.getContainer());
public void containerDeleted(ContainerEvent e) { didNotify = Boolean.TRUE; assertTrue(NAME + " [EVENT GENERATED IS NOT LOCAL]", e.isLocal()); assertTrue(NAME + " [EVENT GENERATED IS REMOTE]", !e.isRemote()); assertNull(NAME + " [EVENT CONTAINER IS NOT NULL]", e.getCon...
public Preferences getPreferences() { return new PreferencesHelper(workspaceRoot).getPreferences(); }
public Preferences getPreferences() { return preferences; }
Workspace openWorkspace() { final URL workspaceRootURL = initRoot(); final File workspaceRoot = new File(workspaceRootURL.getFile()); return new Workspace() { /** * URL to the data directory within the workspace. */ final URL dataURL = initChild(workspaceRootURL, "data"); /** * URL to the log file di...
public Preferences getPreferences() { return new PreferencesHelper(workspaceRoot).getPreferences(); }
public Preferences getPreferences() { return preferences; }
public Preferences getPreferences() { return new PreferencesHelper(workspaceRoot).getPreferences(); }
public void deleteTeamRel(final Long artifactId, final Long userId) throws HypersonicException {
public void deleteTeamRel(final Long artifactId) throws HypersonicException {
public void deleteTeamRel(final Long artifactId, final Long userId) throws HypersonicException { final Session session = openSession(); try { session.prepareStatement(SQL_DELETE_TEAM_REL_BY_ARTIFACT_BY_USER); session.setLong(1, artifactId); session.setLong(2...
session.prepareStatement(SQL_DELETE_TEAM_REL_BY_ARTIFACT_BY_USER);
final Integer rowCount = readTeamRelCount(session, artifactId); session.prepareStatement(SQL_DELETE_TEAM_REL_BY_ARTIFACT);
public void deleteTeamRel(final Long artifactId, final Long userId) throws HypersonicException { final Session session = openSession(); try { session.prepareStatement(SQL_DELETE_TEAM_REL_BY_ARTIFACT_BY_USER); session.setLong(1, artifactId); session.setLong(2...
session.setLong(2, userId); if(1 != session.executeUpdate())
if(rowCount != session.executeUpdate())
public void deleteTeamRel(final Long artifactId, final Long userId) throws HypersonicException { final Session session = openSession(); try { session.prepareStatement(SQL_DELETE_TEAM_REL_BY_ARTIFACT_BY_USER); session.setLong(1, artifactId); session.setLong(2...
case REACTIVATE: return extractReactivate(session);
private AuditEvent extract(final Session session) { final AuditEventType eventType = session.getAuditEventTypeFromInteger("ARTIFACT_AUDIT_TYPE_ID"); switch(eventType) { case ADD_TEAM_MEMBER: return extractAddTeamMember(session); case ADD_TEAM_MEMBER_CONFIRM: return extractAddTeamM...
public User read(final Long userId) {
public User read(final JabberId jabberId) {
public User read(final Long userId) { final Session session = openSession(); try { session.prepareStatement(SQL_READ_BY_USER_ID); session.setLong(1, userId); session.executeQuery(); if(session.nextResult()) { return extractUser(session); } else { ...
session.prepareStatement(SQL_READ_BY_USER_ID); session.setLong(1, userId);
session.prepareStatement(SQL_READ_BY_JABBER_ID); session.setQualifiedUsername(1, jabberId);
public User read(final Long userId) { final Session session = openSession(); try { session.prepareStatement(SQL_READ_BY_USER_ID); session.setLong(1, userId); session.executeQuery(); if(session.nextResult()) { return extractUser(session); } else { ...
this.queueSize = 0;
XMPPSystem(final XMPPCore core) { super(core); this.queueLock = new Object(); this.queueSize = 0; }
logger.logVariable("queueSize", queueSize);
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOf...
final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOfflineQueue.setParameter("userId", userId);
final XMPPMethod readQueueEvents = new XMPPMethod("system:readqueueevents"); readQueueEvents.setParameter("userId", userId);
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOf...
execute(processOfflineQueue, Boolean.TRUE).readResultEvents("events"); queueSize = queue.size(); logger.logVariable("queueSize", queueSize);
execute(readQueueEvents, Boolean.TRUE).readResultEvents("events");
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOf...
logger.logVariable("queueSize", --queueSize);
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOf...
processQueue();
try { processQueue(); } catch(final RuntimeException rx) { sysApp.logger.error("[BROWSER2] [APP] [SYS] [IMPL RUNNING]", rx); throw rx; }
public void run() { while(running) { sysApp.logger.info("[BROWSER2] [APP] [SYS] [IMPL] [RUNNING]"); try { synchronized(this) { wait(); } } catch(final InterruptedException ix) { sysApp.logger.info("[BROWSER2] [APP] [SYS] [IMPL] [INTERRUPTED]"); } processQueue(); } }
return readDocument(index.lookupXmlFile(id));
final File xmlFile = index.lookupXmlFile(id); if(null == xmlFile) { return null; } else { return readDocument(xmlFile); }
public Document get(final UUID id) throws FileNotFoundException, IOException { logger.info("get(UUID)"); logger.debug(id); final Index index = readIndex(getIndexXmlFile()); return readDocument(index.lookupXmlFile(id)); }
index.addLookup(document.getId(), targetDocumentXmlFile);
index.addXmlFileLookup(document.getId(), targetDocumentXmlFile);
protected void move(final Document document, final DocumentContent content, final Collection<DocumentVersion> versions, final File targetXmlFileDirectory) throws FileNotFoundException, IOException { final File documentXmlFile = getXmlFile(document); final File contentXmlFile = getXmlFile(document, content); fin...
public static MappingDescriptor loadClassDescriptors(String xmlFile)
public static MappingDescriptor loadClassDescriptors(InputStream stream)
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (FileNotFoundException e) { throw new InitMapperException(e); } }
return loadClassDescriptors(new FileInputStream(xmlFile));
Digester digester = new Digester(); digester.setValidating(true); digester.addObjectCreate("graffito-jcr", MappingDescriptor.class); digester.addObjectCreate("graffito-jcr/class-descriptor", ClassDescriptor.class); digester.addSetProperties("graffito-jcr/class-descriptor", "className", "className"); digester.addS...
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (FileNotFoundException e) { throw new InitMapperException(e); } }
catch (FileNotFoundException e)
catch (Exception e)
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (FileNotFoundException e) { throw new InitMapperException(e); } }
throw new InitMapperException(e);
throw new InitMapperException("Impossible to read the xml mapping file", e);
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (FileNotFoundException e) { throw new InitMapperException(e); } }
public void teamMemberAdded(final DocumentEvent e) { if(e.isRemote()) { browser.fireDocumentTeamMemberAdded(e.getDocument().getId()); } }
private DocumentListener createDocumentListener() { return new DocumentAdapter() { public void confirmationReceived(final DocumentEvent e) { if(e.isRemote()) { browser.fireDocumentConfirmationReceived(e.getDocument().getId()); } } publi...
final String resourcePath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.ResourcePath", scenarioName), null);
final String resourcePath = MessageFormat.format("demo/{0}/resources", scenarioName.toLowerCase());
private void configureScenario(final List<Scenario> scenarios, final Environment environment, final Properties properties, final String scenarioName) { final String displayName = properties.getProperty( MessageFormat.format("demo.scenario.{0}.DisplayName", scenarioName), ...
final String scriptPath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.ScriptPath", scenario.getName(), scriptName), null);
final String scriptPath = MessageFormat.format("demo/", "");
private void configureScenarioScript(final Scenario scenario, final Properties properties, final String scriptName) { final String scriptPath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.ScriptPath", scenario.getName(), scriptName), null); final Strin...
public InputStream openStream() {
public InputStream open() {
private void configureScenarioScript(final Scenario scenario, final Properties properties, final String scriptName) { final String scriptPath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.ScriptPath", scenario.getName(), scriptName), null); final Strin...
} public InputStream openResource(String name) { return ResourceUtil.getInputStream(new StringBuffer( scenario.getResourcePath()) .append("/").append(scriptPath).toString());
private void configureScenarioScript(final Scenario scenario, final Properties properties, final String scriptName) { final String scriptPath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.ScriptPath", scenario.getName(), scriptName), null); final Strin...
return localFileName(version);
return MessageFormat.format("{0}.{1}", FileUtil.getName(version.getName()), FileUtil.getExtension(version.getName()));
public String exportFileName(final DocumentVersion version) { return localFileName(version); }
this.imageCache = new MainCellImageCache();
public MainCellDocument(final Document d) { super(d.getCreatedBy(), d.getCreatedOn(), d.getDescription(), d.getFlags(), d.getUniqueId(), d.getName(), d.getUpdatedBy(), d.getUpdatedOn()); this.imageCache = new MainCellImageCache(); setId(d.getId()); setRemote...
this.seen = contains(ArtifactFlag.SEEN);
public MainCellDocument(final Document d) { super(d.getCreatedBy(), d.getCreatedOn(), d.getDescription(), d.getFlags(), d.getUniqueId(), d.getName(), d.getUpdatedBy(), d.getUpdatedOn()); this.imageCache = new MainCellImageCache(); setId(d.getId()); setRemote...
if(hasBeenSeen()) { return BrowserConstants.DefaultFont; }
if(isSeen()) { return BrowserConstants.DefaultFont; }
public Font getTextFont() { if(hasBeenSeen()) { return BrowserConstants.DefaultFont; } else { return BrowserConstants.DefaultFontBold; } }
listModel.remove(i); listModel.add(i, visiblePanels.get(i));
listModel.set(listModel.indexOf(visiblePanels.get(i)), visiblePanels.get(i));
public void synchronize() { debug(); visiblePanels.clear(); for (final TabPanel containerPanel : containerPanels) { visiblePanels.add(containerPanel); if (isExpanded(containerPanel)) { visiblePanels.add(versionsPanels.get(containerPanel)); } ...
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public Long create(final String artifactId, final String groupId, final String version, final List<Long> libraryIds) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:create"); session.setParameter("arti...
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public void delete(final Long releaseId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:delete"); session.setParameter("id", releaseId); session.execute(); } catch(final Exception x) { throw new XM...
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public Release read(final Long releaseId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:read"); session.setParameter("id", releaseId); session.execute(); if(session.containsResult()) { return extract...
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public Release readLatest(final String artifactId, final String groupId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:readlatest"); session.setParameter("artifactId", artifactId); session.setParamet...
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public List<Library> readLibraries(final Long releaseId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:readlibraries"); session.setParameter("id", releaseId); session.execute(); if(session.containsR...
public void setParameter(final String name, final String value) {
public void setParameter(final String name, final byte[] value) {
public void setParameter(final String name, final String value) { assertMethod("[SET PARAMETER]"); debugParameter(name, value); xmppMethod.setParameter(name, value); }
public void setLongParameters(final String listName, final String name,
public final void setLongParameters(final String listName, final String name,
public void setLongParameters(final String listName, final String name, final List<Long> longs) { assertMethod("[SET LONG PARAMTERS]"); debugLongParameters(listName, name, longs); xmppMethod.setLongParameters(listName, name, longs); }
assertMethod("[SET LONG PARAMTERS]");
assertMethod("[SET LONG PARAMETERS]");
public void setLongParameters(final String listName, final String name, final List<Long> longs) { assertMethod("[SET LONG PARAMTERS]"); debugLongParameters(listName, name, longs); xmppMethod.setLongParameters(listName, name, longs); }
print(" encoding=\"" + encoding);
print(" encoding=\"" + encoding + "\"");
public void xmlDecl(String version, String encoding, Boolean standalone) { print("xmlDecl: <?xml version=\"" + version + "\""); if(encoding != null) print(" encoding=\"" + encoding); if(standalone != null) { print(" standalone=\""); if(standalone) print("yes"); else print("no"); print("\""); }...
final JMenu newMenu = MenuFactory.create(localization.getString("New"), new Integer(localization.getString("NewMnemonic").charAt(0)));
final JMenu newMenu = MenuFactory.create(localization.getString("New"), localization.getString("NewMnemonic"));
public BrowserMenuBar(final Browser browser, final Boolean maximized) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Bool...
final JMenu profileMenu = MenuFactory.create(localization.getString("Profile"), new Integer(localization.getString("ProfileMnemonic").charAt(0)));
final JMenu profileMenu = MenuFactory.create(localization.getString("Profile"), localization.getString("ProfileMnemonic"));
public BrowserMenuBar(final Browser browser, final Boolean maximized) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Bool...
final JMenu helpMenu = MenuFactory.create(localization.getString("Help"), new Integer(localization.getString("HelpMnemonic").charAt(0)));
final JMenu helpMenu = MenuFactory.create(localization.getString("Help"), localization.getString("HelpMnemonic"));
public BrowserMenuBar(final Browser browser, final Boolean maximized) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Bool...