class DLFileShortcutResolversImpl implements DLFileShortcutResolvers {

    @Override
    public DataFetcher<DLFileShortcut> updateDLFileShortcutDataFetcher() {
        return environment -> {
            long userId = util.getLongArg(environment, "userId", util.getDefaultUserId());
            long fileShortcutId = util.getLongArg(environment, "fileShortcutId");
            long repositoryId = util.getLongArg(environment, "repositoryId");
            long folderId = util.getLongArg(environment, "folderId", DLFolderConstants.DEFAULT_PARENT_FOLDER_ID);
            long toFileEntryId = util.getLongArg(environment, "toFileEntryId");
            ServiceContext serviceContext = new ServiceContext();

            return dlFileShortcutLocalService.updateFileShortcut(
                    userId,
                    fileShortcutId,
                    repositoryId,
                    folderId,
                    toFileEntryId,
                    serviceContext);
        };
    }

}