10-08-2010 04:32 AM
10-08-2010 09:02 AM
NodeRef person = Application.getCurrentUser(
FacesContext.getCurrentInstance()).getPerson();
String username = (String) Repository.getServiceRegistry(
FacesContext.getCurrentInstance()).getNodeService()
.getProperty(person, ContentModel.PROP_USER_USERNAME);
AuthenticationUtil.runAs(new RunAsWork<Boolean>() {
@Override
public Boolean doWork() throws Exception {
return Repository.getServiceRegistry(
FacesContext.getCurrentInstance())
.getPermissionService().hasPermission("PUT NODE REF WITHCK YOU ARE CHECKING",
PermissionService.DELETE);
}
}, username);
10-11-2010 02:06 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.