public static PermissionSet getPermissionSet ( final Instance _instance , final boolean _evaluate ) throws EFapsException { Evaluation . LOG . debug ( "Retrieving PermissionSet for {}" , _instance ) ; final Key accessKey = Key . get4Instance ( _instance ) ; final PermissionSet ret ; if ( AccessCache . getPermissionCache ( ) . containsKey ( accessKey ) ) { ret = AccessCache . getPermissionCache ( ) . get ( accessKey ) ; } else if ( _evaluate ) { ret = new PermissionSet ( ) . setPersonId ( accessKey . getPersonId ( ) ) . setCompanyId ( accessKey . getCompanyId ( ) ) . setTypeId ( accessKey . getTypeId ( ) ) ; Evaluation . eval ( ret ) ; AccessCache . getPermissionCache ( ) . put ( accessKey , ret ) ; } else { ret = null ; } Evaluation . LOG . debug ( "Retrieved PermissionSet {}" , ret ) ; return ret ; }
Gets the PermissionSet .