Add a component to a specific part.
Add a component to a specific part.
This associates a component with a project part. When that part is enabled for a course, users in that course will be able to access that component in their enabled components list.
the unique ID of the component to add
the unique ID of the part to add the component to
Database connection (pool).
Database connection (pool). Services will take connections from this pool when making repository calls.
Replace "tags" in a text block with the approriate HTML embed code.
Replace "tags" in a text block with the approriate HTML embed code.
Scans text for tags, and then replaces them with the appropriate components.
Find a single component by ID.
Find a single component by ID.
the unique ID of the component to load.
an optional component
List all components.
List all components.
an array of components
List components by part ID.
List components by part ID.
the unique ID of the part to filter by
an array of components
List components by project and user, thus listing "enabled" components.
List components by project and user, thus listing "enabled" components.
A user can view components that are enabled in any of their courses.
the unique ID of the part to filter by
an array of components
Remove a component from a specific part.
Remove a component from a specific part.
This disassociates a component with a project part. When that part is enabled for a course, users in that course will be able to access that component in their enabled components list.
the unique ID of the component to remove
the unique ID of the part to remove the component from
the operation was successful
Takes a function that returns a future, and runs it inside a database transaction.
Takes a function that returns a future, and runs it inside a database transaction.
Can a given user access a given component.
Can a given user access a given component.