This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

APPLICATION - PRODUCT ENGINEERING - With life cycle state transition, can related permission be changed?

Robin Bai - Friday, May 8, 2009 12:19 AM:

With life cycle state transition, can related permission be changed? 
 
For example same user might have different operation permission to the same item which is in different life cycle state. A user can modify an unreleased file but can not modify the same file if it has been released, Can any function of Aras solution fulfill above case?


SamsAn - Monday, May 11, 2009 12:11 PM:

Life cycle state has State Permissions property. So, if you promote itemA to state stateA with permissions stateAPerms then stateAPerms are assigned to itemA automatically.
It is possible to dynamically (through server-side or client-side method) assign permission_id (this property is responsible for permissions) of itemA when need. Just a user should have can_change_access=1 for itemA instance.
Also, server-side api has special methods to dynamically include the current session user into a special group. C# code example is below:
  Aras.Server.Security.Identity daemonIdentity = Aras.Server.Security.Identity.GetById(DaemonIdentityId);
  bool PermissionWasSet = Aras.Server.Security.Permissions.GrantIdentity(daemonIdentity);
  ...
  // Code to execute an operation allowed for daemonIdentity.
  ...
  if (PermissionWasSet) Aras.Server.Security.Permissions.RevokeIdentity(daemonIdentity);

SamsAn.
Original Mind Any Level Innovator Solutions Free-Lancer, http://sites.google.com/site/caraacc