• last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
LDEV-77: Issues exist with the data returned by getAccessibleWorkspaceFolders(). Data is missing, and the structure is different to the workspace data returned by getFolderContentsExcludeHome().

Trying to fix the problems by changing the DTO to be the same one used for getFolderContentsExcludeHome(). Put it in a temporary method for the moment so that we can try out the changed packet without breaking the existing code. More changes will probably be required for this problem.

  1. … 1 more file in changeset.
LDEV-73: Added a method to pass the details of the license table to Flash. The DTO code in lams.jar tweaks the data before sending - in this case we make sure the picture url is a complete url (maybe relative to the current server in db).

  1. … 1 more file in changeset.
removed code

the messages send to flash

are from the applicationResources file

added comments

changed the flashmessage

to "storeLearningDesignDetails"

moved to LearningDesignValidator

added some comments

refactored code so that the iterator is only when needed

added messages which will be sent to flash

used for learning design validator

validator - which has validation rules to determine whether the LD is valid or not

this DTO will indicate whether the learning design is valid or not.

if valid - the message included will be the learningdesign id of the LD saved

if not valid - returns the list of error messages/codes

learning design validator - if learning design isnt valid, server will return a list of ValidationErrorDTO objects which hold information about which rule was violated, and which is the offending activity (if applicable)

    • -0
    • +116
    ./org/lamsfoundation/lams/authoring/dto/ValidationErrorDTO.java
LDEV-75 Implemented a Flash client crash dump utility. Writes out the wddx packet from Flash to a file in the LAMS dump directory. The DumpDirectory is configured via DumpDir in the LAMS configuration file.

    • -0
    • +44
    ./org/lamsfoundation/lams/web/FlashCrashDumpServlet.java
  1. … 7 more files in changeset.
Moved the WDDX null entry checking to the base packet handling servlet (AbstractStoreWDDXPacketServlet) so that all packets will be checked, not just authoring packets.

  1. … 1 more file in changeset.
Add redir Cookies as well so that the shared session can works well.

add some validation for createWorkspaceFolderContent so that a non-unique name doesn't result in an index violation .

deleteContentWithVersion - checks if a resource exists before deleting.

updated ack message so that it returns the folderContentID

  1. … 1 more file in changeset.
LDEV-77: The createWorkspaceFolderContent and deleteContentWithVersion calls were not working. The code logged into the content repository, but it had not set up an area in the content repository to create the files (i.e. it had not created the Workspace service's workspace) and it had not defined the credential with the repository. So the login to the repository failed.

Added code to detect the "can't login" error and if it occurs, the code attempts to create the repository workspace and credential and then log in again.

deleteFolder method - it will delete all resources inside that folder (if user has permission to) . if resource inside that folder could not be deleted, it will return a flash message indicating which one could not be deleted.

added new methods getUsersFromOrganisationByRole and getOrganisationsByUserRole

added userMgmtService bean

does not expect the parameters createDateTime and lastModifiedDate, server will set these values instead.

request parameter "contentType" renamed to contentTypeID

modified createWorkspaceFolderContent, removed createDateTime and lastModifiedDateTime from the arguments. Server will set these values instead.

will get a list of stylesheets from utility in lams_common and then generate the link, added an attribute "localLink", if set to true, local link will be generated instead of one composed of serverurl

    • -23
    • +71
    ./org/lamsfoundation/lams/web/tag/CssTag.java
New customerized HTML textarea tag (compatible with STRUTS)

New customerized HTML textarea tag (compatible with STRUTS)

    • -0
    • +141
    ./org/lamsfoundation/lams/web/tag/MultiLinesTextareaTag.java
  1. … 3 more files in changeset.
after parsing the activity list, it will go through the list again and match up the parent with child activity based ont he parentUIID

getFolderContents wasn't returning designs when mode=1 (authoring). The equality check was wrong (using == instead of .equals), so it was only returning valid designs. Nothing is setting the "valid" flag yet, so no designs were valid, and hence none returned.

Fixed bug - tool content id was not being updated when a tool activity was updated. The code that handles the special fields for tool activities, optional activities, etc wasn't being called.

  1. … 1 more file in changeset.
Removed run sequences from getAccessibleWorkspaceFolders() and added a new call getFolderContentsExcludeHome() which excludes the user's home directory from the returned contents.

removed grouping.setGroupingTypeId, this does need to be set as hibernate deals with it.

modifications done on groupings stuff.

added method parseGroupings and changed it so that the groupings object is not created when parsing the grouping activities.

Instead it will be created when processing the groupings array.

removed some use of instanceOf as it wasnt working.

Calculate first activity for a learning design now works properly.