public interface LegacyFolderManager
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
|
void addSequenceToFolderByUserRoleId(int sequenceId, int userRoleId)
sequenceId
- the problem set id that is to be added into folderuserRoleId
- the userRole id to determine which folder to add the problem setvoid addSequenceToCustomizedFolderUnderMyFavoriteFolder(int sequenceId, int teacherRoleId)
sequenceId
- the problem set id that is to be added into folderteacherRoleId
- the teacher role id of the userint createCurriculumItem(int sequenceId, int contentCreatorId)
sequenceId
- the problem set idcontentCreatorId
- the content creator id of the userint createFolderItem(int itemId, java.lang.String itemType, int folderId)
itemId
- item id of the rowitemType
- item type of the rowfolderId
- the folder idint createFolder(java.lang.String name, int parentId, int rootId, int ownershipId)
name
- folder nameparentId
- parent folder idrootId
- root folder idownershipId
- ownership idLegacyFolder findFolderByOwnershipId(int folderOwnershipId) throws NotFoundException
folderOwnershipId
- the folder ownership idNotFoundException
- if the folder doesn't existLegacyFolder findFolderById(int id) throws NotFoundException
id
- the id of the folderNotFoundException
- if the folder doesn't existLegacyFolderOwnership findFolderOwnershipByUserRoleId(int ownerEntityId) throws NotFoundException
ownerEntityId
- the user role idNotFoundException
- if the folder ownership doesn't existint findTeacherIdByContentCreatorId(int contentCreatorId) throws NotFoundException
contentCreatorId
- the content creator idNotFoundException
- if the teacher id doesn't exist