Amy's Devblog

A blog containing information on all my work/education projects.

Thursday, September 22, 2005

CMSUI Property Permissions

Added functionality to CMSUI so that user can set permissions on individual properties. Previously permissions setting was only available at the node level. While working on this, we discovered that some changes needed to be made to CMS in the code related to setting property values. If a user set permissions on a property and then set the value to a new value before checking in the changes, the earlier permissions settings were being lost.

Thursday, September 15, 2005

Sun Certified Programmer

Today I received my certificate and other goodies in the mail from Sun showing that I have passed the exam and am now a Sun Certified Programmer for Java 2 Platform 1.4!!

CMS User Id

I added a userId field to the UserData object in CMS and implemented it for each user model. In ActiveDirectoryUserModel, we use the objectGUID attribute of the user that is generated automatically by AD when a user is created. In HibernateUserModel, we use the primary key of the user in the users table. In Prevayler, we generate an ID whenever a user is created using a combination of the system time (in milliseconds) and an integer suffix to distinguish between any users who happen to be created at the same millisecond. I then modified the permissions code so that it uses the userId to store the permissions data rather than the user logon name. This way, the user's logon name can be changed without invalidating all the previously set permissions for the user.