</BUG>
final Subject currentSubject = sm.getDatabase().getActiveBroker().getCurrentSubject();
return new SimpleACLPermission(sm, currentSubject.getId(), currentSubject.getDefaultGroup().getId(), mode);
}
<BUG>public static Permission getPermission(int userId, int groupId, int mode) {
</BUG>
return new SimpleACLPermission(sm, userId, groupId, mode);
}
<BUG>public static Permission getPermission(String userName, String groupName, int mode) {
</BUG>
Permission permission = null;

public static Permission getDefaultCollectionPermission() {
final Subject currentSubject = sm.getDatabase().getActiveBroker().getCurrentSubject();
final int mode = Permission.DEFAULT_COLLECTION_PERM & ~ currentSubject.getUserMask();
return new SimpleACLPermission(sm, currentSubject.getId(), currentSubject.getDefaultGroup().getId(), mode);
}
public static Permission getPermission(final int mode) {
final Subject currentSubject = sm.getDatabase().getActiveBroker().getCurrentSubject();
return new SimpleACLPermission(sm, currentSubject.getId(), currentSubject.getDefaultGroup().getId(), mode);
}
public static Permission getPermission(final int userId, final int groupId, final int mode) {
return new SimpleACLPermission(sm, userId, groupId, mode);
}
public static Permission getPermission(final String userName, final String groupName, final int mode) {
Permission permission = null;
