MCPcopy Create free account
hub / github.com/comunes/kune / createFolder

Method createFolder

src/main/java/cc/kune/core/server/rpc/ContentRPC.java:433–440  ·  view source on GitHub ↗

Creates the folder. @param groupShortName the group short name @param parentFolderId the parent folder id @param title the title @param typeId the type id @return the container @throws DefaultException the default exception

(final String groupShortName, final Long parentFolderId,
      final String title, final String typeId)

Source from the content-addressed store, hash-verified

431 * the default exception
432 */
433 private Container createFolder(final String groupShortName, final Long parentFolderId,
434 final String title, final String typeId) throws DefaultException {
435 final User user = getCurrentUser();
436 final Group group = groupManager.findByShortName(groupShortName);
437 final Container container = creationService.createFolder(group, parentFolderId, title,
438 user.getLanguage(), typeId);
439 return container;
440 }
441
442 /*
443 * (non-Javadoc)

Callers 1

addFolderMethod · 0.95

Calls 4

getCurrentUserMethod · 0.95
getLanguageMethod · 0.95
findByShortNameMethod · 0.65
createFolderMethod · 0.65

Tested by

no test coverage detected