bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public Event getCurrentEvent() { checkReady("getCurrentEvent"); return CurrentDetails.getCreationEvent(); }
public Event getCurrentEvent() { checkReady("getCurrentEvent"); return CurrentDetails.getCreationEvent(); }
3,228,453
public long getRootId() { return 0L; }
public long getRootId() { return 0L; }
3,228,454
public String getRootName() { return "root"; }
public String getRootName() { return "root"; }
3,228,455
public long getSystemGroupId() { return 0L; }
public long getSystemGroupId() { return 0L; }
3,228,456
public String getSystemGroupName( ) { return "system";}
public String getSystemGroupName( ) { return "system";}
3,228,457
public long getUserGroupId() { return 1L; }
public long getUserGroupId() { return 1L; }
3,228,458
public String getUserGroupName( ) { return "user"; }
public String getUserGroupName( ) { return "user"; }
3,228,459
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
3,228,460
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
3,228,461
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
3,228,462
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
3,228,463
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
3,228,464
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
3,228,465
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
private boolean hasPrivilegedToken( IObject obj ) { GraphHolder gh = obj.getGraphHolder(); // most objects will not have a token if ( gh.hasToken() ) { // check if truly secure. if (gh.tokenMatches(token)) return true; // oh well, now see if this object has a one-time token. Token t = oneTimeTokens.fi...
3,228,466
protected boolean idEqual( IObject arg1, IObject arg2 ) { // arg1 is null if ( arg1 == null ) { // both are null, therefore equal if ( arg2 == null ) return true; // just arg1 is null, can't be equal return false; } // just arg2 is null, also can't be equal...
protected boolean idEqual( IObject arg1, IObject arg2 ) { // arg1 is null if ( arg1 == null ) { // both are null, therefore equal if ( arg2 == null ) return true; // just arg1 is null, can't be equal return false; } // just arg2 is null, also can't be equal...
3,228,467
public boolean isDisabled(String id) { if (id==null) throw new ApiUsageException("Id should not be null."); return CurrentDetails.isDisabled(id); }
public boolean isDisabled(String id) { if (id==null) throw new ApiUsageException("Id should not be null."); return CurrentDetails.isDisabled(id); }
3,228,468
public boolean isGlobal( Class<? extends IObject> klass) { if ( klass == null ) return false; if ( Experimenter.class.isAssignableFrom( klass )) return true; if ( Event.class.isAssignableFrom( klass )) return true; return false; }
public boolean isGlobal( Class<? extends IObject> klass) { if ( klass == null ) return false; if ( Experimenter.class.isAssignableFrom( klass )) return true; if ( Event.class.isAssignableFrom( klass )) return true; return false; }
3,228,469
public boolean isReady( ) { // TODO could check for open session. if ( CurrentDetails.getCreationEvent() != null && CurrentDetails.getGroup() != null && CurrentDetails.getOwner() != null ) { return true; } return false; }
public boolean isReady( ) { // TODO could check for open session. if ( CurrentDetails.getCreationEvent() != null && CurrentDetails.getGroup() != null && CurrentDetails.getOwner() != null ) { return true; } return false; }
3,228,470
public boolean isReady( ) { // TODO could check for open session. if ( CurrentDetails.getCreationEvent() != null && CurrentDetails.getGroup() != null && CurrentDetails.getOwner() != null ) { return true; } return false; }
public boolean isReady( ) { // TODO could check for open session. if ( CurrentDetails.getCreationEvent() != null && CurrentDetails.getGroup() != null && CurrentDetails.getOwner() != null ) { return true; } return false; }
3,228,471
public boolean isSystemGroup( ExperimenterGroup group ) { return group == null || group.getId() == null? false : group.getId().equals( getSystemGroupId() ); }
public boolean isSystemGroup( ExperimenterGroup group ) { return group == null || group.getId() == null? false : group.getId().equals( getSystemGroupId() ); }
3,228,472
public boolean isSystemType( Class<? extends IObject> klass ) { if ( klass == null ) return false; if ( Experimenter.class.isAssignableFrom( klass )) return true; if ( ExperimenterGroup.class.isAssignableFrom( klass )) return true; if ( GroupExperimenterMap.class.isAssignableFrom( klass )) return true; if ( Event...
public boolean isSystemType( Class<? extends IObject> klass ) { if ( klass == null ) return false; if ( Experimenter.class.isAssignableFrom( klass )) return true; if ( ExperimenterGroup.class.isAssignableFrom( klass )) return true; if ( GroupExperimenterMap.class.isAssignableFrom( klass )) return true; if ( Event...
3,228,473
public Collection<Long> leaderOfGroups() { checkReady("leaderOfGroups"); return CurrentDetails.getLeaderOfGroups(); }
public Collection<Long> leaderOfGroups() { checkReady("leaderOfGroups"); return CurrentDetails.getLeaderOfGroups(); }
3,228,474
public void lockMarked( ) { Set<IObject> c = CurrentDetails.getLockCandidates(); for (IObject i : c) { Details d = i.getDetails(); Permissions p = new Permissions( d.getPermissions() ); p.set( Flag.LOCKED ); d.setPermissions( p ); } }
public void lockMarked( ) { Set<IObject> c = CurrentDetails.getLockCandidates(); for (IObject i : c) { Details d = i.getDetails(); Permissions p = new Permissions( d.getPermissions() ); p.set( Flag.LOCKED ); d.setPermissions( p ); } }
3,228,475
public void lockMarked( ) { Set<IObject> c = CurrentDetails.getLockCandidates(); for (IObject i : c) { Details d = i.getDetails(); Permissions p = new Permissions( d.getPermissions() ); p.set( Flag.LOCKED ); d.setPermissions( p ); } }
public void lockMarked( ) { Set<IObject> c = CurrentDetails.getLockCandidates(); for (IObject i : c) { Details d = i.getDetails(); Permissions p = new Permissions( d.getPermissions() ); p.set( Flag.LOCKED ); d.setPermissions( p ); } }
3,228,476
public void lockMarked( ) { Set<IObject> c = CurrentDetails.getLockCandidates(); for (IObject i : c) { Details d = i.getDetails(); Permissions p = new Permissions( d.getPermissions() ); p.set( Flag.LOCKED ); d.setPermissions( p ); } }
public void lockMarked( ) { Set<IObject> c = CurrentDetails.getLockCandidates(); for (IObject i : c) { Details d = i.getDetails(); Permissions p = new Permissions( d.getPermissions() ); p.set( Flag.LOCKED ); d.setPermissions( p ); } }
3,228,477
public void lockMarked( ) { Set<IObject> c = CurrentDetails.getLockCandidates(); for (IObject i : c) { Details d = i.getDetails(); Permissions p = new Permissions( d.getPermissions() ); p.set( Flag.LOCKED ); d.setPermissions( p ); } }
public void lockMarked( ) { Set<IObject> c = CurrentDetails.getLockCandidates(); for (IObject i : c) { Details d = i.getDetails(); Permissions p = new Permissions( d.getPermissions() ); p.set( Flag.LOCKED ); d.setPermissions( p ); } }
3,228,478
public Details managedDetails( final IObject iobj, final Details previousDetails ) { checkReady("managedDetails"); if ( iobj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Note: privileged check moved into the if sta...
public Details managedDetails( final IObject iobj, final Details previousDetails ) { checkReady("managedDetails"); if ( iobj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Note: privileged check moved into the if sta...
3,228,479
public Details managedDetails( final IObject iobj, final Details previousDetails ) { checkReady("managedDetails"); if ( iobj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Note: privileged check moved into the if sta...
public Details managedDetails( final IObject iobj, final Details previousDetails ) { checkReady("managedDetails"); if ( iobj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Note: privileged check moved into the if sta...
3,228,480
public Details managedDetails( final IObject iobj, final Details previousDetails ) { checkReady("managedDetails"); if ( iobj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Note: privileged check moved into the if sta...
public Details managedDetails( final IObject iobj, final Details previousDetails ) { checkReady("managedDetails"); if ( iobj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Note: privileged check moved into the if sta...
3,228,481
public Details managedDetails( final IObject iobj, final Details previousDetails ) { checkReady("managedDetails"); if ( iobj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Note: privileged check moved into the if sta...
public Details managedDetails( final IObject iobj, final Details previousDetails ) { checkReady("managedDetails"); if ( iobj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Note: privileged check moved into the if sta...
3,228,482
public Details managedDetails( final IObject iobj, final Details previousDetails ) { checkReady("managedDetails"); if ( iobj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Note: privileged check moved into the if sta...
public Details managedDetails( final IObject iobj, final Details previousDetails ) { checkReady("managedDetails"); if ( iobj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Note: privileged check moved into the if sta...
3,228,483
protected boolean managedEvent( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if ( ! idEqual( previousDetails.getCreationEvent(), currentDetails.getCreationEvent())) { // n...
protected boolean managedEvent( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if ( ! idEqual( previousDetails.getCreationEvent(), currentDetails.getCreationEvent())) { // n...
3,228,484
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
3,228,485
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
3,228,486
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
3,228,487
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
3,228,488
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
3,228,489
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
3,228,490
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
protected boolean managedGroup( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (! idEqual( ...
3,228,491
protected boolean managedOwner( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (! idEqual( previousDetails.getOwner(), currentDetails.getOwner() )) { if ( locke...
protected boolean managedOwner( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (! idEqual( previousDetails.getOwner(), currentDetails.getOwner() )) { if ( locke...
3,228,492
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
3,228,493
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
3,228,494
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
3,228,495
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
3,228,496
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
3,228,497
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
protected boolean managedPermissions( boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermis...
3,228,498
public void markLockedIfNecessary( IObject iObject, Details trustedDetails ) { if ( iObject == null ) return; Set<IObject> s = new HashSet<IObject>(); if ( trustedDetails != null && trustedDetails.getPermissions().isSet( Flag.LOCKED ) ) s.add( iObject ); IObject[] candidates = em.getLockCandidates( iObject...
public void markLockedIfNecessary( IObject iObject, Details trustedDetails ) { if ( iObject == null ) return; Set<IObject> s = new HashSet<IObject>(); if ( trustedDetails != null && trustedDetails.getPermissions().isSet( Flag.LOCKED ) ) s.add( iObject ); IObject[] candidates = em.getLockCandidates( iObject...
3,228,499
public void markLockedIfNecessary( IObject iObject, Details trustedDetails ) { if ( iObject == null ) return; Set<IObject> s = new HashSet<IObject>(); if ( trustedDetails != null && trustedDetails.getPermissions().isSet( Flag.LOCKED ) ) s.add( iObject ); IObject[] candidates = em.getLockCandidates( iObject...
public void markLockedIfNecessary( IObject iObject, Details trustedDetails ) { if ( iObject == null ) return; Set<IObject> s = new HashSet<IObject>(); if ( trustedDetails != null && trustedDetails.getPermissions().isSet( Flag.LOCKED ) ) s.add( iObject ); IObject[] candidates = em.getLockCandidates( iObject...
3,228,500
public void markLockedIfNecessary( IObject iObject, Details trustedDetails ) { if ( iObject == null ) return; Set<IObject> s = new HashSet<IObject>(); if ( trustedDetails != null && trustedDetails.getPermissions().isSet( Flag.LOCKED ) ) s.add( iObject ); IObject[] candidates = em.getLockCandidates( iObject...
public void markLockedIfNecessary( IObject iObject, Details trustedDetails ) { if ( iObject == null ) return; Set<IObject> s = new HashSet<IObject>(); if ( trustedDetails != null && trustedDetails.getPermissions().isSet( Flag.LOCKED ) ) s.add( iObject ); IObject[] candidates = em.getLockCandidates( iObject...
3,228,501
public Collection<Long> memberOfGroups() { checkReady("memberOfGroups"); return CurrentDetails.getMemberOfGroups(); }
public Collection<Long> memberOfGroups() { checkReady("memberOfGroups"); return CurrentDetails.getMemberOfGroups(); }
3,228,502
public void newEvent( EventType type ) { CurrentDetails.newEvent( type, token ); }
public void newEvent( EventType type ) { CurrentDetails.newEvent( type, token ); }
3,228,503
public void runAsAdmin( AdminAction action ) { Assert.notNull(action); CurrentDetails.setAdmin(true); try { action.runAsAdmin(); } finally { CurrentDetails.setAdmin(false); } }
public void runAsAdmin( AdminAction action ) { Assert.notNull(action); CurrentDetails.setAdmin(true); try { action.runAsAdmin(); } finally { CurrentDetails.setAdmin(false); } }
3,228,504
public void runAsAdmin( AdminAction action ) { Assert.notNull(action); CurrentDetails.setAdmin(true); try { action.runAsAdmin(); } finally { CurrentDetails.setAdmin(false); } }
public void runAsAdmin( AdminAction action ) { Assert.notNull(action); CurrentDetails.setAdmin(true); try { action.runAsAdmin(); } finally { CurrentDetails.setAdmin(false); } }
3,228,505
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
3,228,506
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
3,228,507
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
3,228,508
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
3,228,509
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
3,228,510
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
3,228,511
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
3,228,512
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
public void setCurrentDetails() { LocalAdmin localAdmin = (LocalAdmin) sf.getAdminService(); ITypes iTypes = sf.getTypesService(); IUpdate iUpdate = sf.getUpdateService(); clearCurrentDetails(); if ( ec == null ) throw new InternalException( "EventContext is null in Event...
3,228,513
public void setCurrentEvent( Event event ) { CurrentDetails.setCreationEvent( event ); }
public void setCurrentEvent( Event event ) { CurrentDetails.setCreationEvent( event ); }
3,228,514
public final void setExtendedMetadata( ExtendedMetadata metadata ) { if ( this.em != null ) throw new InternalException( "Cannot reset metadata." ); this.em = metadata; }
public final void setExtendedMetadata( ExtendedMetadata metadata ) { if ( this.em != null ) throw new InternalException( "Cannot reset metadata." ); this.em = metadata; }
3,228,515
public void throwCreationViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( iObject.getClass().getName() +" is a System-type, and may only be " +"created through privileged APIs."); }
public void throwCreationViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( iObject.getClass().getName() +" is a System-type, and may only be " +"created through privileged APIs."); }
3,228,516
public void throwCreationViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( iObject.getClass().getName() +" is a System-type, and may only be " +"created through privileged APIs."); }
public void throwCreationViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( iObject.getClass().getName() +" is a System-type, and may only be " +"created through privileged APIs."); }
3,228,517
public void throwDeleteViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Deleting "+iObject+" not allowed." ); }
public void throwDeleteViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Deleting "+iObject+" not allowed." ); }
3,228,518
public void throwDeleteViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Deleting "+iObject+" not allowed." ); }
public void throwDeleteViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Deleting "+iObject+" not allowed." ); }
3,228,519
public void throwLoadViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Cannot read "+iObject.getClass().getName()); }
public void throwLoadViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Cannot read "+iObject.getClass().getName()); }
3,228,520
public void throwLoadViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Cannot read "+iObject.getClass().getName()); }
public void throwLoadViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Cannot read "+iObject.getClass().getName()); }
3,228,521
public void throwUpdateViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Updating "+iObject+" not allowed." ); }
public void throwUpdateViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Updating "+iObject+" not allowed." ); }
3,228,522
public void throwUpdateViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Updating "+iObject+" not allowed." ); }
public void throwUpdateViolation( IObject iObject ) throws SecurityViolation { Assert.notNull(iObject); throw new SecurityViolation( "Updating "+iObject+" not allowed." ); }
3,228,523
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
3,228,524
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
3,228,525
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
3,228,526
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
3,228,527
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
3,228,528
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) ...
3,228,529
public static boolean isAdmin( ) { return isAdminHolder.get() == null ? false : isAdminHolder.get().booleanValue(); }
public static boolean isAdmin( ) { return isAdminHolder.get() == null ? false : isAdminHolder.get().booleanValue(); }
3,228,530
public static boolean addAllDisabled(String...ids) { Set<String> s = disabledSubsystemsHolder.get( ); if ( s == null ) { s = new HashSet<String>(); disabledSubsystemsHolder.set( s ); } if (ids != null ) { return Collections.addAll(s, ids); } return false; }
public static boolean addAllDisabled(String...ids) { Set<String> s = data.get().disabledSubsystems; if ( s == null ) { s = new HashSet<String>(); disabledSubsystemsHolder.set( s ); } if (ids != null ) { return Collections.addAll(s, ids); } return false; }
3,228,531
public static boolean addAllDisabled(String...ids) { Set<String> s = disabledSubsystemsHolder.get( ); if ( s == null ) { s = new HashSet<String>(); disabledSubsystemsHolder.set( s ); } if (ids != null ) { return Collections.addAll(s, ids); } return false; }
public static boolean addAllDisabled(String...ids) { Set<String> s = disabledSubsystemsHolder.get( ); if ( s == null ) { s = new HashSet<String>(); data.get().disabledSubsystems = s; } if (ids != null ) { return Collections.addAll(s, ids); } return false; }
3,228,532
public static void clearDisabled() { disabledSubsystemsHolder.remove(); }
public static void clearDisabled() { data.get().disabledSubsystems = null; }
3,228,533
public static boolean removeAllDisabled(String...ids) { Set<String> s = disabledSubsystemsHolder.get( ); if ( s != null && ids != null ) { boolean changed = false; for (String string : ids) { changed |= s.remove(string); } } return false; }
public static boolean removeAllDisabled(String...ids) { Set<String> s = data.get().disabledSubsystems; if ( s != null && ids != null ) { boolean changed = false; for (String string : ids) { changed |= s.remove(string); } } return false; }
3,228,534
public static boolean isDisabled(String id) { Set<String> s = disabledSubsystemsHolder.get( ); if ( s == null || id == null || ! s.contains(id)) return false; return true; }
public static boolean isDisabled(String id) { Set<String> s = data.get().disabledSubsystems; if ( s == null || id == null || ! s.contains(id)) return false; return true; }
3,228,535
public static Collection<Long> getLeaderOfGroups( ) { Collection<Long> c = leaderOfGroupsHolder.get(); if ( c == null || c.size() == 0 ) { c = Collections.singletonList(Long.MIN_VALUE); // FIXME hack as well. } return c; }
public static Collection<Long> getLeaderOfGroups( ) { Collection<Long> c = data.get().leaderOfGroups; if ( c == null || c.size() == 0 ) { c = Collections.singletonList(Long.MIN_VALUE); // FIXME hack as well. } return c; }
3,228,536
public static Set<IObject> getLockCandidates() { Set<IObject> s = lockCandidatesHolder.get(); if ( s == null ) return new HashSet<IObject>(); return s; }
public static Set<IObject> getLockCandidates() { Set<IObject> s = data.get().lockCandidates; if ( s == null ) return new HashSet<IObject>(); return s; }
3,228,537
void markLockedIfNecessary( IObject iObject, Details trustedDetails );
void markLockedIfNecessary( IObject iObject, Details trustedDetails );
3,228,538
public IObject[] getLockCandidates( IObject iObject ) { if ( iObject == null ) return new IObject[]{}; Holder h = classNameHolder.get( iObject.getClass().getName() ); return h.getLockCandidates( iObject ); }
public IObject[] getLockCandidates( IObject iObject ) { if ( iObject == null ) return new IObject[]{}; Holder h = classNameHolder.get( iObject.getClass().getName() ); return h.getLockCandidates( iObject ); }
3,228,539
public static void appendLockCandidates( Set<IObject> set ) { Set<IObject> s = lockCandidatesHolder.get(); if ( s == null ) { s = new HashSet<IObject>( ); lockCandidatesHolder.set( s ); } s.addAll( set ); }
public static void appendLockCandidates( Set<IObject> set ) { Set<IObject> s = data.get().lockCandidates; if ( s == null ) { s = new HashSet<IObject>( ); lockCandidatesHolder.set( s ); } s.addAll( set ); }
3,228,540
public static void appendLockCandidates( Set<IObject> set ) { Set<IObject> s = lockCandidatesHolder.get(); if ( s == null ) { s = new HashSet<IObject>( ); lockCandidatesHolder.set( s ); } s.addAll( set ); }
public static void appendLockCandidates( Set<IObject> set ) { Set<IObject> s = lockCandidatesHolder.get(); if ( s == null ) { s = new HashSet<IObject>( ); data.get().lockCandidates = s; } s.addAll( set ); }
3,228,541
public static Collection<Long> getMemberOfGroups( ) { Collection<Long> c = memberOfGroupsHolder.get(); if ( c == null || c.size() == 0 ) { c = Collections.singletonList(Long.MIN_VALUE); // FIXME hack as well. } return c; }
public static Collection<Long> getMemberOfGroups( ) { Collection<Long> c = data.get().memberOfGroups; if ( c == null || c.size() == 0 ) { c = Collections.singletonList(Long.MIN_VALUE); // FIXME hack as well. } return c; }
3,228,542
public static void setAdmin( boolean isAdmin ) { isAdminHolder.set( Boolean.valueOf(isAdmin)); }
public static void setAdmin( boolean isAdmin ) { data.get().isAdmin = isAdmin; }
3,228,543
public static void setMemberOfGroups( Collection<Long> groupIds ) { memberOfGroupsHolder.set( groupIds ); }
public static void setMemberOfGroups( Collection<Long> groupIds ) { data.get().memberOfGroups = groupIds; }
3,228,544
public static void setLeaderOfGroups( Collection<Long> groupIds ) { leaderOfGroupsHolder.set( groupIds ); }
public static void setLeaderOfGroups( Collection<Long> groupIds ) { data.get().leaderOfGroups = groupIds; }
3,228,545
public void accept(TreeImageDisplayVisitor visitor, int algoType) { if (visitor == null) throw new NullPointerException("No visitor."); if (!checkAlgoType(algoType)) throw new IllegalArgumentException("Algorithm not supported."); Iterator i = childrenDisplay.iterator(); ...
public void accept(TreeImageDisplayVisitor visitor) { if (visitor == null) throw new NullPointerException("No visitor."); if (!checkAlgoType(algoType)) throw new IllegalArgumentException("Algorithm not supported."); Iterator i = childrenDisplay.iterator(); TreeImage...
3,228,546
public void accept(TreeImageDisplayVisitor visitor, int algoType) { if (visitor == null) throw new NullPointerException("No visitor."); if (!checkAlgoType(algoType)) throw new IllegalArgumentException("Algorithm not supported."); Iterator i = childrenDisplay.iterator(); ...
public void accept(TreeImageDisplayVisitor visitor, int algoType) { if (visitor == null) throw new NullPointerException("No visitor."); if (!checkAlgoType(algoType)) throw new IllegalArgumentException("Algorithm not supported."); Iterator i = childrenDisplay.iterator(); ...
3,228,547
public void setActiveBrowser(BrowserController browser) { synchronized(browserList) // will this lock? { int prevIndex = browserList.indexOf(browser)+1; browserList.add(0,browser); browserList.remove(prevIndex); } }
public void setActiveBrowser(UIWrapper browser) { synchronized(browserList) // will this lock? { int prevIndex = browserList.indexOf(browser)+1; browserList.add(0,browser); browserList.remove(prevIndex); } }
3,228,550
public static BPalette getZoomPalette(final BrowserModel backingModel, final BrowserTopModel model) { if(backingModel == null || model == null) { return null; } BPalette palette = new BPalette(model,"Zoom"); BIcon toFi...
public static BPalette getZoomPalette(final BrowserModel backingModel, final BrowserTopModel model) { if(backingModel == null || model == null) { return null; } BPalette palette = new BPalette(model,"Zoom"); BIcon toFi...
3,228,551
public static BPalette getZoomPalette(final BrowserModel backingModel, final BrowserTopModel model) { if(backingModel == null || model == null) { return null; } BPalette palette = new BPalette(model,"Zoom"); BIcon toFi...
public static BPalette getZoomPalette(final BrowserModel backingModel, final BrowserTopModel model) { if(backingModel == null || model == null) { return null; } BPalette palette = new BPalette(model,"Zoom"); BIcon toFi...
3,228,552
public static BPalette getZoomPalette(final BrowserModel backingModel, final BrowserTopModel model) { if(backingModel == null || model == null) { return null; } BPalette palette = new BPalette(model,"Zoom"); BIcon toFi...
public static BPalette getZoomPalette(final BrowserModel backingModel, final BrowserTopModel model) { if(backingModel == null || model == null) { return null; } BPalette palette = new BPalette(model,"Zoom"); BIcon toFi...
3,228,553
public static BPalette getZoomPalette(final BrowserModel backingModel, final BrowserTopModel model) { if(backingModel == null || model == null) { return null; } BPalette palette = new BPalette(model,"Zoom"); BIcon toFi...
public static BPalette getZoomPalette(final BrowserModel backingModel, final BrowserTopModel model) { if(backingModel == null || model == null) { return null; } BPalette palette = new BPalette(model,"Zoom"); BIcon toFi...
3,228,554