rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if(!jList.isSelectionEmpty()) { return true; }
if(!jList.isSelectionEmpty()) { if(Connection.ONLINE == application.getConnectionStatus()) { return true; } }
public boolean canImport(final JComponent comp, final DataFlavor[] transferFlavors) { logger.debug(comp.getClass().getSimpleName()); // when updating a document; only 1 file must be imported if(1 == transferFlavors.length) { if(TxUtils.containsJavaFileList(transferFlavors)...
System.out.println(".inlined");
System.out.println("inlined");
public void testInlined() throws Exception { System.out.println(".inlined"); B expB = new B(); expB.setB1("b1value"); expB.setB2("b2value"); D expD = new D(); expD.setPath("/someD"); expD.setD1("d1value"); expD.setB1(expB); this.objectCo...
assertNull("B.b2 is protected", actD.getB1().getB2());
assertEquals(expB.getB2(), actD.getB1().getB2());
public void testInlined() throws Exception { System.out.println(".inlined"); B expB = new B(); expB.setB1("b1value"); expB.setB2("b2value"); D expD = new D(); expD.setPath("/someD"); expD.setD1("d1value"); expD.setB1(expB); this.objectCo...
assertNull("B.b2 is protected", actDFull.getB2());
assertEquals(expB.getB2(), actDFull.getB2());
public void testInlined() throws Exception { System.out.println(".inlined"); B expB = new B(); expB.setB1("b1value"); expB.setB2("b2value"); D expD = new D(); expD.setPath("/someD"); expD.setD1("d1value"); expD.setB1(expB); this.objectCo...
expD.setB1(null); this.objectConverter.update(getSession(), expD); getSession().save();
public void testInlined() throws Exception { System.out.println(".inlined"); B expB = new B(); expB.setB1("b1value"); expB.setB2("b2value"); D expD = new D(); expD.setPath("/someD"); expD.setD1("d1value"); expD.setB1(expB); this.objectCo...
assertEquals(expD.getD1(), actD.getD1()); assertNull("b1 was not removed", actD.getB1()); actDFull = (DFull) this.objectConverter.getObject(getSession(), DFull.class, "/someD"); assertEquals(expD.getD1(), actDFull.getD1()); assertNull("b1 was not removed", actDFull.getB1()); assertNull("b2 wan not remove", actDFull...
public void testInlined() throws Exception { System.out.println(".inlined"); B expB = new B(); expB.setB1("b1value"); expB.setB2("b2value"); D expD = new D(); expD.setPath("/someD"); expD.setD1("d1value"); expD.setB1(expB); this.objectCo...
this.sessionModel = modelFactory.getSessionModel(getClass());
private ArtifactUtil() { super(); this.documentModel = modelFactory.getDocumentModel(getClass()); this.sessionModel = modelFactory.getSessionModel(getClass()); }
try { return sessionModel.isLoggedInUserKeyHolder(artifactId); } catch(final ParityException px) { throw new RuntimeException(px); }
return artifactModel.isFlagApplied(artifactId, ArtifactFlag.KEY);
private Boolean determineIsKeyHolder(final Long artifactId) { try { return sessionModel.isLoggedInUserKeyHolder(artifactId); } catch(final ParityException px) { throw new RuntimeException(px); } }
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 manageJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
javax.swing.JButton inviteJButton; javax.swing.JButton manageJButton;
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton manageJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
closeJButton = ButtonFactory.create(getString("CloseButton")); manageJButton = ButtonFactory.create(getString("ManageButton")); inviteJButton = ButtonFactory.create(getString("InviteButton"));
eaJLabel.setText("!Embedded Assistance!");
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton manageJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
} }); closeJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { closeJButtonActionPerformed(e); } }); manageJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { manageJButtonAc...
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton manageJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, searchJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, ...
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 303, Short.MAX_VALUE) .add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 303, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(searchJTextField, org.jdeskt...
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton manageJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
.add(manageJButton)))
.add(searchJButton)))
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton manageJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(closeJButton) .add(searchJButton) .add(addJButton))
.add(addJButton)
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton manageJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
.add(searchJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(searchJButton))
.add(searchJButton) .add(searchJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton manageJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE) .add(addJButton)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .a...
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(addJButton) .add(127, 127, 127)) .add(layout.createSequentialGroup() .add(contactsJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE) .addContainerGap())))
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JLabel eaJLabel; javax.swing.JButton inviteJButton; javax.swing.JButton manageJButton; eaJLabel = LabelFactory.create(getString("EmbeddedAssistance"));...
private Fixture(final ArtifactModel aModel, final ContainerModel cModel, final Long containerId, final Integer eTeamSize) { this.aModel = aModel; this.cModel = cModel; this.containerId = containerId;
private Fixture(final ContainerModel cModel, final Long containerId, final Integer eTeamSize) { this.cModel = cModel; this.containerId = containerId;
private Fixture(final ArtifactModel aModel, final ContainerModel cModel, final Long containerId, final Integer eTeamSize) { this.aModel = aModel; this.cModel = cModel; this.containerId = containerId; this.eTeamSize = eTeamSize; }
super.setUp(); final ArtifactModel aModel = getArtifactModel(); final ContainerModel cModel = getContainerModel();
super.setUp(); final ContainerModel cModel = getContainerModel();
protected void setUp() throws Exception { super.setUp(); final ArtifactModel aModel = getArtifactModel(); final ContainerModel cModel = getContainerModel(); login(); final Container container = createContainer(NAME); final Document document = create(getInputFiles()[0]); cModel.addDocumen...
datum = new Fixture(aModel, cModel, container.getId(), aModel.readTeam(container.getId()).size()); }
datum = new Fixture(cModel, container.getId(), cModel.readTeam( container.getId()).size()); }
protected void setUp() throws Exception { super.setUp(); final ArtifactModel aModel = getArtifactModel(); final ContainerModel cModel = getContainerModel(); login(); final Container container = createContainer(NAME); final Document document = create(getInputFiles()[0]); cModel.addDocumen...
final Set<User> team = datum.aModel.readTeam(datum.containerId);
final List<User> team = datum.cModel.readTeam(datum.containerId);
public void testClose() { try { datum.cModel.close(datum.containerId); } catch(final ParityException px) { fail(createFailMessage(px)); } // assert the container remains intact final Container container = datum.cModel.read(datum.containerId); assertNotNull(NAME, container); as...
QueueItem enqueue(final String message) throws ParityServerModelException {
QueueItem enqueue(final JID jid, final IQ iq) throws ParityServerModelException {
QueueItem enqueue(final String message) throws ParityServerModelException { logger.info("enqueue(JID,String)"); logger.debug(message); try { final String username = session.getJID().getNode(); final Integer queueId = queueSql.insert(username, message); return queueSql.select(queueId); } catch(SQLException s...
logger.debug(message);
logger.debug(jid); logger.debug(iq);
QueueItem enqueue(final String message) throws ParityServerModelException { logger.info("enqueue(JID,String)"); logger.debug(message); try { final String username = session.getJID().getNode(); final Integer queueId = queueSql.insert(username, message); return queueSql.select(queueId); } catch(SQLException s...
final String username = session.getJID().getNode();
final String username = jid.getNode(); final String message = iq.toXML();
QueueItem enqueue(final String message) throws ParityServerModelException { logger.info("enqueue(JID,String)"); logger.debug(message); try { final String username = session.getJID().getNode(); final Integer queueId = queueSql.insert(username, message); return queueSql.select(queueId); } catch(SQLException s...
return getDate();
return new Date();
public static Date getDate() { return getDate(); }
Mapper mapper = new DigesterMapperImpl("./src/test-config/jcrmapping-inheritance.xml").buildMapper();
String[] files = { "./src/test-config/jcrmapping.xml", "./src/test-config/jcrmapping-atomic.xml", "./src/test-config/jcrmapping-beandescriptor.xml", "./src/test-config/jcrmapping-inheritance.xml"}; Mapper mapper = new DigesterMapperImpl(files) .buildMapper();
public void testMapperInheritance() { try { Mapper mapper = new DigesterMapperImpl("./src/test-config/jcrmapping-inheritance.xml").buildMapper(); assertNotNull("Mapper is null", mapper); ClassDescriptor classDescriptor = mapper.getClassDescriptor(Anc...
assertNotNull("Mapper is null", classDescriptor);
assertNotNull("Classdescriptor is null", classDescriptor);
public void testMapperInheritance() { try { Mapper mapper = new DigesterMapperImpl("./src/test-config/jcrmapping-inheritance.xml").buildMapper(); assertNotNull("Mapper is null", mapper); ClassDescriptor classDescriptor = mapper.getClassDescriptor(Anc...
assertEquals("Incorrect JcrName", classDescriptor.getJcrName("discriminator"),"discriminator"); descendandDescriptors = classDescriptor.getDescendantClassDescriptors(); assertEquals("Invalid number of descendants", descendandDescriptors.size(), 1); assertTrue("Descendant class doesn't have a node type per hierarchy st...
public void testMapperInheritance() { try { Mapper mapper = new DigesterMapperImpl("./src/test-config/jcrmapping-inheritance.xml").buildMapper(); assertNotNull("Mapper is null", mapper); ClassDescriptor classDescriptor = mapper.getClassDescriptor(Anc...
assertTrue(b2Field.isJcrAutoCreated()); assertTrue(b2Field.isJcrMandatory()); assertTrue(b2Field.isJcrProtected()); assertTrue(b2Field.isJcrMultiple()); assertEquals(b2Field.getJcrOnParentVersion(), "COPY");
assertFalse(b2Field.isJcrAutoCreated()); assertFalse(b2Field.isJcrMandatory()); assertFalse(b2Field.isJcrProtected()); assertFalse(b2Field.isJcrMultiple()); assertEquals(b2Field.getJcrOnParentVersion(), "IGNORE");
public void testMapperOptionalProperties() { try { Mapper mapper = new DigesterMapperImpl("./src/test-config/jcrmapping.xml") .buildMapper(); assertNotNull("Mapper is null", mapper); ClassDescriptor classDescriptor = mapper.getClas...
String layout = (String)context.get(KEY_LAYOUT);
Object obj = context.get(KEY_LAYOUT); String layout = (obj == null) ? null : obj.toString();
protected void mergeTemplate(Template template, Context context, HttpServletResponse response) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, IOException, UnsupportedEncodingExcep...
if (layout != defaultLayout)
if (!layout.equals(defaultLayout))
protected void mergeTemplate(Template template, Context context, HttpServletResponse response) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, IOException, UnsupportedEncodingExcep...
final Map<User, ArtifactReceipt> sharedWith = this.sharedWith.get(version); final List<PDFXMLUser> pdfXML = new ArrayList<PDFXMLUser>(publishedTo.size() + sharedWith.size());
final List<PDFXMLUser> pdfXML = new ArrayList<PDFXMLUser>(publishedTo.size());
private List<PDFXMLUser> createPDFXMLUsers(final ContainerVersion version) { final Map<User, ArtifactReceipt> publishedTo = this.publishedTo.get(version); final Map<User, ArtifactReceipt> sharedWith = this.sharedWith.get(version); final List<PDFXMLUser> pdfXML = new ArrayList<PDFXMLUser>(publis...
pdfXML.add(createPDFXMLUser(entry.getKey(), entry.getValue())); } for (final Entry<User, ArtifactReceipt> entry : sharedWith.entrySet()) {
private List<PDFXMLUser> createPDFXMLUsers(final ContainerVersion version) { final Map<User, ArtifactReceipt> publishedTo = this.publishedTo.get(version); final Map<User, ArtifactReceipt> sharedWith = this.sharedWith.get(version); final List<PDFXMLUser> pdfXML = new ArrayList<PDFXMLUser>(publis...
for (final ContainerVersion version : sharedWith.keySet()) { this.statistics.usersPerVersion.put(version, this.statistics.usersPerVersion.get(version) + sharedWith.get(version).size()); this.statistics.usersSum += sharedWith.get(version).size(); }
private void generateStatistics() { this.statistics = new Statistics(); this.statistics.documentsPerVersion.clear(); this.statistics.documentSum = 0; this.statistics.usersSum = 0; this.statistics.versionSum = versions.size(); for (final Entry<ContainerVersion, List<Document...
if (!initialized) { component.addMouseMotionListener(new MouseMotionAdapter() {
if (!initialized) { final MouseMotionAdapter mouseMotionAdapter = new MouseMotionAdapter() {
private void initComponents() { if (!initialized) { component.addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { formMouseDragged(evt, component); } public void mouseMoved(java.a...
}); component.addMouseListener(new MouseAdapter() {
}; final MouseAdapter mouseAdapter = new MouseAdapter() {
private void initComponents() { if (!initialized) { component.addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { formMouseDragged(evt, component); } public void mouseMoved(java.a...
});
}; component.addMouseMotionListener(mouseMotionAdapter); component.addMouseListener(mouseAdapter); components.add(component); mouseMotionAdapters.put(component, mouseMotionAdapter); mouseAdapters.put(component, mouseAdapter);
private void initComponents() { if (!initialized) { component.addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { formMouseDragged(evt, component); } public void mouseMoved(java.a...
window.addMouseMotionListener(new MouseMotionAdapter() {
final MouseMotionAdapter mouseMotionAdapterWindow = new MouseMotionAdapter() {
private void initComponents() { if (!initialized) { component.addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { formMouseDragged(evt, component); } public void mouseMoved(java.a...
}); window.addMouseListener(new MouseAdapter() {
}; final MouseAdapter mouseAdapterWindow = new MouseAdapter() {
private void initComponents() { if (!initialized) { component.addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { formMouseDragged(evt, component); } public void mouseMoved(java.a...
});
}; window.addMouseMotionListener(mouseMotionAdapterWindow); window.addMouseListener(mouseAdapterWindow); components.add(window); mouseMotionAdapters.put(window, mouseMotionAdapterWindow); mouseAdapters.put(window, mouseAdapterWindow);
private void initComponents() { if (!initialized) { component.addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { formMouseDragged(evt, component); } public void mouseMoved(java.a...
this.maximumHeight = jFrame.getPreferredSize().height;
public ShowJFrameAnimator(final JFrame jFrame) { super(jFrame); this.isDone = false; }
if(newHeight <= MAX_BROWSER_HEIGHT) {
if(newHeight <= maximumHeight) {
private Dimension incrementHeight(final Dimension size) { final double newHeight = size.getHeight() + INCREMENT_STEP; if(newHeight <= MAX_BROWSER_HEIGHT) { size.setSize(size.getWidth(), newHeight); } else { isDone = true; } return size; }
c.insets.left = 167;
c.insets.left = 275;
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...
public void drawingBarcodeDirectToGraphics() throws BarcodeException {
public void drawingBarcodeDirectToGraphics() throws BarcodeException, OutputException {
public void drawingBarcodeDirectToGraphics() throws BarcodeException { // Always get a Barcode from the BarcodeFactory Barcode barcode = BarcodeFactory.createCode128B("My Barcode"); // We are created an image from scratch here, but for printing in Java, your // print renderer should have a Graphics internally anyw...
xmppSystem.processEventQueue(getUserId());
xmppSystem.processEventQueue(userId);
public void processEventQueue(final JabberId userId) { xmppSystem.processEventQueue(getUserId()); }
IParityModelConstants.PROJECT_CREATED_BY_INBOX,
systemUsername,
private Project lazyCreateInbox() throws FileNotFoundException, IOException { final Project inbox = new Project( IParityModelConstants.PROJECT_CREATED_BY_INBOX, IParityModelConstants.PROJECT_CREATED_ON_INBOX, IParityModelConstants.PROJECT_DESCRIPTION_INBOX, NO_FLAGS, IParityModelConstants.PROJECT_ID_IN...
IParityModelConstants.PROJECT_UPDATED_BY_MYPROJECTS,
systemUsername,
private Project lazyCreateInbox() throws FileNotFoundException, IOException { final Project inbox = new Project( IParityModelConstants.PROJECT_CREATED_BY_INBOX, IParityModelConstants.PROJECT_CREATED_ON_INBOX, IParityModelConstants.PROJECT_DESCRIPTION_INBOX, NO_FLAGS, IParityModelConstants.PROJECT_ID_IN...
IParityModelConstants.PROJECT_CREATED_BY_MYPROJECTS,
systemUsername,
private Project lazyCreateMyProjects() throws FileNotFoundException, IOException { final Project myProjects = new Project( IParityModelConstants.PROJECT_CREATED_BY_MYPROJECTS, IParityModelConstants.PROJECT_CREATED_ON_MYPROJECTS, IParityModelConstants.PROJECT_DESCRIPTION_MYPROJECTS, NO_FLAGS, IParityM...
IParityModelConstants.PROJECT_UPDATED_BY_MYPROJECTS,
systemUsername,
private Project lazyCreateMyProjects() throws FileNotFoundException, IOException { final Project myProjects = new Project( IParityModelConstants.PROJECT_CREATED_BY_MYPROJECTS, IParityModelConstants.PROJECT_CREATED_ON_MYPROJECTS, IParityModelConstants.PROJECT_DESCRIPTION_MYPROJECTS, NO_FLAGS, IParityM...
final void setJabberIdParameters(final String listName, final String name,
public final void setJabberIdParameters(final String listName, final String name,
final void setJabberIdParameters(final String listName, final String name, final List<JabberId> values) { final List<Parameter> parameters = new LinkedList<Parameter>(); for(final JabberId value : values) { parameters.add(new Parameter(name, JabberId.class, value)); } ...
digester.addSetNext("toolbox/data", "addTool");
digester.addSetNext("toolbox/data", "addData");
protected void addDataRules(Digester digester) { digester.addObjectCreate("toolbox/data", getDataInfoClass()); digester.addSetProperties("toolbox/data"); digester.addBeanPropertySetter("toolbox/data/key", "key"); digester.addBeanPropertySetter("toolbox/data/value", "value"); di...
LabelFactory.createLink(text, UIConstants.DefaultFontBold);
LabelFactory.createLink(text, UIConstants.SmallFont);
private JLabel createJLabelLink(final String text, final ActionListener actionListener) { final JLabel jLabelLink = LabelFactory.createLink(text, UIConstants.DefaultFontBold); jLabelLink.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { actionListener.actionPerformed( ...
final JPopupMenu jPopupMenu = new JPopupMenu(); final JMenuItem newContactMenuItem = MenuItemFactory.create(getString("Contact"), 0); newContactMenuItem.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { runAddContact(); } }); final JMenuItem newDocumentMenuItem = MenuItemFactor...
private void initComponents() { final GridBagConstraints c = new GridBagConstraints(); final GridBagConstraints c2 = new GridBagConstraints(); final JPopupMenu jPopupMenu = new JPopupMenu(); final JMenuItem newContactMenuItem = MenuItemFactory.create(getString("Contact"), 0); newContactMenuItem.addActionListene...
getString("New"), jPopupMenu);
getString("AddContact"), new ActionListener() { public void actionPerformed(final ActionEvent e) { runAddContact(); } });
private void initComponents() { final GridBagConstraints c = new GridBagConstraints(); final GridBagConstraints c2 = new GridBagConstraints(); final JPopupMenu jPopupMenu = new JPopupMenu(); final JMenuItem newContactMenuItem = MenuItemFactory.create(getString("Contact"), 0); newContactMenuItem.addActionListene...
c.insets.top = 9;
c.insets.top = 21;
private void initComponents() { final GridBagConstraints c = new GridBagConstraints(); final GridBagConstraints c2 = new GridBagConstraints(); final JPopupMenu jPopupMenu = new JPopupMenu(); final JMenuItem newContactMenuItem = MenuItemFactory.create(getString("Contact"), 0); newContactMenuItem.addActionListene...
c.insets.left = c.insets.right = 0;
c.insets.left = 0; c.insets.right = 15;
private void initComponents() { final GridBagConstraints c = new GridBagConstraints(); final GridBagConstraints c2 = new GridBagConstraints(); final JPopupMenu jPopupMenu = new JPopupMenu(); final JMenuItem newContactMenuItem = MenuItemFactory.create(getString("Contact"), 0); newContactMenuItem.addActionListene...
final JLabel separatorJLabel2 = createJLabelSeparator(); c.insets.left = c.insets.right = 7; add(separatorJLabel2, c.clone()); final JLabel helpJLabelLink = createJLabelLink(getString("Help"), new ActionListener() { public void actionPerformed(final ActionEvent e) {} }); c.insets.left = 0; c.insets.right = 6; add(help...
private void initComponents() { final GridBagConstraints c = new GridBagConstraints(); final GridBagConstraints c2 = new GridBagConstraints(); final JPopupMenu jPopupMenu = new JPopupMenu(); final JMenuItem newContactMenuItem = MenuItemFactory.create(getString("Contact"), 0); newContactMenuItem.addActionListene...
c2.insets.left = 168;
c2.insets.left = 209;
private void initComponents() { final GridBagConstraints c = new GridBagConstraints(); final GridBagConstraints c2 = new GridBagConstraints(); final JPopupMenu jPopupMenu = new JPopupMenu(); final JMenuItem newContactMenuItem = MenuItemFactory.create(getString("Contact"), 0); newContactMenuItem.addActionListene...
c2.insets.right = 13;
c2.insets.right = 14;
private void initComponents() { final GridBagConstraints c = new GridBagConstraints(); final GridBagConstraints c2 = new GridBagConstraints(); final JPopupMenu jPopupMenu = new JPopupMenu(); final JMenuItem newContactMenuItem = MenuItemFactory.create(getString("Contact"), 0); newContactMenuItem.addActionListene...
c.gridwidth = 5;
c.gridwidth = 3;
private void initComponents() { final GridBagConstraints c = new GridBagConstraints(); final GridBagConstraints c2 = new GridBagConstraints(); final JPopupMenu jPopupMenu = new JPopupMenu(); final JMenuItem newContactMenuItem = MenuItemFactory.create(getString("Contact"), 0); newContactMenuItem.addActionListene...
c.insets.top = c.insets.left = c.insets.bottom = c.insets.right = 0;
c.insets.top = c.insets.left = c.insets.right = 0; c.insets.bottom = 18;
private void initComponents() { final GridBagConstraints c = new GridBagConstraints(); final GridBagConstraints c2 = new GridBagConstraints(); final JPopupMenu jPopupMenu = new JPopupMenu(); final JMenuItem newContactMenuItem = MenuItemFactory.create(getString("Contact"), 0); newContactMenuItem.addActionListene...
public void actionPerformed(final ActionEvent e) { runAddContact(); }
public void actionPerformed(final ActionEvent e) {}
public void actionPerformed(final ActionEvent e) { runAddContact(); }
void create(final JabberId createdBy, final Calendar createdOn, final Long id, final JabberId keyHolder, final String name, final List<JabberId> contacts) throws ParityException { final ArtifactIndex index = new ArtifactIndex(); index.setCreatedBy(createdBy); index.setCreatedOn(createdOn); index.setId(id); index.setKey...
void create(final Long artifactId, final String artifactName) throws ParityException { getInternalIndexModel().createArtifact(artifactId, artifactName);
void create(final JabberId createdBy, final Calendar createdOn, final Long id, final JabberId keyHolder, final String name, final List<JabberId> contacts) throws ParityException { final ArtifactIndex index = new ArtifactIndex(); index.setCreatedBy(createdBy); index.setCreatedOn(createdOn); index.setId(id); in...
if ( !(errormsgs.hasNext()) ) { return null; }
public ArrayList get(String property) { if ( errors == null || errors.empty()) { return null; } Iterator errormsgs; if (property == null) { errormsgs = errors.get(); if ( !(errormsgs.hasNext()) ) { retu...
if ( !(errormsgs.hasNext()) ) { return null; }
} if (!(errormsgs.hasNext())) { return null;
public ArrayList get(String property) { if ( errors == null || errors.empty()) { return null; } Iterator errormsgs; if (property == null) { errormsgs = errors.get(); if ( !(errormsgs.hasNext()) ) { retu...
if (resources == null) { log(ERROR, "Message resources are not available."); return null; }
public ArrayList get(String property) { if ( errors == null || errors.empty()) { return null; } Iterator errormsgs; if (property == null) { errormsgs = errors.get(); if ( !(errormsgs.hasNext()) ) { retu...
public Analysis doAnalysis(Story story) {
public Analysis doAnalysis(Story story, String topic) {
public Analysis doAnalysis(Story story) { Analysis a = new Analysis(); a.setID(story.getID()); String content = story.getContent(); if (content.matches("IJsland")) { // If the string IJsland appears in the text, it's definitely about // Iceland a.setTopic...
a.setTopicRelevance("1.0");
a.setTopicRelevance(1.0);
public Analysis doAnalysis(Story story) { Analysis a = new Analysis(); a.setID(story.getID()); String content = story.getContent(); if (content.matches("IJsland")) { // If the string IJsland appears in the text, it's definitely about // Iceland a.setTopic...
if (author.matches("Christian Luijten")) { a.setTopicRelevance("0.75");
if (author.matches("Christian")) { a.setTopicRelevance(0.75);
public Analysis doAnalysis(Story story) { Analysis a = new Analysis(); a.setID(story.getID()); String content = story.getContent(); if (content.matches("IJsland")) { // If the string IJsland appears in the text, it's definitely about // Iceland a.setTopic...
final DocumentModel documentModel = DocumentModel.getModel();
final DocumentModel documentModel = getDocumentModel();
void delete(final Project project) throws ParityException { logger.info("delete(Project)"); logger.debug(project); try { final DocumentModel documentModel = DocumentModel.getModel(); for(Document subDocument : documentModel.list(project)) { documentModel.delete(subDocument); } for(Project subProject : li...
public TimestampTypeConverterImpl(ValueFactory factory) { super(factory); }
public TimestampTypeConverterImpl() { super(); }
public TimestampTypeConverterImpl(ValueFactory factory) { super(factory); }
this.testContext = TestModel.getTestContext();
private OpheliaTestModelFactory() { super(); this.testContext = TestModel.getTestContext(); }
return ArchiveModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return ArchiveModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalArchiveModel getArchiveModel(final OpheliaTestUser testUser) { return ArchiveModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return ArtifactModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return ArtifactModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalArtifactModel getArtifactModel(final OpheliaTestUser testUser) { return ArtifactModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return ContactModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return ContactModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalContactModel getContactModel(final OpheliaTestUser testUser) { return ContactModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return ContainerModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return ContainerModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalContainerModel getContainerModel(final OpheliaTestUser testUser) { return ContainerModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return DocumentModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return DocumentModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalDocumentModel getDocumentModel(final OpheliaTestUser testUser) { return DocumentModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return LibraryModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return LibraryModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalLibraryModel getLibraryModel(final OpheliaTestUser testUser) { return LibraryModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return ProfileModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return ProfileModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalProfileModel getProfileModel(final OpheliaTestUser testUser) { return ProfileModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return ReleaseModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return ReleaseModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalReleaseModel getReleaseModel(final OpheliaTestUser testUser) { return ReleaseModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return ScriptModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return ScriptModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalScriptModel getScriptModel(final OpheliaTestUser testUser) { return ScriptModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return SessionModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return SessionModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalSessionModel getSessionModel(final OpheliaTestUser testUser) { return SessionModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return SystemMessageModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return SystemMessageModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalSystemMessageModel getSystemMessageModel(final OpheliaTestUser testUser) { return SystemMessageModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return UserModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace());
return UserModel.getInternalModel(getContext(testUser), testUser.getEnvironment(), testUser.getWorkspace());
public InternalUserModel getUserModel(final OpheliaTestUser testUser) { return UserModel.getInternalModel(testContext, testUser.getEnvironment(), testUser.getWorkspace()); }
return WorkspaceModel.getInternalModel(testContext, testUser.getEnvironment());
return WorkspaceModel.getInternalModel(getContext(testUser), testUser.getEnvironment());
public InternalWorkspaceModel getWorkspaceModel(final OpheliaTestUser testUser) { return WorkspaceModel.getInternalModel(testContext, testUser.getEnvironment()); }
public DeclineInvitation() { super("DeclineInvitation", ID, NAME, ICON); }
public DeclineInvitation(final Browser browser) { super("DeclineInvitation", ID, NAME, ICON); this.browser = browser; }
public DeclineInvitation() { super("DeclineInvitation", ID, NAME, ICON); }
try { final SystemMessageModel sMModel = getSystemMessageModel(); final ContactInvitationMessage message = (ContactInvitationMessage) sMModel.read(messageId); getSessionModel().declineInvitation(message.getInvitedBy()); sMModel.delete(messageId); } catch(final ParityException px) { throw new RuntimeException(px); }
final SystemMessageModel sMModel = getSystemMessageModel(); final ContactInvitationMessage message = (ContactInvitationMessage) sMModel.read(messageId); getSessionModel().declineInvitation(message.getInvitedBy()); sMModel.delete(messageId); browser.fireSystemMessageDeleted(messageId);
public void invoke(final Data data) throws Exception { final Long messageId = (Long) data.get(DataKey.SYSTEM_MESSAGE_ID); try { final SystemMessageModel sMModel = getSystemMessageModel(); final ContactInvitationMessage message = (ContactInvitationMessage) sMModel.read(messageId); getSessionModel().declineIn...
folder = new Folder();
document = new Document(); document.setName("document4"); document.setContentType("plain/text"); documentStream = new DocumentStream(); documentStream.setEncoding("utf-8"); documentStream.setContent("Test Content 4".getBytes()); document.setDocumentStream(documentStream); Folder subFolder = new Folder(); subFolder.set...
public void testRetrieveCollection() { PersistenceManager persistenceManager = this.getPersistenceManager(); //--------------------------------------------------------------------------------------------------------- // Insert descendant objects //-------------------------------------------------------------------...
folder.setName("folder2");
folder.setName("folder2"); folder.addChild(document); folder.addChild(subFolder);
public void testRetrieveCollection() { PersistenceManager persistenceManager = this.getPersistenceManager(); //--------------------------------------------------------------------------------------------------------- // Insert descendant objects //-------------------------------------------------------------------...
filter.setScope("/");
public void testRetrieveCollection() { PersistenceManager persistenceManager = this.getPersistenceManager(); //--------------------------------------------------------------------------------------------------------- // Insert descendant objects //-------------------------------------------------------------------...
queryManager = persistenceManager.getQueryManager(); filter = queryManager.createFilter(CmsObject.class); filter.setScope("/"); query = queryManager.createQuery(filter); result = persistenceManager.getObjects(query); assertEquals("Invalid ancestor object found", result.size(),5); assertTrue("Invalid item in the collec...
public void testRetrieveCollection() { PersistenceManager persistenceManager = this.getPersistenceManager(); //--------------------------------------------------------------------------------------------------------- // Insert descendant objects //-------------------------------------------------------------------...
assertEquals("Invalid ancestor object found", result.size(),5);
assertEquals("Invalid ancestor object found", result.size(),7);
public void testRetrieveCollection() { PersistenceManager persistenceManager = this.getPersistenceManager(); //--------------------------------------------------------------------------------------------------------- // Insert descendant objects //-------------------------------------------------------------------...
assertTrue("Invalid item in the collection", this.contains(result, "/folder2/subfolder",Folder.class));
public void testRetrieveCollection() { PersistenceManager persistenceManager = this.getPersistenceManager(); //--------------------------------------------------------------------------------------------------------- // Insert descendant objects //-------------------------------------------------------------------...
session.processOfflineQueue(session.readCurrentUser().getId());
final JabberId userId = JabberIdBuilder.build( credentials.getUsername(), Constants.Jabber.DOMAIN, credentials.getResource()); session.processOfflineQueue(userId);
private void processOfflineQueue() { assertIsReachable(environment); XMPPSession session = null; try { session = new XMPPSessionImpl(); session.login(environment, credentials); session.processOfflineQueue(session.readCurrentUser().getId()); } finally { ...
case SESSION_ACCEPT_INVITATION: return new com.thinkparity.browser.platform.action.session.AcceptInvitation(); case SESSION_DECLINE_INVITATION: return new com.thinkparity.browser.platform.action.session.DeclineInvitation(); case SYSTEM_MESSAGE_DELETE: return new com.thinkparity.browser.platform.action.system.message.De...
private AbstractAction doCreateAction(final ActionId actionId) { switch(actionId) { case ARTIFACT_APPLY_FLAG_SEEN: return new com.thinkparity.browser.platform.action.artifact.ApplyFlagSeen(); case DOCUMENT_CLOSE: return new com.thinkparity.browser.platform.action.document.Close(); case SESSION_ACCEPT_INVITATIO...
if (session != null) { synchronized(session)
if (session != null) { synchronized(getMutex(session))
public ToolboxContext getToolboxContext(Object initData) { //we know the initData is a ViewContext ViewContext ctx = (ViewContext)initData; //create the toolbox map with the application tools in it Map toolbox = new HashMap(appTools); if (!sessionToolInfo.isEmpty()) ...
ToolInfo info = (ToolInfo)i.next(); stmap.put(info.getKey(), info.getInstance(ctx));
ToolInfo ti = (ToolInfo)i.next(); stmap.put(ti.getKey(), ti.getInstance(ctx));
public ToolboxContext getToolboxContext(Object initData) { //we know the initData is a ViewContext ViewContext ctx = (ViewContext)initData; //create the toolbox map with the application tools in it Map toolbox = new HashMap(appTools); if (!sessionToolInfo.isEmpty()) ...
new Log4JWrapper("SQL_DEBUGGER").logInfo("{0} - {1} - {2}", Version.getName(), Version.getMode(), Version.getBuildId()); new Log4JWrapper("XMPP_DEBUGGER").logInfo("{0} - {1} - {2}", Version.getName(), Version.getMode(), Version.getBuildId());
new Log4JWrapper("SQL_DEBUGGER").logInfo("{0} - {1}", "thinkParity", "1.0"); new Log4JWrapper("XMPP_DEBUGGER").logInfo("{0} - {1}", "thinkParity", "1.0");
private void bootstrapLogging() { if ((Mode.DEVELOPMENT == mode || Mode.TESTING == mode)) { final Properties logging = new Properties(); // sql debugger logging.setProperty("log4j.logger.SQL_DEBUGGER", "DEBUG, SQL_DEBUGGER"); logging.setProperty("log4j.appender.SQL...
public void addTeamMember(final UUID uniqueId, final JabberId jabberId) {
public void addTeamMember(final UUID uniqueId, final List<JabberId> team, final JabberId jabberId) {
public void addTeamMember(final UUID uniqueId, final JabberId jabberId) { synchronized(getImplLock()) { getImpl().addTeamMember(uniqueId, jabberId); } }
getImpl().addTeamMember(uniqueId, jabberId);
getImpl().addTeamMember(uniqueId, team, jabberId);
public void addTeamMember(final UUID uniqueId, final JabberId jabberId) { synchronized(getImplLock()) { getImpl().addTeamMember(uniqueId, jabberId); } }