| Chunk |
|---|
| Conflicting content |
|---|
/**
*
<<<<<<< HEAD
* @param data comma-separated values that will be used to create a list of
* structures containing an index also
=======
* @param data comma-separated values that will be used to create a list
* of structures containing an index also
>>>>>>> 29a6e00aa8624d53946e896e2b26aebe8e7efc53
* @return
*/
public static List |
| Solution content |
|---|
/**
*
* @param data comma-separated values that will be used to create a list of
* structures containing an index also
* @return
*/
public static List |
| File |
|---|
| DirectoryFunctions.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
try {
return items.length;
}
<<<<<<< HEAD
public static DocumentModel getDirectoryEntry(String directoryName,
String entryId) throws Exception {
if (entryId == null) {
return null;
}
Session session = null;
DirectoryService dirService = Framework.getService(DirectoryService.class);
session = dirService.open(directoryName);
return session.getEntry(entryId);
} finally {
if (session != null) {
session.close();
}
}
}
public static DocumentModelList getDirectoryEntries(String directoryName,
String... entryIds) throws Exception {
if (entryIds == null) {
return null;
}
Session session = null;
try {
DirectoryService dirService = Framework.getService(DirectoryService.class);
session = dirService.open(directoryName);
DocumentModelList result = new DocumentModelListImpl();
DocumentModel entry;
for (String entryId : entryIds) {
entry = session.getEntry(entryId);
if (entry != null) {
result.add(entry);
}
}
return result;
} finally {
if (session != null) {
session.close();
}
}
}
public static DocumentModelList getDirectoryListEntries(
String directoryName, Collection |
| Solution content |
|---|
return items.length;
}
public static DocumentModel getDirectoryEntry(String directoryName,
String entryId) throws Exception {
if (entryId == null) {
return null;
}
Session session = null;
try {
DirectoryService dirService = Framework.getService(DirectoryService.class);
session = dirService.open(directoryName);
return session.getEntry(entryId);
} finally {
if (session != null) {
session.close();
}
}
}
public static DocumentModelList getDirectoryEntries(String directoryName,
String... entryIds) throws Exception {
if (entryIds == null) {
return null;
}
Session session = null;
try {
DirectoryService dirService = Framework.getService(DirectoryService.class);
session = dirService.open(directoryName);
DocumentModelList result = new DocumentModelListImpl();
DocumentModel entry;
for (String entryId : entryIds) {
entry = session.getEntry(entryId);
if (entry != null) {
result.add(entry);
}
}
return result;
} finally {
if (session != null) {
session.close();
}
}
}
public static DocumentModelList getDirectoryListEntries(
String directoryName, Collection |
| File |
|---|
| DirectoryFunctions.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method declaration |