public void writeExternal(ObjectOutput out) throws IOException { out.writeLong( id ); if( text == null ) { text = ""; } out.writeUTF( text ); // There are no guarantees that addedBy is not null = potential bug addedBy.writeExternal( out ); long addedAtTime = 0; if( addedAt != null ) { addedAtTime = addedAt.getTime(); } out.writeLong( addedAtTime ); }
public void writeExternal(ObjectOutput out) throws IOException { out.writeLong( id ); if( name == null ) { name = ""; } out.writeUTF( name ); out.writeUTF( accessType.toString() ); if( contentType == null ) { contentType = ""; } out.writeUTF( contentType ); // There are no guarantees that attachedBy is not null == potential bug attachedBy.writeExternal( out ); long attachedAtTime = 0; if( attachedAt != null ) { attachedAtTime = attachedAt.getTime(); } out.writeLong( attachedAtTime ); out.writeInt( size ); out.writeLong( attachmentContentId ); }
public void writeExternal(ObjectOutput out) throws IOException { if ( taskInitiator != null ) { out.writeBoolean( true ); taskInitiator.writeExternal( out ); } else { out.writeBoolean( false ); } CollectionUtils.writeOrganizationalEntityList( potentialOwners, out ); CollectionUtils.writeOrganizationalEntityList( excludedOwners, out ); CollectionUtils.writeOrganizationalEntityList( taskStakeholders, out ); CollectionUtils.writeOrganizationalEntityList( businessAdministrators, out ); CollectionUtils.writeOrganizationalEntityList( recipients, out ); }
public void writeExternal(ObjectOutput out) throws IOException { out.writeLong( id ); if( text == null ) { text = ""; } out.writeUTF( text ); // There are no guarantees that addedBy is not null = potential bug addedBy.writeExternal( out ); long addedAtTime = 0; if( addedAt != null ) { addedAtTime = addedAt.getTime(); } out.writeLong( addedAtTime ); }
public void writeExternal(ObjectOutput out) throws IOException { out.writeLong( id ); if( name == null ) { name = ""; } out.writeUTF( name ); out.writeUTF( accessType.toString() ); if( contentType == null ) { contentType = ""; } out.writeUTF( contentType ); // There are no guarantees that attachedBy is not null == potential bug attachedBy.writeExternal( out ); long attachedAtTime = 0; if( attachedAt != null ) { attachedAtTime = attachedAt.getTime(); } out.writeLong( attachedAtTime ); out.writeInt( size ); out.writeLong( attachmentContentId ); }
public void writeExternal(ObjectOutput out) throws IOException { if ( taskInitiator != null ) { out.writeBoolean( true ); taskInitiator.writeExternal( out ); } else { out.writeBoolean( false ); } CollectionUtils.writeOrganizationalEntityList( potentialOwners, out ); CollectionUtils.writeOrganizationalEntityList( excludedOwners, out ); CollectionUtils.writeOrganizationalEntityList( taskStakeholders, out ); CollectionUtils.writeOrganizationalEntityList( businessAdministrators, out ); CollectionUtils.writeOrganizationalEntityList( recipients, out ); }