@Test public void testEquals() { UIRepositoryObjectAcl uiAcl1 = new UIRepositoryObjectAcl( createObjectAce() ); UIRepositoryObjectAcl uiAcl2 = new UIRepositoryObjectAcl( new RepositoryObjectAce( new RepositoryObjectRecipient( RECIPIENT1, ObjectRecipient.Type.USER ), EnumSet.of( RepositoryFilePermission.ALL ) ) ); assertTrue( uiAcl1.equals( uiAcl2 ) ); uiAcl2 = new UIRepositoryObjectAcl( new RepositoryObjectAce( new RepositoryObjectRecipient( RECIPIENT1, ObjectRecipient.Type.SYSTEM_ROLE ), EnumSet.of( RepositoryFilePermission.ALL ) ) ); assertFalse( uiAcl1.equals( uiAcl2 ) ); uiAcl2 = new UIRepositoryObjectAcl( new RepositoryObjectAce( new RepositoryObjectRecipient( RECIPIENT1, ObjectRecipient.Type.USER ), EnumSet.of( RepositoryFilePermission.READ, RepositoryFilePermission.ALL ) ) ); assertFalse( uiAcl1.equals( uiAcl2 ) ); uiAcl2 = new UIRepositoryObjectAcl( new RepositoryObjectAce( new RepositoryObjectRecipient( RECIPIENT2, ObjectRecipient.Type.USER ), EnumSet.of( RepositoryFilePermission.ALL ) ) ); assertFalse( uiAcl1.equals( uiAcl2 ) ); assertFalse( uiAcl1.equals( null ) ); }
@Override public boolean equals( Object obj ) { if ( obj == null ) { return false; } UIRepositoryObjectAcl acl = (UIRepositoryObjectAcl) obj; return ace.equals( acl.getAce() ); }
UIRepositoryObjectAcl extends XulEventSourceAdapter implements java.io.Serializable { @Override public boolean equals( Object obj ) { if ( obj == null ) { return false; } UIRepositoryObjectAcl acl = (UIRepositoryObjectAcl) obj; return ace.equals( acl.getAce() ); } }
UIRepositoryObjectAcl extends XulEventSourceAdapter implements java.io.Serializable { @Override public boolean equals( Object obj ) { if ( obj == null ) { return false; } UIRepositoryObjectAcl acl = (UIRepositoryObjectAcl) obj; return ace.equals( acl.getAce() ); } UIRepositoryObjectAcl( ObjectAce ace ); }
UIRepositoryObjectAcl extends XulEventSourceAdapter implements java.io.Serializable { @Override public boolean equals( Object obj ) { if ( obj == null ) { return false; } UIRepositoryObjectAcl acl = (UIRepositoryObjectAcl) obj; return ace.equals( acl.getAce() ); } UIRepositoryObjectAcl( ObjectAce ace ); @Override boolean equals( Object obj ); ObjectAce getAce(); String getRecipientName(); void setRecipientName( String recipientName ); ObjectRecipient.Type getRecipientType(); void setRecipientType( ObjectRecipient.Type recipientType ); EnumSet<RepositoryFilePermission> getPermissionSet(); void setPermissionSet( RepositoryFilePermission first, RepositoryFilePermission... rest ); void setPermissionSet( EnumSet<RepositoryFilePermission> permissionSet ); void addPermission( RepositoryFilePermission permissionToAdd ); void removePermission( RepositoryFilePermission permissionToRemove ); @Override String toString(); }
UIRepositoryObjectAcl extends XulEventSourceAdapter implements java.io.Serializable { @Override public boolean equals( Object obj ) { if ( obj == null ) { return false; } UIRepositoryObjectAcl acl = (UIRepositoryObjectAcl) obj; return ace.equals( acl.getAce() ); } UIRepositoryObjectAcl( ObjectAce ace ); @Override boolean equals( Object obj ); ObjectAce getAce(); String getRecipientName(); void setRecipientName( String recipientName ); ObjectRecipient.Type getRecipientType(); void setRecipientType( ObjectRecipient.Type recipientType ); EnumSet<RepositoryFilePermission> getPermissionSet(); void setPermissionSet( RepositoryFilePermission first, RepositoryFilePermission... rest ); void setPermissionSet( EnumSet<RepositoryFilePermission> permissionSet ); void addPermission( RepositoryFilePermission permissionToAdd ); void removePermission( RepositoryFilePermission permissionToRemove ); @Override String toString();  }