Revision 6744
Added by ben leinfelder over 12 years ago
DocInfoHandler.java | ||
---|---|---|
50 | 50 |
private String _accessPermOrder; |
51 | 51 |
private String _accessFileId; |
52 | 52 |
private String _subTreeId; |
53 |
private String _docId;
|
|
53 |
private String _guid;
|
|
54 | 54 |
private boolean _inPrincipal = false; |
55 | 55 |
private boolean _inPermission = false; |
56 | 56 |
private boolean _inAllow = false; |
... | ... | |
64 | 64 |
public DocInfoHandler() { |
65 | 65 |
} |
66 | 66 |
|
67 |
public DocInfoHandler(String docId) {
|
|
68 |
_docId = docId;
|
|
67 |
public DocInfoHandler(String guid) {
|
|
68 |
_guid = guid;
|
|
69 | 69 |
} |
70 | 70 |
|
71 | 71 |
/** |
... | ... | |
95 | 95 |
// new principal means new DAO for storing it |
96 | 96 |
_inPrincipal = true; |
97 | 97 |
_currentAccessDAO = new XMLAccessDAO(); |
98 |
_currentAccessDAO.setDocId(_docId);
|
|
98 |
_currentAccessDAO.setGuid(_guid);
|
|
99 | 99 |
_currentAccessDAO.setPermOrder(_accessPermOrder); |
100 | 100 |
_currentAccessDAO.setAccessFileId(_accessFileId); |
101 | 101 |
_currentAccessDAO.setSubTreeId(_subTreeId); |
102 |
_currentAccessDAO.setDocId(_docId); |
|
103 | 102 |
if (_inAllow) { |
104 | 103 |
_currentAccessDAO.setPermType(AccessControlInterface.ALLOW); |
105 | 104 |
} |
Also available in: Unified diff
refactor Metacat access handling to be on a per-revision basis so that it more closely aligns with the DataONE approach
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5560