public static AceRights parseValue ( final int value ) { final AceRights res = new AceRights ( ) ; if ( value == 0 ) { return res ; } res . others = value ; for ( ObjectRight type : ObjectRight . values ( ) ) { if ( ( value & type . getValue ( ) ) == type . getValue ( ) ) { res . rights . add ( type ) ; res . others ^= type . getValue ( ) ; } } return res ; }
Parse ACE rights .