Skip navigation
Currently Being Moderated

Handling IAMLockable in CS4

Jul 23, 2012 6:04 AM

The IAMLockable interface underwent some changes from CS3 to CS4.

Most of the methods now have objectUID as an additional parameter.

 

For instance, IAMLockable::HasLock(UID objectUID = kInvalidUID)

 

I have my own asset management, and I need to check the lock status of the asset using HasLock(UID).

 

How would I check the lock status using the objectUID, which is passed in as parameter?

 

In CS3, I did the following inside HasLock():

 

IAMLockable::HasLock()

{

     ...

     VerifyState(kSuppressUI);

      if(fLockState == IAMLockable::enCheckOut)

         return kTrue;

}

 

But, in CS4 how would I check the lock status using the objectUID?

Also, there is a method GetLockObjectUID. When and where should I initialize the objectUID?

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points