@Component public class LegacyFolderManagerImpl extends java.lang.Object implements LegacyFolderManager
| Constructor and Description |
|---|
LegacyFolderManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSequenceToCustomizedFolderUnderMyFavoriteFolder(int sequenceId,
int teacherRoleId)
Add a problem set into a folder called Your Customized Skill Builders (from ASSISTments App)
|
void |
addSequenceToFolderByUserRoleId(int sequenceId,
int userRoleId)
Add a problem set into a certain folder.
|
int |
createCurriculumItem(int sequenceId,
int contentCreatorId)
Add a row in curriculum_items table
|
int |
createFolder(java.lang.String name,
int parentId,
int rootId,
int ownershipId)
Add a row in folder table
|
int |
createFolderItem(int itemId,
java.lang.String itemType,
int folderId)
Add a row in folder_items table
|
LegacyFolder |
findFolderById(int id)
Return a folder object for the folder id
|
LegacyFolder |
findFolderByOwnershipId(int folderOwnershipId)
Return a folder object for the ownership id
|
LegacyFolderOwnership |
findFolderOwnershipByUserRoleId(int ownerEntityId)
Return a folder ownership object for the user role id
|
int |
findTeacherIdByContentCreatorId(int contentCreatorId)
Return teacher id for content creator id
|
public void addSequenceToFolderByUserRoleId(int sequenceId,
int userRoleId)
LegacyFolderManageraddSequenceToFolderByUserRoleId in interface LegacyFolderManagersequenceId - the problem set id that is to be added into folderuserRoleId - the userRole id to determine which folder to add the problem setpublic void addSequenceToCustomizedFolderUnderMyFavoriteFolder(int sequenceId,
int teacherRoleId)
LegacyFolderManageraddSequenceToCustomizedFolderUnderMyFavoriteFolder in interface LegacyFolderManagersequenceId - the problem set id that is to be added into folderteacherRoleId - the teacher role id of the userpublic int createCurriculumItem(int sequenceId,
int contentCreatorId)
LegacyFolderManagercreateCurriculumItem in interface LegacyFolderManagersequenceId - the problem set idcontentCreatorId - the content creator id of the userpublic int createFolder(java.lang.String name,
int parentId,
int rootId,
int ownershipId)
LegacyFolderManagercreateFolder in interface LegacyFolderManagername - folder nameparentId - parent folder idrootId - root folder idownershipId - ownership idpublic int createFolderItem(int itemId,
java.lang.String itemType,
int folderId)
LegacyFolderManagercreateFolderItem in interface LegacyFolderManageritemId - item id of the rowitemType - item type of the rowfolderId - the folder idpublic LegacyFolder findFolderByOwnershipId(int folderOwnershipId) throws NotFoundException
LegacyFolderManagerfindFolderByOwnershipId in interface LegacyFolderManagerfolderOwnershipId - the folder ownership idNotFoundException - if the folder doesn't existpublic LegacyFolder findFolderById(int id) throws NotFoundException
LegacyFolderManagerfindFolderById in interface LegacyFolderManagerid - the id of the folderNotFoundException - if the folder doesn't existpublic LegacyFolderOwnership findFolderOwnershipByUserRoleId(int ownerEntityId) throws NotFoundException
LegacyFolderManagerfindFolderOwnershipByUserRoleId in interface LegacyFolderManagerownerEntityId - the user role idNotFoundException - if the folder ownership doesn't existpublic int findTeacherIdByContentCreatorId(int contentCreatorId)
throws NotFoundException
LegacyFolderManagerfindTeacherIdByContentCreatorId in interface LegacyFolderManagercontentCreatorId - the content creator idNotFoundException - if the teacher id doesn't exist