Class AuthorizationHelper


  • public class AuthorizationHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.List<T> filterToVisible​(ch.systemsx.cisd.openbis.dss.generic.shared.IEncapsulatedOpenBISService openBisService, java.lang.String user, java.util.List<T> entities, ch.systemsx.cisd.common.action.IMapper<T,​java.lang.String> codeMapper, AuthorizationHelper.EntityKind entityKind)  
      static <T> T filterToVisible​(ch.systemsx.cisd.openbis.dss.generic.shared.IEncapsulatedOpenBISService openBisService, java.lang.String user, T entity, ch.systemsx.cisd.common.action.IMapper<T,​java.lang.String> codeMapper, AuthorizationHelper.EntityKind entityKind)
      Returns null if given entity is not visible, or the entity if it is visible
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthorizationHelper

        public AuthorizationHelper()
    • Method Detail

      • filterToVisible

        public static <T> T filterToVisible​(ch.systemsx.cisd.openbis.dss.generic.shared.IEncapsulatedOpenBISService openBisService,
                                            java.lang.String user,
                                            T entity,
                                            ch.systemsx.cisd.common.action.IMapper<T,​java.lang.String> codeMapper,
                                            AuthorizationHelper.EntityKind entityKind)
        Returns null if given entity is not visible, or the entity if it is visible
      • filterToVisible

        public static <T> java.util.List<T> filterToVisible​(ch.systemsx.cisd.openbis.dss.generic.shared.IEncapsulatedOpenBISService openBisService,
                                                            java.lang.String user,
                                                            java.util.List<T> entities,
                                                            ch.systemsx.cisd.common.action.IMapper<T,​java.lang.String> codeMapper,
                                                            AuthorizationHelper.EntityKind entityKind)