...
Any specific behaviour in the case of creation at the same time that a project from a template
will have to be implemented in an TriggerBusinessService
of the media object.
From a brief
type | value = 2 |
channel | (not obligatory) the application will assign by default the channel of this type if you don’t mention it. This type is present to simplify the use of the |
...
Code Block |
---|
final CTSurfer surfer = ... ; .... final IObjectReadOnly sourceProject = .... ; ... final CTObjects factory = new CTObjects(); factory.JSPLoad("media", true); final IObjectWritable newProject = factory.create(); newProject.setProperty("name", "test"); newProject.setProperty("type", "4"); // from model; newProject.setProperty("channel", "8"); // print / brochure; newProject.setProperty("project", sourceProject.getIdentifiant().toString()); newProject.setProperty("mediagroup", "1"); .... final String newProjectId = newProject.JSPSave(surfer); |
Info |
The duplicate
button in the back-office and JSP clone.jsp
have been customized for the media
object in order to redirect to a project creation form of this type.
IWxmFactory and IWxmProjectManager
...
Users 3 and 54 will be assigned to the project with their default roles.
user 5 will have role 10 on this project (regardless of its default role)
User 10 will have role 4 on this project (regardless of its default role)
previously assigned users will have their rights revoked
Tipinfo |
---|
If you don’t want to touch the subpoenas, you can leave the empty |
...
You will be able to use this information in security rules.
...
For performance reasons this denormalization is not automatic and must be activated by the securityDenormalizeUserRightsInSurfer
property in the configuration of the WXM_MediaCore
plugin.