Hi,
I have application security service which creates permission to manage
particular entity(OmSite). Its action method is:
@Bookmarkable
@MemberOrder(sequence = "9")
@Named("Create Site Permission")
public OmPermission createSitePermission(final @Named("Choose a site")
OmSite site) {
final OmPermission obj = newTransientInstance(OmPermission.class);
obj.setPermission(SecurityUtil.formatSitePermission(site.getOrgId(),
site.getSiteId()));
obj.setSite(site);
persistIfNotAlready(obj);
return obj;
}
As you can see this method takes OmSite instance to create a permission to that
instance. And OmPermission has foreign key to OmSite. This action is displayed
in service menu and its working fine.
But the problem I am facing is when I access the list of OmSite objects in
other UI pages. This action method is getting triggered automatically and
inserts bulk OmPermissions for all those List<OmSite> objects.
This action method createSitePermission should be invoked only if it is clicked
manually, but it gets triggered automatically whenever OmSite is accesed in
some other places.
Could you please look into this issue.
Br
Ranganath Varma
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email.
www.wipro.com