@Test public void testAddGroup() throws Exception { Group g = Group.create(testName.getMethodName(), testName.getMethodName() + "Title"); FedoraGroupDao dao = new FedoraGroupDao(); dao.setTransaction(tx); dao.addGroup(g, support.getTestUser(), testName.getMethodName()); assertEquals(UserUtil.toGroupPid(testName.getMethodName()), g.getName()); String pid = g.getName(); assertTrue(tx.getRemoteStorage().exist(pid)); try { dao.addGroup(g, support.getTestUser(), testName.getMethodName()); fail("Created the duplicate of group! " + pid); } catch (Exception e) { } }
public String addGroup(Group group, String owner, String logMessage) { boolean isRemote = group.getRemoteName() != null; return addGroup(group, isRemote, owner, logMessage); }
FedoraGroupDao extends FedoraDao { public String addGroup(Group group, String owner, String logMessage) { boolean isRemote = group.getRemoteName() != null; return addGroup(group, isRemote, owner, logMessage); } }
FedoraGroupDao extends FedoraDao { public String addGroup(Group group, String owner, String logMessage) { boolean isRemote = group.getRemoteName() != null; return addGroup(group, isRemote, owner, logMessage); } FedoraGroupDao(); }
FedoraGroupDao extends FedoraDao { public String addGroup(Group group, String owner, String logMessage) { boolean isRemote = group.getRemoteName() != null; return addGroup(group, isRemote, owner, logMessage); } FedoraGroupDao(); String addNewGroup(Group group, String owner, String logMessage); String addGroup(Group group, String owner, String logMessage); }
FedoraGroupDao extends FedoraDao { public String addGroup(Group group, String owner, String logMessage) { boolean isRemote = group.getRemoteName() != null; return addGroup(group, isRemote, owner, logMessage); } FedoraGroupDao(); String addNewGroup(Group group, String owner, String logMessage); String addGroup(Group group, String owner, String logMessage); static final String METAMODEL_ID; static final String PID_PREFIX; }