rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
logColumnExtraction(columnName, value); | public ArtifactFlag getFlagFromString(final String columnName) { assertOpen("getFlagFromString(String)"); assertOpenResult("getFlagFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? null ... | |
assertOpen("[GET INPUT STREAM]"); assertOpenResult("[GET INPUT STREAM]"); logger.logVariable("columnName", columnName); | assertConnectionIsOpen(); assertResultSetIsSet(); | public InputStream getInputStream(final String columnName) { assertOpen("[GET INPUT STREAM]"); assertOpenResult("[GET INPUT STREAM]"); logger.logVariable("columnName", columnName); try { final InputStream value = resultSet.getBinaryStream(columnName); return resultS... |
logColumnExtraction(columnName, value); | public InputStream getInputStream(final String columnName) { assertOpen("[GET INPUT STREAM]"); assertOpenResult("[GET INPUT STREAM]"); logger.logVariable("columnName", columnName); try { final InputStream value = resultSet.getBinaryStream(columnName); return resultS... | |
assertOpen(); assertMetaData(); | assertConnectionIsOpen(); assertMetaDataIsSet(); logStatement("select TABLE_NAME from PUBLIC.TABLES"); | public void getMetaDataTables() { assertOpen(); assertMetaData(); try { resultSet = metaData.getTables(null, "PUBLIC", null, new String[] {"TABLE"}); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } } |
assertOpen("getMetaDataTypeFromInteger(String)"); assertOpenResult("getMetaDataTypeFromInteger(String)"); logger.logVariable("columnName", columnName); | assertConnectionIsOpen(); assertResultSetIsSet(); | public MetaDataType getMetaDataTypeFromInteger(final String columnName) { assertOpen("getMetaDataTypeFromInteger(String)"); assertOpenResult("getMetaDataTypeFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName); return re... |
logColumnExtraction(columnName, value); | public MetaDataType getMetaDataTypeFromInteger(final String columnName) { assertOpen("getMetaDataTypeFromInteger(String)"); assertOpenResult("getMetaDataTypeFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName); return re... | |
assertOpen("getStateFromString(String)"); assertOpenResult("getStateFromString(String)"); logger.logVariable("columnName", columnName); | assertConnectionIsOpen(); assertResultSetIsSet(); | public ArtifactState getStateFromString(final String columnName) { assertOpen("getStateFromString(String)"); assertOpenResult("getStateFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? n... |
logColumnExtraction(columnName, value); | public ArtifactState getStateFromString(final String columnName) { assertOpen("getStateFromString(String)"); assertOpenResult("getStateFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? n... | |
assertOpen("getSystemMessageTypeFromInteger(String)"); assertOpenResult("getSystemMessageTypeFromInteger(String)"); logger.logVariable("columnName", columnName); | assertConnectionIsOpen(); assertResultSetIsSet(); | public SystemMessageType getSystemMessageTypeFromInteger( final String columnName) { assertOpen("getSystemMessageTypeFromInteger(String)"); assertOpenResult("getSystemMessageTypeFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName... |
logColumnExtraction(columnName, value); | public SystemMessageType getSystemMessageTypeFromInteger( final String columnName) { assertOpen("getSystemMessageTypeFromInteger(String)"); assertOpenResult("getSystemMessageTypeFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName... | |
assertOpen("getTypeFromString(String)"); assertOpenResult("getTypeFromString(String)"); logger.logVariable("columnName", columnName); | assertConnectionIsOpen(); assertResultSetIsSet(); | public ArtifactType getTypeFromString(final String columnName) { assertOpen("getTypeFromString(String)"); assertOpenResult("getTypeFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? null ... |
logColumnExtraction(columnName, value); | public ArtifactType getTypeFromString(final String columnName) { assertOpen("getTypeFromString(String)"); assertOpenResult("getTypeFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? null ... | |
assertOpen("getMetaData"); | assertConnectionIsOpen(); | public void openMetaData() { assertOpen("getMetaData"); try { metaData = connection.getMetaData(); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } } |
assertOpen("setBoolean(Integer,Boolean)"); assertPreparedStatement("setBoolean(Integer,Boolean)"); logIndexAndValue(index, value); try { preparedStatement.setBoolean(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setBoolean(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setBoolean(final Integer index, final Boolean value) { assertOpen("setBoolean(Integer,Boolean)"); assertPreparedStatement("setBoolean(Integer,Boolean)"); logIndexAndValue(index, value); try { preparedStatement.setBoolean(index, value); } catch(final SQLException sqlx) { t... |
assertOpen("setBytes(Integer,Byte[])"); assertPreparedStatement("setBytes(Integer,Byte[])"); logIndexAndValue(index, value); try { preparedStatement.setBytes(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setBytes(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setBytes(final Integer index, final byte[] value) { assertOpen("setBytes(Integer,Byte[])"); assertPreparedStatement("setBytes(Integer,Byte[])"); logIndexAndValue(index, value); try { preparedStatement.setBytes(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sql... |
assertOpen("setEMail(Integer,EMail)"); assertPreparedStatement("setEMail(Integer,EMail)"); logIndexAndValue(index, value); | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); | public void setEMail(final Integer index, final EMail value) { assertOpen("setEMail(Integer,EMail)"); assertPreparedStatement("setEMail(Integer,EMail)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch (final SQLException... |
assertOpen("setFlagAsInteger(Integer,ArtifactFlag)"); assertPreparedStatement("setFlagAsInteger(Integer,ArtifactFlag)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setInt(index, value.getId()); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setFlagAsInteger(final Integer index, final ArtifactFlag value) { assertOpen("setFlagAsInteger(Integer,ArtifactFlag)"); assertPreparedStatement("setFlagAsInteger(Integer,ArtifactFlag)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final SQLExcept... |
assertOpen("setFlagAsString(Integer,ArtifactFlag)"); assertPreparedStatement("setFlagAsString(Integer,ArtifactFlag)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setString(index, value.toString()); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setFlagAsString(final Integer index, final ArtifactFlag value) { assertOpen("setFlagAsString(Integer,ArtifactFlag)"); assertPreparedStatement("setFlagAsString(Integer,ArtifactFlag)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLExc... |
assertOpen("setInt(Integer,Integer)"); assertPreparedStatement("setInt(Integer,Integer)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setInt(index, value); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setInt(final Integer index, final Integer value) { assertOpen("setInt(Integer,Integer)"); assertPreparedStatement("setInt(Integer,Integer)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } } |
assertOpen("setMetaDataAsString(Integer,MetaData)"); assertPreparedStatement("setMetaDataAsString(Integer,MetaData)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setString(index, value.toString()); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setMetaDataAsString(final Integer index, final MetaData value) { assertOpen("setMetaDataAsString(Integer,MetaData)"); assertPreparedStatement("setMetaDataAsString(Integer,MetaData)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQL... |
assertOpen("Database session is not open."); assertPreparedStatement("Prepared statement has not been set."); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.getQualifiedUsername()); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setString(index, value.getQualifiedUsername()); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setQualifiedUsername(final Integer index, final JabberId value) { assertOpen("Database session is not open."); assertPreparedStatement("Prepared statement has not been set."); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.getQualifiedUsername()); } catch(final SQ... |
assertOpen("setStateAsInteger(Integer,ArtifactState)"); assertPreparedStatement("setStateAsInteger(Integer,ArtifactState)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setInt(index, value.getId()); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setStateAsInteger(final Integer index, final ArtifactState value) { assertOpen("setStateAsInteger(Integer,ArtifactState)"); assertPreparedStatement("setStateAsInteger(Integer,ArtifactState)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final ... |
assertOpen("setStateAsString(Integer,ArtifactState)"); assertPreparedStatement("setStateAsString(Integer,ArtifactState)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setString(index, value.toString()); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setStateAsString(final Integer index, final ArtifactState value) { assertOpen("setStateAsString(Integer,ArtifactState)"); assertPreparedStatement("setStateAsString(Integer,ArtifactState)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toStrin... |
public void setStream(final Integer index, final InputStream stream, final Integer streamLength) { assertOpen(""); assertPreparedStatement(""); | public void setStream(final Integer index, final InputStream value, final Integer valueLength) { assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value, valueLength); | public void setStream(final Integer index, final InputStream stream, final Integer streamLength) { assertOpen(""); assertPreparedStatement(""); try { preparedStatement.setBinaryStream(index, stream, streamLength); } catch (final SQLException sqlx) { throw... |
preparedStatement.setBinaryStream(index, stream, streamLength); | preparedStatement.setBinaryStream(index, value, valueLength); | public void setStream(final Integer index, final InputStream stream, final Integer streamLength) { assertOpen(""); assertPreparedStatement(""); try { preparedStatement.setBinaryStream(index, stream, streamLength); } catch (final SQLException sqlx) { throw... |
assertOpen("setTypeAsInteger(Integer,ArtifactType)"); assertPreparedStatement("setTypeAsInteger(Integer,ArtifactType)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setInt(index, value.getId()); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setTypeAsInteger(final Integer index, final ArtifactType value) { assertOpen("setTypeAsInteger(Integer,ArtifactType)"); assertPreparedStatement("setTypeAsInteger(Integer,ArtifactType)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final SQLExc... |
assertOpen("setTypeAsString(Integer,ArtifactType)"); assertPreparedStatement("setTypeString(Integer,ArtifactType)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setString(index, value.toString()); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setTypeAsString(final Integer index, final ArtifactType value) { assertOpen("setTypeAsString(Integer,ArtifactType)"); assertPreparedStatement("setTypeString(Integer,ArtifactType)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLExcep... |
assertOpen("setUniqueId(Integer,UUID)"); assertPreparedStatement("setUniqueId(Integer,UUID)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } | assertConnectionIsOpen(); assertPreparedStatementIsSet(); logColumnInjection(index, value); try { preparedStatement.setString(index, value.toString()); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } | public void setUniqueId(final Integer index, final UUID value) { assertOpen("setUniqueId(Integer,UUID)"); assertPreparedStatement("setUniqueId(Integer,UUID)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLException sqlx) { throw new HypersonicE... |
return (XMPPMethodResponse) idCollector.nextResult(); | return (XMPPMethodResponse) idCollector.nextResult(3 * 1000); | public XMPPMethodResponse execute(final XMPPConnection xmppConnection) { // add an executed on parameter setParameter(Xml.All.EXECUTED_ON, DateUtil.getInstance()); // create a collector for the response final PacketCollector idCollector = createPacketCollector(xmppConnection); // ... |
protected LinkTool copyWith(String uri) | protected LinkTool copyWith(QueryPair pair) | protected LinkTool copyWith(String uri) { LinkTool copy = duplicate(); copy.uri = uri; return copy; } |
copy.uri = uri; | if (copy.queryData != null) { copy.queryData = (ArrayList)this.queryData.clone(); } else { copy.queryData = new ArrayList(); } copy.queryData.add(pair); | protected LinkTool copyWith(String uri) { LinkTool copy = duplicate(); copy.uri = uri; return copy; } |
this.browser = browser; | public Open(final Browser browser) { super(ActionId.DOCUMENT_OPEN); } | |
browser.runApplyFlagSeenArtifact(documentId, ArtifactType.DOCUMENT); | public void invoke(final Data data) { final Long documentId = (Long) data.get(DataKey.DOCUMENT_ID); getDocumentModel().open(documentId); } | |
final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId); | final JabberId userId, final UUID uniqueId, final Long versionId); | public List<DocumentVersion> readArchiveDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId); |
final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId); | final JabberId userId, final UUID uniqueId, final Long versionId); | public List<DocumentVersion> readBackupDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId); |
void initialize(final StreamSession session, final String streamId) { authenticate(session); fileServer.initialize(session, streamId); socketServer.initialize(session, streamId); | void initialize(final ServerSession session) { Assert.assertNotNull("Session is null.", session); Assert.assertNotNull("Session buffer size is null.", session.getBufferSize()); Assert.assertNotNull("Session charset is null.", session.getCharset()); Assert.assertNotNull("Session environment is null.", session.getEnviron... | void initialize(final StreamSession session, final String streamId) { authenticate(session); fileServer.initialize(session, streamId); socketServer.initialize(session, streamId); } |
void destroy(final StreamSession session, final String streamId) { | void destroy(final StreamSession session) { | void destroy(final StreamSession session, final String streamId) { authenticate(session); fileServer.destroy(session, streamId); socketServer.destroy(session, streamId); } |
fileServer.destroy(session, streamId); socketServer.destroy(session, streamId); | synchronized (SESSIONS) { SESSIONS.remove(session.getId()); fileServer.destroy(session); socketServer.destroy(session); session.setId(null); } | void destroy(final StreamSession session, final String streamId) { authenticate(session); fileServer.destroy(session, streamId); socketServer.destroy(session, streamId); } |
getController().displayDocumentHistoryListAvatar(); | getController().displayDocumentHistoryAvatar(); | public void fireSelection() { getController().selectDocument(getDocumentId()); getController().displayDocumentHistoryListAvatar(); } |
listener.handleEvent(xmppEvent); | try { listener.handleEvent(xmppEvent); } catch (final Throwable t) { logger.logFatal(t, "Could not handle xmpp event {0}.", xmppEvent); } | <T extends XMPPEvent> void handleEvent(final T xmppEvent) { logger.pushContext(new Log4JContext() { public String getContext() { return xmppCore.getUserId().getUsername(); } }); logger.logVariable("xmppEvent", xmppEvent); final List<XMPPEventListener<... |
for (final File profileDirectorie : profileDirectories) { FileUtil.deleteTree(profileDirectorie); | for (final File profileDirectory : profileDirectories) { FileUtil.deleteTree(profileDirectory); | private void deleteProfiles(final FileSystem profileFileSystem) { final File[] profileDirectories = profileFileSystem.list("/", new FileFilter() { public boolean accept(final File pathname) { return pathname.getName().startsWith(displayName); } }, Boolean.FALSE); ... |
super(null, name, description, createdOn, createdBy, keyHolder, id); | super(null, name, description, createdOn, createdBy, id); | public Document(final String name, final Calendar createdOn, final String createdBy, final String keyHolder, final String description, final File directory, final UUID id, final byte[] content, final String contentChecksum) { super(null, name, description, createdOn, createdBy, keyHolder, id); this.directory... |
final String xmlFileAbsolutePath = idToXmlFileLookup.get(id.toString()); if(null == xmlFileAbsolutePath) { return null; } else { return new File(xmlFileAbsolutePath); } | if(ids.contains(id)) { return new File(idToXmlFileLookup.get(id.toString())); } else { return null; } | public File lookupXmlFile(final UUID id) { final String xmlFileAbsolutePath = idToXmlFileLookup.get(id.toString()); if(null == xmlFileAbsolutePath) { return null; } else { return new File(xmlFileAbsolutePath); } } |
protected quickfix.Session getQuickFixSession(Session nettySession, Message message) { quickfix.Session quickfixSession = getQuickFixSession(nettySession); if (quickfixSession == null) { SessionID sessionID = getSessionID(message, true); quickfixSession = (quickfix.Session) quickfixSessions.get(sessionID); if (quickfi... | private quickfix.Session getQuickFixSession(Session nettySession) { return (quickfix.Session) quickfixSessionForNettySession.get(nettySession); | protected quickfix.Session getQuickFixSession(Session nettySession, Message message) { quickfix.Session quickfixSession = getQuickFixSession(nettySession); if (quickfixSession == null) { // No QF session for this Netty session, SessionID sessionID = getSessionID(message, true); ... |
void index(final ArtifactIndex index) throws ParityException { logger.info("[LMODEL] [INDEX] [INDEX ARTIFACT]"); logger.debug(index); final InternalSessionModel iSModel = getInternalSessionModel(); final List<JabberId> jabberIds = new LinkedList<JabberId>(); jabberIds.add(index.getCreatedBy()); jabberIds.add(index.get... | private void index(final Document document) throws ParityException { final IndexWriter indexWriter = openIndexWriter(); try { indexWriter.addDocument(document); indexWriter.optimize(); } catch(final IOException iox) { logger.error("[LMODEL] [INDEX] [INDEX DOCUMENT] [IO ERROR]", iox); logger.error(document); throw Parit... | void index(final ArtifactIndex index) throws ParityException { logger.info("[LMODEL] [INDEX] [INDEX ARTIFACT]"); logger.debug(index); final InternalSessionModel iSModel = getInternalSessionModel(); final List<JabberId> jabberIds = new LinkedList<JabberId>(); jabberIds.add(index.getCreatedBy()); jabberIds.add(ind... |
try { return IndexReader.open(workspace.getIndexDirectory()); } | try { return IndexReader.open(getIndexDirectory()); } | private IndexReader openIndexReader() throws ParityException { try { return IndexReader.open(workspace.getIndexDirectory()); } catch(final IOException iox) { logger.error("Could not open index.", iox); logger.error(workspace.getIndexDirectory()); throw ParityErrorTranslator.translate(iox); } } |
logger.error("Could not open index.", iox); logger.error(workspace.getIndexDirectory()); | logger.error("[LMODEL] [INDEX] [OPEN READER] [IO ERROR]", iox); | private IndexReader openIndexReader() throws ParityException { try { return IndexReader.open(workspace.getIndexDirectory()); } catch(final IOException iox) { logger.error("Could not open index.", iox); logger.error(workspace.getIndexDirectory()); throw ParityErrorTranslator.translate(iox); } } |
public FieldBuilder setValue(final Long l) { this.value = l.toString(); | public FieldBuilder setValue(final Calendar c, final DateTools.Resolution r) { this.value = DateTools.dateToString(c.getTime(), r); | public FieldBuilder setValue(final Long l) { this.value = l.toString(); return this; } |
logger.debug("query:" + query.toString()); | logger.info("[LMODEL] [INDEX] [SEARCH] [QUERY]"); logger.debug(query.toString()); | public List<QueryHit> search(final String expression) { final List<Query> queries = createQueries(expression); final List<QueryHit> hits = new LinkedList<QueryHit>(); final QueryHitBuilder queryHitBuilder = new QueryHitBuilder(idField); Iterator iHits; for(final Query query : queries) { logger.debug("query:" + ... |
buttonPressed = new MesquiteInteger(1); prepareDialog(parent,title,buttonPressed); | prepareDialog(parent,title,buttonPressed); | public ExtensibleDialog (Frame parent, String title) { super(title); setFont(defaultBigFont); buttonPressed = new MesquiteInteger(1); prepareDialog(parent,title,buttonPressed); addWindowListener(this); } |
public User create(final User user) { | public void create(final User user) { | public User create(final User user) { final Session session = openSession(); try { session.prepareStatement(SQL_CREATE); session.setQualifiedUsername(1, user.getId()); if(1 != session.executeUpdate()) throw new HypersonicException(""); final L... |
return user; | session.commit(); | public User create(final User user) { final Session session = openSession(); try { session.prepareStatement(SQL_CREATE); session.setQualifiedUsername(1, user.getId()); if(1 != session.executeUpdate()) throw new HypersonicException(""); final L... |
public User create(final User user); | public void create(final User user); | public User create(final User user); |
defaults.put("PopupMenu.background", Colors.Swing.MENU_BG); defaults.put("PopupMenu.foreground", Colors.Swing.MENU_FG); defaults.put("PopupMenu.font", BrowserConstants.Fonts.DefaultFont); | public static void init() { System.setProperty("sun.awt.noerasebackground", "true"); UIDefaults defaults = UIManager.getDefaults(); defaults.put("List.selectionBackground", Colors.Swing.DEFAULT_LIST_SELECTION_BG); defaults.put("List.selectionForeground", Colors.Swing.DEFAULT_LIST_SELECTI... | |
c.insets.left = 275; | c.insets.left = 329; | private void initComponents() { searchJTextField = TextFactory.create(); // COLOR SearchText 237,241,244,255 searchJTextField.setBackground(new Color(237, 241, 244, 255)); // BORDER SearchText TopBottom 204,215,226,255 searchJTextField.setBorder(new TopBottomBorder(new Color(204, 215, 226, 255))); searchJTextFie... |
localFile.delete(); localFile.deleteParent(); | localFile.deleteParentTree(); | private void deleteLocal(final Long documentId) { final Document document = read(documentId); // delete audit final InternalAuditModel iAuditModel = getInternalAuditModel(); iAuditModel.delete(documentId); // delete versions final Collection<DocumentVersion> versions = list... |
public Comparator<Artifact> createByName(final Boolean isAscending) { return new NameComparator(isAscending); | public Comparator<Artifact> createByName() { return new NameComparator(Boolean.TRUE); | public Comparator<Artifact> createByName(final Boolean isAscending) { return new NameComparator(isAscending); } |
public static synchronized byte[] read( InputStream inputStream) throws IOException { return read(inputStream, DEFAULT_CHARSET_NAME); | public static synchronized byte[] read(final InputStream inputStream) throws IOException { if(null == inputStream) { return null; } final ByteBuffer byteBuffer = ByteBuffer.allocate(inputStream.available()); final byte[] streamContentBuffer = new byte[BLOCK_SIZE]; int numBytesRead = inputStream.read(streamContentBuffe... | public static synchronized byte[] read( InputStream inputStream) throws IOException { return read(inputStream, DEFAULT_CHARSET_NAME); } |
reader.open(); | protected final File downloadStream(final String streamId) throws IOException { final File streamFile = workspace.createTempFile(streamId); final FileOutputStream stream = new FileOutputStream(streamFile); final StreamSession session = getSessionModel().createStreamSession(); final Strea... | |
reader.open(); | protected final File downloadStream(final String streamId) throws IOException { final File streamFile = workspace.createTempFile(streamId); final FileOutputStream stream = new FileOutputStream(streamFile); final StreamSession session = getSessionModel().createStreamSession(); final Strea... | |
public Boolean doesVersionExist(final Long artifactId, final Long versionId) { | public Boolean doesVersionExist(final Long artifactId) { | public Boolean doesVersionExist(final Long artifactId, final Long versionId) { synchronized (getImplLock()) { return getImpl().doesVersionExist(artifactId, versionId); } } |
return getImpl().doesVersionExist(artifactId, versionId); | return getImpl().doesVersionExist(artifactId); | public Boolean doesVersionExist(final Long artifactId, final Long versionId) { synchronized (getImplLock()) { return getImpl().doesVersionExist(artifactId, versionId); } } |
super(); this.listeners = new ArrayList<SessionListener>(); this.xmppArchive = new XMPPArchive(this); this.xmppBackup = new XMPPBackup(this); this.xmppArtifact = new XMPPArtifact(this); this.xmppContainer = new XMPPContainer(this); this.xmppContact = new XMPPContact(this); this.xmppProfile = new XMPPProfile(this); this... | this(null); } | public XMPPSessionImpl() { super(); this.listeners = new ArrayList<SessionListener>(); this.xmppArchive = new XMPPArchive(this); this.xmppBackup = new XMPPBackup(this); this.xmppArtifact = new XMPPArtifact(this); this.xmppContainer = new XMPPContainer(this); this.xmppContact = new XMPPCo... |
void decline(final EMail invitedAs, final JabberId invitedBy) throws SmackException { | void decline(final EMail invitedAs, final JabberId invitedBy) { | void decline(final EMail invitedAs, final JabberId invitedBy) throws SmackException { final XMPPMethod decline = new XMPPMethod("contact:declineinvitation"); decline.setParameter(Xml.Contact.INVITED_AS, invitedAs); decline.setParameter(Xml.Contact.INVITED_BY, invitedBy); decline.setPar... |
publish.setParameter("comment", container.getComment()); | void publish(final ContainerVersion container, final Map<DocumentVersion, String> documents, final List<JabberId> publishTo, final JabberId publishedBy, final Calendar publishedOn) { logger.logApiId(); logger.logVariable("container", container); logger.logVariab... | |
final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { | final UUID uniqueId, final Long versionId) { | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... |
logger.logVariable("documentUniqueId", documentUniqueId); | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | |
readDocumentVersions.setParameter("documentUniqueId", documentUniqueId); | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | |
final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { | final UUID uniqueId, final Long versionId) { | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... |
logger.logVariable("documentUniqueId", documentUniqueId); | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | |
readDocumentVersions.setParameter("documentUniqueId", documentUniqueId); | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | |
Contact read(final JabberId userId, final JabberId contactId) { logger.logApiId(); | List<Contact> read(final JabberId userId) { logger.logApiId(); | Contact read(final JabberId userId, final JabberId contactId) { logger.logApiId(); logger.logVariable("userId", userId); assertIsAuthenticatedUser(userId); final XMPPMethod read = new XMPPMethod("contact:read"); read.setParameter("userId", userId); read.setParameter("contac... |
final XMPPMethod read = new XMPPMethod("contact:read"); read.setParameter("userId", userId); read.setParameter("contactId", contactId); final XMPPMethodResponse response = execute(read, Boolean.TRUE); final Contact contact = new Contact(); contact.setId(response.readResultJabberId(Xml.Contact.JABBER_ID)); contact.setN... | final XMPPMethod readIds = new XMPPMethod("contact:readids"); readIds.setParameter("userId", userId); final XMPPMethodResponse response = execute(readIds, Boolean.TRUE); final List<JabberId> contactIds = response.readResultJabberIds("contactIds"); final List<Contact> contacts = new ArrayList<Contact>(contactIds.size())... | Contact read(final JabberId userId, final JabberId contactId) { logger.logApiId(); logger.logVariable("userId", userId); assertIsAuthenticatedUser(userId); final XMPPMethod read = new XMPPMethod("contact:read"); read.setParameter("userId", userId); read.setParameter("contac... |
final XMPPMethodResponse result = execute(method); return result.readResultJabberId("keyHolder"); | return execute(method, Boolean.TRUE).readResultJabberId("keyHolder"); | JabberId readKeyHolder(final JabberId userId, final UUID uniqueId) { final XMPPMethod method = new XMPPMethod("artifact:readkeyholder"); method.setParameter("userId", userId); method.setParameter("uniqueId", uniqueId); final XMPPMethodResponse result = execute(method); return resu... |
public QueueItem enqueue(final String message) | public QueueItem enqueue(final JID jid, final IQ iq) | public QueueItem enqueue(final String message) throws ParityServerModelException { synchronized(implLock) { return impl.enqueue(message); } } |
synchronized(implLock) { return impl.enqueue(message); } | synchronized(implLock) { return impl.enqueue(jid, iq); } | public QueueItem enqueue(final String message) throws ParityServerModelException { synchronized(implLock) { return impl.enqueue(message); } } |
final String usernameAtHost = new StringBuffer(username) .append("@").append(host).toString(); | void login(final String username, final String password) throws ParityException { logger.info("login(String,String)"); logger.debug(username); logger.debug(mask(password)); final String host = preferences.getServerHost(); final Integer port = preferences.getServerPort(); synchronized(xmppHelperLock) { try { ... | |
usernameAtHost.equals(preferences.getUsername())); | username.equals(preferences.getUsername())); | void login(final String username, final String password) throws ParityException { logger.info("login(String,String)"); logger.debug(username); logger.debug(mask(password)); final String host = preferences.getServerHost(); final Integer port = preferences.getServerPort(); synchronized(xmppHelperLock) { try { ... |
preferences.setUsername(usernameAtHost); | preferences.setUsername(username); | void login(final String username, final String password) throws ParityException { logger.info("login(String,String)"); logger.debug(username); logger.debug(mask(password)); final String host = preferences.getServerHost(); final Integer port = preferences.getServerPort(); synchronized(xmppHelperLock) { try { ... |
xStream.registerConverter(new XMPPDocumentConverter()); xStream.alias("xmppdocument", XMPPDocument.class); | private void registerConverters(final XStream xStream) { xStream.registerConverter(new EncodedByteArrayConverter()); xStream.registerConverter(new ProjectConverter()); xStream.alias("project", Project.class); xStream.registerConverter(new DocumentConverter()); xStream.alias("document", Document.class); xStream.r... | |
final TrayNotification notification = new TrayNotification(); | final Notification notification = new Notification(); | private void fireNotification(final String notificationMessage) { final TrayNotification notification = new TrayNotification(); notification.setMessage(notificationMessage); impl.fireNotification(notification); } |
systemApplication.getContactModel().removeListener(contactListener); contactListener = null; systemApplication.getContainerModel().removeListener(containerListener); containerListener = null; | void end() { systemApplication.getDocumentModel().removeListener(documentListener); documentListener = null; systemApplication.getSessionModel().removeListener(sessionListener); sessionListener = null; } | |
void fireNotification(final TrayNotification notification) { synchronized(this) { | void fireNotification(final Notification notification) { synchronized (this) { | void fireNotification(final TrayNotification notification) { synchronized(this) { queue.add(notification); notifyAll(); } } |
this.queue = new LinkedList<TrayNotification>(); | this.queue = new LinkedList<Notification>(); | SystemApplicationImpl(final SystemApplication sysApp) { super("[BROWSER2] [APP] [SYS] [THREAD]"); this.sysApp = sysApp; this.queue = new LinkedList<TrayNotification>(); } |
contactListener = createContactListener(); systemApplication.getContactModel().addListener(contactListener); containerListener = createContainerListener(); systemApplication.getContainerModel().addListener(containerListener); | void start() { documentListener = createDocumentListener(); systemApplication.getDocumentModel().addListener(documentListener); sessionListener = createSessionListener(); systemApplication.getSessionModel().addListener(sessionListener); } | |
Document get(final UUID documentUniqueId) throws ParityException { logger.info("get(UUID)"); logger.debug(documentUniqueId); try { return documentIO.get(documentUniqueId); } catch(final RuntimeException rx) { logger.error("get(UUID)", rx); | Document get(final Long id) throws ParityException { logger.info("get(Long)"); logger.debug(id); try { return documentIO.get(id); } catch(RuntimeException rx) { logger.error("get(Long)", rx); | Document get(final UUID documentUniqueId) throws ParityException { logger.info("get(UUID)"); logger.debug(documentUniqueId); try { return documentIO.get(documentUniqueId); } catch(final RuntimeException rx) { logger.error("get(UUID)", rx); throw ParityErrorTranslator.translate(rx); } } |
Collection<Document> list(final Comparator<Artifact> comparator) throws ParityException { logger.info("list(Comparator<Artifact>)"); logger.debug(comparator); try { final Collection<Document> documents = documentIO.list(); ArtifactSorter.sortDocuments(documents, comparator); return documents; } catch(RuntimeException r... | Collection<Document> list() throws ParityException { logger.info("list()"); return list(defaultComparator); | Collection<Document> list(final Comparator<Artifact> comparator) throws ParityException { logger.info("list(Comparator<Artifact>)"); logger.debug(comparator); try { final Collection<Document> documents = documentIO.list(); ArtifactSorter.sortDocuments(documents, comparator); return documents; } catch(Runt... |
xmppDocument.getCreatedBy(), xmppDocument.getUpdatedBy(), | xmppDocument.getReceivedFrom(), xmppDocument.getUpdatedBy(), | void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { Document document = get(xmppDocument.getUniqueId()); logger.debug(document); if(null == document) { document = receiveCreate(xmppDocument); } else { receiveU... |
protected static void assertNotNull(final String assertion, final Container container) { assertNotNull(assertion + " [CONTAINER IS NULL]", (Object) container); assertNotNull(assertion + " [CONTAINER'S CREATED BY IS NULL]", container.getCreatedBy()); assertNotNull(assertion + " [CONTAINER'S CREATED ON IS NULL]", contain... | protected static void assertNotNull(final String assertion, final Collection<DocumentVersion> versions) { assertNotNull(assertion + " [DOCUMENT VERSIONS IS NULL]", (Object) versions); for(final DocumentVersion version : versions) { assertNotNull(assertion, version); } | protected static void assertNotNull(final String assertion, final Container container) { assertNotNull(assertion + " [CONTAINER IS NULL]", (Object) container); assertNotNull(assertion + " [CONTAINER'S CREATED BY IS NULL]", container.getCreatedBy()); assertNotNull(assertion + " [CONTAINER'S CREA... |
Class converterClass= Class.forName(className); | Class converterClass= forName(className); | public static Object invokeConstructor(String className, Object[] params) { try { Class converterClass= Class.forName(className); return ConstructorUtils.invokeConstructor(converterClass, params); } catch(Exception ex) { throw new JcrMappingException("Can... |
public static Object newInstance(String clazz) { | public static Object newInstance(Class clazz) { | public static Object newInstance(String clazz) { try { return Class.forName(clazz).newInstance(); } catch(Exception ex) { throw new JcrMappingException("Cannot create instance for class " + clazz, ex); } } |
return Class.forName(clazz).newInstance(); | return clazz.newInstance(); | public static Object newInstance(String clazz) { try { return Class.forName(clazz).newInstance(); } catch(Exception ex) { throw new JcrMappingException("Cannot create instance for class " + clazz, ex); } } |
public static ManageableCollection getManageableCollection(Object object) { | public static ManageableCollection getManageableCollection(String manageableCollectionClassName) { | public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... |
if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass().equals(ArrayList.class)) { ManageableArrayList manageableArrayList = new ManageableArrayList(); manageableArrayList.addAll((Collection) object); return manageableArrayList;... | return (ManageableCollection) ReflectionUtils.newInstance(manageableCollectionClassName); | public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... |
throw new JcrMappingException("Impossible to create the manageable collection", e); | throw new JcrMappingException("Cannot create manageable collection : " + manageableCollectionClassName, e); | public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... |
throw new JcrMappingException("Unsupported collection type :" + object.getClass().getName()); | public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... | |
synchronized (xmppSession) { xmppSession.logout(); | logger.logTraceId(); synchronized (xmppSession) { logger.logTraceId(); xmppSession.logout(); logger.logTraceId(); | void logout() { logger.logApiId(); try { final XMPPSession xmppSession = workspace.getXMPPSession(); synchronized (xmppSession) { xmppSession.logout(); } } catch (final Throwable t) { throw translateError(t); } } |
logger.logTraceId(); | void logout() { logger.logApiId(); try { final XMPPSession xmppSession = workspace.getXMPPSession(); synchronized (xmppSession) { xmppSession.logout(); } } catch (final Throwable t) { throw translateError(t); } } | |
firstVersion = documentModel.readVersion( entry.getKey().getArtifactId(), Versioning.START); | firstVersion = documentModel.readEarliestVersion(entry.getKey().getArtifactId()); | public List<DocumentView> readDocumentViews(final Long containerId, final Long versionId) { final Map<DocumentVersion, Delta> versions; final ContainerVersion previousVersion = containerModel.readPreviousVersion(containerId, versionId); if (null == previousVersion) { ... |
public void addListener(final XMPPExtensionListener l); | public void addListener(final XMPPArtifactListener l); | public void addListener(final XMPPExtensionListener l); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.