Project

General

Profile

Task #7745

Story #7422: Invalid system metadata with some CN system metadata entries

JibX generated classes need additional logic to prohibit empty elements

Added by Robert Waltz about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Robert Waltz
Category:
d1_cn_common
Start date:
2016-04-19
Due date:
% Done:

100%

Story Points:
Sprint:

Description

AccessPolicy should not be serialized as an empty element.

Also, AccessPolicy should not be serialized unless it is valid. Thus if an AccessPolicy contains an element AccessRule, it will not be serialized unless AccessRule has at least one Subject and Permission element.

Replication Policy may not be an empty element.

Replica may not be an empty element.

Associated revisions

Revision 18001
Added by Robert Waltz about 6 years ago

refs #7745

JibX generated classes need additional logic to prohibit empty elements

Revision 18001
Added by Robert Waltz about 6 years ago

refs #7745

JibX generated classes need additional logic to prohibit empty elements

History

#1 Updated by Robert Waltz about 6 years ago

  • Description updated (diff)
  • % Done changed from 0 to 30
  • Status changed from New to In Progress

#2 Updated by Robert Waltz about 6 years ago

  • Description updated (diff)

In order to maintain the current functionality of getAccessPolicy, getReplicationPolicy, and getReplica, I created new JibX specific get-methods in SysemMetadata:
grabAccessPolicyNullIfEmpty
grabReplicationPolicyNullIfEmpty
grabReplicaListNullIfEmpty

Classes AccessPolicy, AccessRule, Node also have JibX specific get-methods implemented as well:
grabAllowListNullIfEmpty
grabSubjectListNullIfEmpty
grabPermissionListNullIfEmpty

each of these JibX specific get-methods are declared in binding_v1.xml to inform JibX of the correct get-methods to use during serialization.

#3 Updated by Robert Waltz about 6 years ago

  • Status changed from In Progress to Testing
  • % Done changed from 30 to 50

#4 Updated by Robert Waltz about 6 years ago

  • translation missing: en.field_remaining_hours set to 0.0
  • % Done changed from 50 to 100
  • Status changed from Testing to Closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)