Methods
getSubjectInfo()
Gets and sets the subject info for the subjects in this access policy.
- Source:
isGroup() → {boolean}
Returns true if the subbject set on this AccessRule is for a group of people.
- Source:
Returns:
- Type
- boolean
parse(accessRuleXML) → {JSON}
Translates the access rule XML DOM into a JSON object to be set on the model.
Parameters:
Name | Type | Description |
---|---|---|
accessRuleXML |
Element | Either an |
- Source:
Returns:
The Access Rule values to be set on this model
- Type
- JSON
serialize() → {string}
Takes the values set on this model's attributes and creates an XML string
to be inserted into a DataONEObject's system metadata access policy.
- Source:
Returns:
The access rule XML string
- Type
- string