rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public void containerClosed(final ContainerEvent e) {
public void containerClosed(ContainerEvent e) {
public void containerClosed(final ContainerEvent e) { fail(NAME + " [CONTAINER CLOSED EVENT WAS FIRED]"); }
public void containerCreated(final ContainerEvent e) {
public void containerCreated(ContainerEvent e) {
public void containerCreated(final ContainerEvent e) { fail(NAME + " [CONTAINER CREATED EVENT WAS FIRED]"); }
public void containerDeleted(final ContainerEvent e) {
public void containerDeleted(ContainerEvent e) {
public void containerDeleted(final ContainerEvent e) { didNotify = Boolean.TRUE; assertTrue(NAME + " [EVENT GENERATED IS NOT LOCAL]", e.isLocal()); assertTrue(NAME + " [EVENT GENERATED IS REMOTE]", !e.isRemote()); assertNull(NAME + " [CONTAINER IS NOT NULL]", e.getCon...
public void containerReactivated(final ContainerEvent e) {
public void containerReactivated(ContainerEvent e) {
public void containerReactivated(final ContainerEvent e) { fail(NAME + " [CONTAINER REACTIVATED EVENT WAS FIRED]"); }
public void documentAdded(final ContainerEvent e) {
public void documentAdded(ContainerEvent e) {
public void documentAdded(final ContainerEvent e) { fail(NAME + " [DOCUMENT ADDED EVENT WAS FIRED]"); }
case 4: return SEND; case 5: return SEND_KEY;
case 4: return REQUEST_KEY; case 5: return SEND; case 6: return SEND_KEY;
public static AuditEventType fromId(final Integer id) { switch(id) { case 0: return CLOSE; case 1: return CREATE; case 2: return RECEIVE; case 3: return RECEIVE_KEY; case 4: return SEND; case 5: return SEND_KEY; default: throw Assert.createUnreachable("Could not determine audit type: " + id); } }
createVersion(document, DocumentAction.CREATE, create_ActionData(document));
createVersion(document, DocumentAction.CREATE, createActionData(document));
Document create(final Project project, final String name, final String description, final File file) throws ParityException { logger.info("create(Project,String,String,File)"); logger.debug(project); logger.debug(name); logger.debug(description); logger.debug(file); Assert.assertTrue( "create(Project,String...
private DocumentVersion createVersion(final Document document,
DocumentVersion createVersion(final Document document,
private DocumentVersion createVersion(final Document document, final DocumentAction action, final DocumentActionData actionData) throws IOException, ParityException { final File cacheFile = getCacheFile(document); if(cacheFile.exists()) { final byte[] cacheFileBytes = getCacheFileBytes(document); final Strin...
throws IOException, ParityException { final File cacheFile = getCacheFile(document); if(cacheFile.exists()) { final byte[] cacheFileBytes = getCacheFileBytes(document); final String cacheFileChecksum = MD5Util.md5Hex(cacheFileBytes); final DocumentContent content = getContent(document); if(!cacheFileChecksum.equals(co...
throws ParityException { logger.info("createVersion(Document,DocumentAction,DocumentActionData)"); logger.debug(document); logger.debug(action); logger.debug(actionData); try { final File cacheFile = getCacheFile(document); if(cacheFile.exists()) { final byte[] cacheFileBytes = getCacheFileBytes(document); final String...
private DocumentVersion createVersion(final Document document, final DocumentAction action, final DocumentActionData actionData) throws IOException, ParityException { final File cacheFile = getCacheFile(document); if(cacheFile.exists()) { final byte[] cacheFileBytes = getCacheFileBytes(document); final Strin...
final DocumentVersion version = DocumentVersionBuilder.create(document, action, actionData); documentXmlIO.create(document, version); notifyCreation_objectVersionCreated(version); return version;
catch(IOException iox) { logger.error("createVersion(Document,DocumentAction,DocumentActionData)", iox); throw ParityErrorTranslator.translate(iox); } catch(RuntimeException rx) { logger.error("createVersion(Document,DocumentAction,DocumentActionData)", rx); throw ParityErrorTranslator.translate(rx); }
private DocumentVersion createVersion(final Document document, final DocumentAction action, final DocumentActionData actionData) throws IOException, ParityException { final File cacheFile = getCacheFile(document); if(cacheFile.exists()) { final byte[] cacheFileBytes = getCacheFileBytes(document); final Strin...
final File cacheFileDirectory = getCacheDirectory(document); if(cacheFileDirectory.exists()) { final File cacheFile = getCacheFile(document); if(cacheFile.exists()) { Assert.assertTrue("delete(Document)", cacheFile.delete()); } Assert.assertTrue("delete(Document)", cacheFileDirectory.delete()); }
void delete(final Document document) throws ParityException { logger.info("delete(Document)"); logger.debug(document); try { flagAsSEEN(document); // delete the xml files documentXmlIO.delete(document); notifyUpdate_objectDeleted(document); } catch(IOException iox) { logger.error("delete(Document)", iox...
break; case KEY_REQUEST_DENIED: if(!jabberIds.contains(((KeyRequestDeniedEvent) auditEvent).getDeniedBy())) jabberIds.add(((KeyRequestDeniedEvent) auditEvent).getDeniedBy()); if(!jabberIds.contains(auditEvent.getCreatedBy())) jabberIds.add(auditEvent.getCreatedBy()); break; case KEY_RESPONSE_DENIED: if(!jabberIds.conta...
private static Map<JabberId, User> buildUserMap( final Iterable<AuditEvent> auditEvents, final InternalSessionModel iSModel) throws ParityException { final List<JabberId> jabberIds = new LinkedList<JabberId>(); for(final AuditEvent auditEvent : auditEvents) { switch(auditEvent.getType()) { case ARCHIVE: ca...
history.add(create(auditEvent, auditUsers));
history.add(create(loggedInUser, auditEvent, auditUsers));
public List<HistoryItem> create(final Iterable<AuditEvent> auditEvents, final InternalSessionModel iSModel) throws ParityException { final List<HistoryItem> history = new LinkedList<HistoryItem>(); final Map<JabberId, User> auditUsers = buildUserMap(auditEvents, iSModel); for(final AuditEvent auditEvent : auditEv...
debug();
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { } public void intervalAdded(final ListDataEvent e) { ...
final int index0 = e.getIndex0(); final int index1 = e.getIndex1();
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { } public void intervalAdded(final ListDataEvent e) { ...
for (int i = index0; i < index1 + 1; i++) {
for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) {
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { } public void intervalAdded(final ListDataEvent e) { ...
repaint();
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { } public void intervalAdded(final ListDataEvent e) { ...
debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstrain...
public void contentsChanged(final ListDataEvent e) { }
debug();
public void intervalAdded(final ListDataEvent e) { final int index0 = e.getIndex0(); debug(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } ...
repaint();
public void intervalAdded(final ListDataEvent e) { final int index0 = e.getIndex0(); debug(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } ...
final int index0 = e.getIndex0(); final int index1 = e.getIndex1();
public void intervalRemoved(final ListDataEvent e) { final int index0 = e.getIndex0(); final int index1 = e.getIndex1(); debug(); tabJPanel.remove(fillJLabel); for (int i = index0; i < index1 + 1; i++) { tabJPanel....
for (int i = index0; i < index1 + 1; i++) {
for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) {
public void intervalRemoved(final ListDataEvent e) { final int index0 = e.getIndex0(); final int index1 = e.getIndex1(); debug(); tabJPanel.remove(fillJLabel); for (int i = index0; i < index1 + 1; i++) { tabJPanel....
repaint();
public void intervalRemoved(final ListDataEvent e) { final int index0 = e.getIndex0(); final int index1 = e.getIndex1(); debug(); tabJPanel.remove(fillJLabel); for (int i = index0; i < index1 + 1; i++) { tabJPanel....
final ComparatorBuilder comparatorBuilder = new ComparatorBuilder(); final Comparator<ArtifactVersion> versionIdDescending = comparatorBuilder.createVersionById(Boolean.FALSE); public Object[] getElements(Object input) {
public Object[] getElements(final Object input) {
private ProviderFactory() { super(); documentModel = ModelFactory.getInstance().getDocumentModel(getClass()); sessionModel = ModelFactory.getInstance().getSessionModel(getClass()); this.historyProvider = new FlatContentProvider() { final ComparatorBuilder comparatorBuilder = new ComparatorBuilder(); final Comp...
Collection<DocumentVersion> versionList; try { versionList = documentModel.listVersions( documentId, versionIdDescending);
Collection<HistoryItem> history; try { history = documentModel.readHistory(documentId); } catch(final ParityException px) { logger.error("Could not obtain the document history.", px); history = Collections.emptyList();
private ProviderFactory() { super(); documentModel = ModelFactory.getInstance().getDocumentModel(getClass()); sessionModel = ModelFactory.getInstance().getSessionModel(getClass()); this.historyProvider = new FlatContentProvider() { final ComparatorBuilder comparatorBuilder = new ComparatorBuilder(); final Comp...
catch(final ParityException px) { logger.error("Could not obtain the document version list.", px); versionList = new Vector<DocumentVersion>(0); } return versionList.toArray(new DocumentVersion[] {});
return history.toArray(new HistoryItem[] {});
private ProviderFactory() { super(); documentModel = ModelFactory.getInstance().getDocumentModel(getClass()); sessionModel = ModelFactory.getInstance().getSessionModel(getClass()); this.historyProvider = new FlatContentProvider() { final ComparatorBuilder comparatorBuilder = new ComparatorBuilder(); final Comp...
public Object[] getElements(Object input) {
public Object[] getElements(final Object input) {
public Object[] getElements(Object input) { final Long documentId = (Long) input; Collection<DocumentVersion> versionList; try { versionList = documentModel.listVersions( documentId, versionIdDescending); } catch(final ParityException px) { logger.error("Could not obtain the docume...
Collection<DocumentVersion> versionList; try { versionList = documentModel.listVersions( documentId, versionIdDescending);
Collection<HistoryItem> history; try { history = documentModel.readHistory(documentId); } catch(final ParityException px) { logger.error("Could not obtain the document history.", px); history = Collections.emptyList();
public Object[] getElements(Object input) { final Long documentId = (Long) input; Collection<DocumentVersion> versionList; try { versionList = documentModel.listVersions( documentId, versionIdDescending); } catch(final ParityException px) { logger.error("Could not obtain the docume...
catch(final ParityException px) { logger.error("Could not obtain the document version list.", px); versionList = new Vector<DocumentVersion>(0); } return versionList.toArray(new DocumentVersion[] {});
return history.toArray(new HistoryItem[] {});
public Object[] getElements(Object input) { final Long documentId = (Long) input; Collection<DocumentVersion> versionList; try { versionList = documentModel.listVersions( documentId, versionIdDescending); } catch(final ParityException px) { logger.error("Could not obtain the docume...
final ParityObject otherObj = (ParityObject) obj; return id.equals(otherObj.getId());
if(obj instanceof ParityObject) { return id.equals(((ParityObject) obj).getId()); } return false;
public boolean equals(Object obj) { final ParityObject otherObj = (ParityObject) obj; return id.equals(otherObj.getId()); }
login();
protected void setUp() throws Exception { super.setUp(); final InternalProfileModel profileModel = getInternalProfileModel(); final Profile profile = profileModel.read(); datum = new Fixture(profile, profileModel); }
datum = null; logout();
protected void tearDown() throws Exception { super.tearDown(); }
classDescriptor = mapper.getClassDescriptorByClass(Class.forName(className));
classDescriptor = mapper.getClassDescriptorByClass(ReflectionUtils.forName(className));
public Object getObject(Session session, String path) { try { if (!session.itemExists(path)) { return null; } ClassDescriptor classDescriptor = null; Node node = (Node) session.getItem(path); if (node.hasProperty(PersistenceConstant.DISCRIMINATOR_PROPERTY_NAME)) { String className = node.getProperty(P...
} catch (ClassNotFoundException clnf) { throw new PersistenceException("Impossible to instantiate the object at " + path, clnf);
public Object getObject(Session session, String path) { try { if (!session.itemExists(path)) { return null; } ClassDescriptor classDescriptor = null; Node node = (Node) session.getItem(path); if (node.hasProperty(PersistenceConstant.DISCRIMINATOR_PROPERTY_NAME)) { String className = node.getProperty(P...
return Class.forName(clazz);
return Class.forName(clazz, true, getClassLoader());
public static Class forName(String clazz) { try { return Class.forName(clazz); } catch(Exception ex) { throw new JcrMappingException("Cannot load class " + clazz, ex); } }
public static Listable queryList(Frame parent, String title, String message, String helpString, Listable[] objects, boolean prioritize, Class priorityClass, int current) { if (objects==null)
public static Listable queryList(Frame parent, String title, String message, String helpString, ListableVector vector, int current, boolean doShow) { if (vector==null)
public static Listable queryList(Frame parent, String title, String message, String helpString, Listable[] objects, boolean prioritize, Class priorityClass, int current) { if (objects==null) return null; MesquiteInteger io = new MesquiteInteger(current); // (Frame parent, String title, String message, Object nam...
ListDialog id = new ListDialog(parent, title, message, true,helpString, objects, io, null,null,prioritize, priorityClass, true, false); id.dispose(); int result = io.getValue(); if (io.isUnassigned()) return null; if (result>=0 && result<objects.length) return objects[result]; else return null;
Listable[] names = vector.getListables(); String thirdButton = null; if (doShow) thirdButton = " Show "; while (true) { ListDialog id = new ListDialog(parent, title, message, true, helpString, names, io, thirdButton,true, false); if (io.isUnassigned()) { id.dispose(); return null; } int result = io.getValue(); if (res...
public static Listable queryList(Frame parent, String title, String message, String helpString, Listable[] objects, boolean prioritize, Class priorityClass, int current) { if (objects==null) return null; MesquiteInteger io = new MesquiteInteger(current); // (Frame parent, String title, String message, Object nam...
CopyActionEnforcer.applyEnforcer(this);
public ButtonPanel(final Avatar container, final MouseInputAdapter mouseInputAdapter) { super("BrowserTitleAvatar.ButtonPanel"); this.container = container; addMouseListener(mouseInputAdapter); addMouseMotionListener(mouseInputAdapter); setOpaque(false); setLayout(new GridBagLayout()); setTransferHandle...
if(TEXT_MAX_LENGTH < getName().length()) { return getName().substring(0, TEXT_MAX_LENGTH - 1 - 3) + "..."; } else { return getName(); }
final String messageKey = new StringBuffer("Text.") .append(draft.getState(getId())).toString(); return getString(messageKey, getName());
public String getText() { if(TEXT_MAX_LENGTH < getName().length()) { return getName().substring(0, TEXT_MAX_LENGTH - 1 - 3) + "..."; } else { return getName(); } }
this.sortedBy = new Stack<Ordering>();
this.sortedBy = new Stack<SortBy>();
ContainerTabModel() { super(); this.actionDelegate = new ContainerTabActionDelegate(this); this.browser = getBrowser(); this.containerIdLookup = new HashMap<Long, Long>(); this.filteredPanels = new ArrayList<TabPanel>(); this.expandedState = new HashMap<TabPanel, Boolean>()...
return InsetFactors.LEVEL_2;
return InsetFactors.LEVEL_1;
public Float getTextInsetFactor() { return InsetFactors.LEVEL_2; }
documentModel.createVersion(document.getId());
protected void setUp() throws Exception { super.setUp(); final DocumentModel documentModel = getDocumentModel(); data = new Vector<Fixture>(getInputFilesLength()); Document document; DocumentVersion documentVersion; String name, description; for(File testFile : getInputFiles()) { name = testFile.getName(); ...
vw.recycle(null);
protected void mergeTemplate(Template template, Context context, HttpServletResponse response) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, IOException, UnsupportedEncodingExce...
private VersionCell(final String text) { this.text = text;
private VersionCell(final List<VersionContentCell> contents, final ContainerDraft draft) { this.contents = contents; final Integer documentCount = draft.getDocumentCount(); this.text = 1 == documentCount ? "Draft - 1 Document" : MessageFormat.format("Draft - {0} Documents", documentCount);
private VersionCell(final String text) { this.text = text; }
private VersionContentCell(final String text) { this.text = text;
private VersionContentCell(final ContainerVersion version, final Document document) { this.text = MessageFormat.format("{0}", document.getName());
private VersionContentCell(final String text) { this.text = text; }
javax.swing.JList versionsJList;
private void initComponents() { javax.swing.JList versionsContentJList; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JList versionsJList; javax.swing.JScrollPane versionsJScrollPane; versionsJScrollPane = new javax.swing.JScrollPane(); versionsJList = new...
public void mouseClicked(java.awt.event.MouseEvent e) { formMouseClicked(e);
public void mouseClicked(java.awt.event.MouseEvent evt) { formMouseClicked(evt);
private void initComponents() { javax.swing.JList versionsContentJList; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JList versionsJList; javax.swing.JScrollPane versionsJScrollPane; versionsJScrollPane = new javax.swing.JScrollPane(); versionsJList = new...
public void mouseReleased(java.awt.event.MouseEvent e) { formMouseReleased(e);
public void mouseReleased(java.awt.event.MouseEvent evt) { formMouseReleased(evt);
private void initComponents() { javax.swing.JList versionsContentJList; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JList versionsJList; javax.swing.JScrollPane versionsJScrollPane; versionsJScrollPane = new javax.swing.JScrollPane(); versionsJList = new...
public void mouseClicked(java.awt.event.MouseEvent e) { versionsJListMouseClicked(e);
public void mouseClicked(java.awt.event.MouseEvent evt) { versionsJListMouseClicked(evt);
private void initComponents() { javax.swing.JList versionsContentJList; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JList versionsJList; javax.swing.JScrollPane versionsJScrollPane; versionsJScrollPane = new javax.swing.JScrollPane(); versionsJList = new...
public void mouseReleased(java.awt.event.MouseEvent e) { versionsJListMouseReleased(e);
public void mouseReleased(java.awt.event.MouseEvent evt) { versionsJListMouseReleased(evt);
private void initComponents() { javax.swing.JList versionsContentJList; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JList versionsJList; javax.swing.JScrollPane versionsJScrollPane; versionsJScrollPane = new javax.swing.JScrollPane(); versionsJList = new...
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e) { versionsJListMouseWheelMoved(e);
public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) { versionsJListMouseWheelMoved(evt);
private void initComponents() { javax.swing.JList versionsContentJList; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JList versionsJList; javax.swing.JScrollPane versionsJScrollPane; versionsJScrollPane = new javax.swing.JScrollPane(); versionsJList = new...
public void mouseClicked(java.awt.event.MouseEvent e) { versionsContentJListMouseClicked(e);
public void mouseClicked(java.awt.event.MouseEvent evt) { versionsContentJListMouseClicked(evt);
private void initComponents() { javax.swing.JList versionsContentJList; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JList versionsJList; javax.swing.JScrollPane versionsJScrollPane; versionsJScrollPane = new javax.swing.JScrollPane(); versionsJList = new...
public void mouseReleased(java.awt.event.MouseEvent e) { versionsContentJListMouseReleased(e);
public void mouseReleased(java.awt.event.MouseEvent evt) { versionsContentJListMouseReleased(evt);
private void initComponents() { javax.swing.JList versionsContentJList; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JList versionsJList; javax.swing.JScrollPane versionsJScrollPane; versionsJScrollPane = new javax.swing.JScrollPane(); versionsJList = new...
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e) { versionsContentJListMouseWheelMoved(e);
public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) { versionsContentJListMouseWheelMoved(evt);
private void initComponents() { javax.swing.JList versionsContentJList; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JList versionsJList; javax.swing.JScrollPane versionsJScrollPane; versionsJScrollPane = new javax.swing.JScrollPane(); versionsJList = new...
public void mouseClicked(java.awt.event.MouseEvent e) { formMouseClicked(e);
public void mouseClicked(java.awt.event.MouseEvent evt) { formMouseClicked(evt);
public void mouseClicked(java.awt.event.MouseEvent e) { formMouseClicked(e); }
public void mouseReleased(java.awt.event.MouseEvent e) { formMouseReleased(e);
public void mouseReleased(java.awt.event.MouseEvent evt) { formMouseReleased(evt);
public void mouseReleased(java.awt.event.MouseEvent e) { formMouseReleased(e); }
{ final JabberId createdBy = currentUserId(); final Calendar createdOn = now; final Long id = d.getId(); final JabberId keyHolder = createdBy; final List<JabberId> contacts = new LinkedList<JabberId>(); contacts.add(createdBy); indexor.create(createdBy, createdOn, id, keyHolder, name, contacts); }
indexor.create(d.getId(), d.getName());
Document create(final String name, final String description, final File file) throws ParityException { logger.info("create(Project,String,String,File)"); logger.debug(name); logger.debug(description); logger.debug(file); assertCanCreateArtifacts(); assertIsSessionValid(); Assert.assertTrue( // TODO Central...
indexor.delete(documentId);
void delete(final Long documentId) throws ParityException { logger.info("delete(Long)"); logger.debug(documentId); try { final Document document = get(documentId); assertStateTransition(document.getState(), ArtifactState.DELETED); // if the document is not closed ensure the user is not the // key holder i...
indexor.create(document.getId(), document.getName());
private Document receiveCreate(final XMPPDocument xmppDocument) throws ParityException, FileNotFoundException, IOException { final Calendar currentDateTime = currentDateTime(); // create the document final Document document = new Document(); document.setCreatedBy(xmppDocument.getCreatedBy()); document.setCreate...
reloadViewJButton();
private void contactsJListValueChanged(javax.swing.event.ListSelectionEvent e) {//GEN-FIRST:event_contactsJListValueChanged reloadRemoveJButton(); }//GEN-LAST:event_contactsJListValueChanged
javax.swing.JButton closeJButton;
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton searchJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
closeJButton = ButtonFactory.create(getString("CloseButton"));
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton searchJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
closeJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { closeJButtonActionPerformed(e); } });
inviteJButton.setText("!Invite!");
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton searchJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
.add(org.jdesktop.layout.GroupLayout.LEADING, eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 349, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.LEADING, eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 398, Short.MAX_VALUE)
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton searchJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.add(layout.createSequentialGroup()
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton searchJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
.add(org.jdesktop.layout.GroupLayout.TRAILING, contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE))
.add(org.jdesktop.layout.GroupLayout.TRAILING, contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 313, Short.MAX_VALUE))
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton searchJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
.add(closeJButton)
.add(viewJButton)
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton searchJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE) .add(removeJButton)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)...
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLa...
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton searchJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
closeJButtonActionPerformed(e);
inviteJButtonActionPerformed(e);
public void actionPerformed(java.awt.event.ActionEvent e) { closeJButtonActionPerformed(e); }
inviteJButtonActionPerformed(e);
searchJButtonActionPerformed(e);
public void actionPerformed(java.awt.event.ActionEvent e) { inviteJButtonActionPerformed(e); }
searchJButtonActionPerformed(e);
removeJButtonActionPerformed(e);
public void actionPerformed(java.awt.event.ActionEvent e) { searchJButtonActionPerformed(e); }
removeJButtonActionPerformed(e);
viewJButtonActionPerformed(e);
public void actionPerformed(java.awt.event.ActionEvent e) { removeJButtonActionPerformed(e); }
reloadViewJButton();
public void reload() { contactsModel.clear(); loadContacts(contactsModel, getContacts()); reloadRemoveJButton(); }
super.tearDown();
protected void tearDown() throws Exception { data.clear(); data = null; }
LoggerFactory.getLogger(Browser2PlatformInitializer.class);
final Logger logger = LoggerFactory.getLogger(Browser2PlatformInitializer.class); logger.info("[BROWSER2] [PLATFORM] [INIT]");
static void initialize() { System.setProperty("sun.awt.noerasebackground", "true"); System.setProperty("parity.insecure", "true"); LoggerFactory.getLogger(Browser2PlatformInitializer.class); final ModelFactory modelFactory = ModelFactory.getInstance(); modelFactory.initialize(); final Preferenc...
final ModelFactory modelFactory = ModelFactory.getInstance(); modelFactory.initialize();
ModelFactory mFactory = null; try { mFactory = ModelFactory.getInstance(); mFactory.initialize();
static void initialize() { System.setProperty("sun.awt.noerasebackground", "true"); System.setProperty("parity.insecure", "true"); LoggerFactory.getLogger(Browser2PlatformInitializer.class); final ModelFactory modelFactory = ModelFactory.getInstance(); modelFactory.initialize(); final Preferenc...
final Preferences preferences = modelFactory.getPreferences(Browser2PlatformInitializer.class); final File root; switch(OSUtil.getOS()) { case WINDOWS_XP: case WINDOWS_2000: final File user = new File(System.getenv("USERPROFILE")); root = new File(user, "My Documents"); break; case LINUX: root = new File(System.getenv(...
final Preferences preferences = mFactory.getPreferences(Browser2PlatformInitializer.class); final File root; switch(OSUtil.getOS()) { case WINDOWS_XP: case WINDOWS_2000: final File user = new File(System.getenv("USERPROFILE")); root = new File(user, "My Documents"); break; case LINUX: root = new File(System.getenv("HOM...
static void initialize() { System.setProperty("sun.awt.noerasebackground", "true"); System.setProperty("parity.insecure", "true"); LoggerFactory.getLogger(Browser2PlatformInitializer.class); final ModelFactory modelFactory = ModelFactory.getInstance(); modelFactory.initialize(); final Preferenc...
final File thinkParity = new File(root, IParityModelConstants.ROOT_DIRECTORY); if(!thinkParity.exists()) { Assert.assertTrue("", thinkParity.mkdir()); } final File archive = new File(thinkParity, IParityModelConstants.ARCHIVE_DIRECTORY); if(!thinkParity.exists()) { Assert.assertTrue("", archive.mkdir()); } final File...
static void initialize() { System.setProperty("sun.awt.noerasebackground", "true"); System.setProperty("parity.insecure", "true"); LoggerFactory.getLogger(Browser2PlatformInitializer.class); final ModelFactory modelFactory = ModelFactory.getInstance(); modelFactory.initialize(); final Preferenc...
catch(final UnsupportedLookAndFeelException ulafx) { throw new RuntimeException(ulafx);
catch(final Exception x) { logger.fatal("[BROWSER2] [PLATFORM] [INIT LAF]", x); System.exit(1);
static void initialize() { System.setProperty("sun.awt.noerasebackground", "true"); System.setProperty("parity.insecure", "true"); LoggerFactory.getLogger(Browser2PlatformInitializer.class); final ModelFactory modelFactory = ModelFactory.getInstance(); modelFactory.initialize(); final Preferenc...
final InputStream content = downloadStream(streamId);
final File streamFile = downloadStream(streamId);
private DocumentVersion handleDocumentSent(final JabberId sentBy, final Calendar sentOn, final UUID uniqueId, final Long versionId, final String name, final String checksum, final String streamId) { logger.logApiId(); logger.logVariable("sentBy", sentBy); logger.logVariabl...
version = createVersion(document.getId(), versionId, content, sentBy, sentOn);
final InputStream stream = new FileInputStream(streamFile); try { version = createVersion(document.getId(), versionId, stream, sentBy, sentOn); } finally { stream.close(); }
private DocumentVersion handleDocumentSent(final JabberId sentBy, final Calendar sentOn, final UUID uniqueId, final Long versionId, final String name, final String checksum, final String streamId) { logger.logApiId(); logger.logVariable("sentBy", sentBy); logger.logVariabl...
document = create(uniqueId, name, content, sentBy, sentOn); version = createVersion(document.getId(), versionId, content, sentBy, sentOn);
InputStream stream = new FileInputStream(streamFile); try { document = create(uniqueId, name, stream, sentBy, sentOn); } finally { stream.close(); } stream = new FileInputStream(streamFile); try { version = createVersion(document.getId(), versionId, stream, sentBy, sentOn); } finally { stream.close(); }
private DocumentVersion handleDocumentSent(final JabberId sentBy, final Calendar sentOn, final UUID uniqueId, final Long versionId, final String name, final String checksum, final String streamId) { logger.logApiId(); logger.logVariable("sentBy", sentBy); logger.logVariabl...
final Long versionId, final UUID documentUniqueId) {
final Long versionId) {
public List<DocumentVersion> readDocumentVersions(final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { synchronized (getImplLock()) { return getImpl().readDocumentVersions(uniqueId, versionId, documentUniqueId); } }
return getImpl().readDocumentVersions(uniqueId, versionId, documentUniqueId);
return getImpl().readDocumentVersions(uniqueId, versionId);
public List<DocumentVersion> readDocumentVersions(final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { synchronized (getImplLock()) { return getImpl().readDocumentVersions(uniqueId, versionId, documentUniqueId); } }
final ContainerVersion cv_previous_y = readContainerPreviousVersion(datum.junit_y, c.getId(), cv_latest.getVersionId());
public void test4() { final Container c = createContainer(datum.junit, "Packages Test: Publish 4"); final List<Document> d_list_initial = addDocuments(datum.junit, c.getId()); publish(datum.junit, c.getId(), "JUnit.X thinkParity", "JUnit.Y thinkParity"); datum.waitForEvents(); cre...
ArchiveModel.getModel().start();
private void startArchive() {// ArchiveModel.getModel().start(); }
ArchiveModel.getModel().stop();
private void stopArchive() {// ArchiveModel.getModel().stop(); }
public void applyFilter(final Filter<Artifact> filter) {
private void applyFilter(final Filter<Artifact> filter) {
public void applyFilter(final Filter<Artifact> filter) { filterChain.addFilter(filter); jListModel.clear(); reloadDocuments(getController().getSelectedDocumentId()); }
return (DisplayDocument) ((CompositeFlatSingleContentProvider) contentProvider).getElement(0, documentId);
return (DisplayDocument) ((CompositeFlatSingleContentProvider) contentProvider).getElement(0, new Pair(documentId, filterChain));
private DisplayDocument getDisplayDocument(final Long documentId) { return (DisplayDocument) ((CompositeFlatSingleContentProvider) contentProvider).getElement(0, documentId); }
if(jListModel.isEmpty()) { getController().disableHistory(); } else { getController().enableHistory(); }
private void reloadDocuments(final Long documentId) { // TODO Maintain the document selection final DisplayDocument[] displayDocuments = getDisplayDocuments(); int index = 0; for(final DisplayDocument displayDocument : displayDocuments) { jListModel.addElement(DocumentListItem.create(displayDocument)); if(disp...
public void removeFilter(final Filter<Artifact> filter) {
private void removeFilter(final Filter<Artifact> filter) {
public void removeFilter(final Filter<Artifact> filter) { filterChain.removeFilter(filter); jListModel.clear(); reloadDocuments(getController().getSelectedDocumentId()); }
setRemoteInfo(d.getRemoteInfo());
public DisplayDocument(final Document d) { super(d.getCreatedBy(), d.getCreatedOn(), d.getDescription(), d.getFlags(), d.getUniqueId(), d.getName(), d.getUpdatedBy(), d.getUpdatedOn()); setId(d.getId()); setState(d.getState()); this.keyRequests = new LinkedList<KeyRe...
if(DISPLAY_MAX_LENGTH < getName().length()) { return getName(); } else { return ""; }
return new StringBuffer(getName()) .append(" - ") .append(SDF.format(getRemoteInfo().getUpdatedOn().getTime())).toString();
public String getDisplayToolTip() { if(DISPLAY_MAX_LENGTH < getName().length()) { return getName(); } else { return ""; } }
final Workspace workspace = WorkspaceModel.getModel().getWorkspace();
this.workspace = WorkspaceModel.getModel().getWorkspace();
private ModelUtil() { super(); final Workspace workspace = WorkspaceModel.getModel().getWorkspace(); this.preferences = workspace.getPreferences(); }
logger.info("subscribe(User,Artifact)");
logger.info("[RMODEL] [ARTIFACT] [SUBSCRIBE]");
void subscribe(final Artifact artifact) throws ParityServerModelException { logger.info("subscribe(User,Artifact)"); logger.debug(artifact); try { final Integer artifactId = artifact.getArtifactId(); final String username = session.getJID().getNode(); final Integer rowCount = artifactSubscriptionSql.select...
else { artifactSubscriptionSql.insert(artifactId, username, session.getJabberId()); }
else { final List<ArtifactSubscription> subscrtipions = getSubscription(artifact.getArtifactUUID()); artifactSubscriptionSql.insert(artifactId, username, session.getJabberId()); for(final ArtifactSubscription subscription : subscrtipions) { final IQ iq = new IQNotifyTeamMemberAdded( artifact.getArtifactUUID(), getCont...
void subscribe(final Artifact artifact) throws ParityServerModelException { logger.info("subscribe(User,Artifact)"); logger.debug(artifact); try { final Integer artifactId = artifact.getArtifactId(); final String username = session.getJID().getNode(); final Integer rowCount = artifactSubscriptionSql.select...
catch(SQLException sqlx) { logger.error("subscribe(User,Artifact)", sqlx);
catch(final SQLException sqlx) { logger.error("[RMODEL] [ARTIFACT] [SUBSCRIBE] [SQL ERROR]", sqlx);
void subscribe(final Artifact artifact) throws ParityServerModelException { logger.info("subscribe(User,Artifact)"); logger.debug(artifact); try { final Integer artifactId = artifact.getArtifactId(); final String username = session.getJID().getNode(); final Integer rowCount = artifactSubscriptionSql.select...
catch(RuntimeException rx) { logger.error("subscribe(User,Artifact)", rx);
catch(final UnauthorizedException ux) { logger.error("[RMODEL] [ARTIFACT] [SUBSCRIBE] [AUTHORIZATION ERROR]", ux); throw ParityErrorTranslator.translate(ux); } catch(final RuntimeException rx) { logger.error("[RMODEL] [ARTIFACT] [SUBSCRIBE] [UNKNOWN ERROR]", rx);
void subscribe(final Artifact artifact) throws ParityServerModelException { logger.info("subscribe(User,Artifact)"); logger.debug(artifact); try { final Integer artifactId = artifact.getArtifactId(); final String username = session.getJID().getNode(); final Integer rowCount = artifactSubscriptionSql.select...
logger.info("unsubscribe(User,Artifact)");
logger.info("[RMODEL] [ARTIFACT] [UNSUBSCRIBE USER]");
void unsubscribe(final Artifact artifact) throws ParityServerModelException { logger.info("unsubscribe(User,Artifact)"); logger.debug(artifact); try { final Integer artifactId = artifact.getArtifactId(); final String username = session.getJID().getNode(); final Integer rowCount = artifactSubscriptionSql.se...
new StringBuffer("unsubscribe(User,Artifact): ") .append("User does not have a subscription.");
new StringBuffer("[RMODEL] [ARTIFACT] [UNSUBSCRIBE USER]") .append("[NO EXISTING SUBSCRIPTION]");
void unsubscribe(final Artifact artifact) throws ParityServerModelException { logger.info("unsubscribe(User,Artifact)"); logger.debug(artifact); try { final Integer artifactId = artifact.getArtifactId(); final String username = session.getJID().getNode(); final Integer rowCount = artifactSubscriptionSql.se...