Modifier and Type | Method and Description |
---|---|
Subject |
CNIdentity.createGroup(Group group) |
Subject |
CNIdentity.createGroup(Session session,
Group group)
Deprecated.
|
Subject |
CNIdentity.registerAccount(Person person) |
Subject |
CNIdentity.registerAccount(Session session,
Person person)
Deprecated.
|
Subject |
CNIdentity.updateAccount(Person person) |
Subject |
CNIdentity.updateAccount(Session session,
Person person)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CNIdentity.confirmMapIdentity(Session session,
Subject subject)
Deprecated.
|
boolean |
CNIdentity.confirmMapIdentity(Subject subject) |
boolean |
CNIdentity.denyMapIdentity(Session session,
Subject subject)
Deprecated.
|
boolean |
CNIdentity.denyMapIdentity(Subject subject) |
SubjectInfo |
CNIdentity.getPendingMapIdentity(Session session,
Subject subject)
Deprecated.
|
SubjectInfo |
CNIdentity.getPendingMapIdentity(Subject subject) |
SubjectInfo |
CNIdentity.getSubjectInfo(Session session,
Subject subject)
Deprecated.
|
SubjectInfo |
CNIdentity.getSubjectInfo(Subject subject) |
boolean |
CNCore.hasReservation(Session session,
Subject subject,
Identifier pid)
Deprecated.
|
boolean |
CNCore.hasReservation(Subject subject,
Identifier pid) |
boolean |
CNReplication.isNodeAuthorized(Session originatingNodeSession,
Subject targetNodeSubject,
Identifier pid)
Deprecated.
|
boolean |
CNReplication.isNodeAuthorized(Subject targetNodeSubject,
Identifier pid) |
boolean |
CNIdentity.mapIdentity(Session session,
Subject primarySubject,
Subject secondarySubject)
Deprecated.
|
boolean |
CNIdentity.mapIdentity(Subject primarySubject,
Subject secondarySubject) |
boolean |
CNIdentity.removeMapIdentity(Session session,
Subject subject)
Deprecated.
|
boolean |
CNIdentity.removeMapIdentity(Subject subject) |
boolean |
CNIdentity.requestMapIdentity(Session session,
Subject subject)
Deprecated.
|
boolean |
CNIdentity.requestMapIdentity(Subject subject) |
Identifier |
CNAuthorization.setRightsHolder(Identifier pid,
Subject userId,
long serialVersion) |
Identifier |
CNAuthorization.setRightsHolder(Session session,
Identifier pid,
Subject userId,
long serialVersion)
Deprecated.
|
boolean |
CNIdentity.verifyAccount(Session session,
Subject subject)
Deprecated.
|
boolean |
CNIdentity.verifyAccount(Subject subject) |
Modifier and Type | Method and Description |
---|---|
Subject |
CNIdentity.createGroup(Session session,
Group group) |
Subject |
CNIdentity.registerAccount(Session session,
Person person) |
Subject |
CNIdentity.updateAccount(Session session,
Person person) |
Modifier and Type | Method and Description |
---|---|
boolean |
CNIdentity.confirmMapIdentity(Session session,
Subject subject) |
boolean |
CNIdentity.denyMapIdentity(Session session,
Subject subject) |
SubjectInfo |
CNIdentity.getPendingMapIdentity(Session session,
Subject subject) |
SubjectInfo |
CNIdentity.getSubjectInfo(Session session,
Subject subject) |
boolean |
CNCore.hasReservation(Session session,
Subject subject,
Identifier id) |
boolean |
CNReplication.isNodeAuthorized(Session session,
Subject targetNodeSubject,
Identifier pid) |
boolean |
CNIdentity.mapIdentity(Session session,
Subject primarySubject,
Subject secondarySubject) |
boolean |
CNIdentity.removeMapIdentity(Session session,
Subject subject) |
boolean |
CNIdentity.requestMapIdentity(Session session,
Subject subject) |
Identifier |
CNAuthorization.setRightsHolder(Session session,
Identifier id,
Subject userId,
long serialVersion)
Deprecated.
use CNCore.updateSystemMetadata()
|
boolean |
CNIdentity.verifyAccount(Session session,
Subject subject) |
Modifier and Type | Field and Description |
---|---|
protected Subject |
SystemMetadata.rightsHolder |
protected Subject |
Person.subject |
protected Subject |
LogEntry.subject |
protected Subject |
Session.subject |
protected Subject |
Group.subject |
protected Subject |
SystemMetadata.submitter |
Modifier and Type | Field and Description |
---|---|
protected List<Subject> |
Node.contactSubject |
protected List<Subject> |
Person.equivalentIdentity |
protected List<Subject> |
Group.hasMember |
protected List<Subject> |
Person.isMemberOf |
protected List<Subject> |
Group.rightsHolder |
protected List<Subject> |
Node.subject |
protected List<Subject> |
AccessRule.subject |
Modifier and Type | Method and Description |
---|---|
static Subject |
TypeFactory.buildSubject(String value)
Factory method for creating a Subject.
|
static Subject |
TypeFactory.cloneSubject(Subject orig)
Factory method for cloning a Subject from another, such that they
do not share any references for mutable properties.
|
Subject |
ObjectFactory.createSubject()
Create an instance of
Subject |
Subject |
Node.getContactSubject(int index)
Get 'contactSubject' element item by position.
|
Subject |
Person.getEquivalentIdentity(int index)
Get 'equivalentIdentity' element item by position.
|
Subject |
Group.getHasMember(int index)
Get 'hasMember' element item by position.
|
Subject |
Person.getIsMemberOf(int index)
Get 'isMemberOf' element item by position.
|
Subject |
SystemMetadata.getRightsHolder()
Get the 'rightsHolder' element value.
|
Subject |
Group.getRightsHolder(int index)
Get 'rightsHolder' element item by position.
|
Subject |
Person.getSubject()
Get the 'subject' element value.
|
Subject |
LogEntry.getSubject()
Get the 'subject' element value.
|
Subject |
Session.getSubject()
Get the 'subject' element value.
|
Subject |
Group.getSubject()
Get the 'subject' element value.
|
Subject |
SubjectList.getSubject(int index)
Get 'subject' element item by position.
|
Subject |
Node.getSubject(int index)
Get 'subject' element item by position.
|
Subject |
AccessRule.getSubject(int index)
Get 'subject' element item by position.
|
Subject |
SystemMetadata.getSubmitter()
Get the 'submitter' element value.
|
Modifier and Type | Method and Description |
---|---|
JAXBElement<Subject> |
ObjectFactory.createSubject(Subject value)
|
List<Subject> |
Node.getContactSubjectList()
Get the list of 'contactSubject' element items.
|
List<Subject> |
Person.getEquivalentIdentityList()
Get the list of 'equivalentIdentity' element items.
|
List<Subject> |
Group.getHasMemberList()
Get the list of 'hasMember' element items.
|
List<Subject> |
Person.getIsMemberOfList()
Get the list of 'isMemberOf' element items.
|
List<Subject> |
Group.getRightsHolderList()
Get the list of 'rightsHolder' element items.
|
List<Subject> |
SubjectList.getSubjectList()
Get the list of 'subject' element items.
|
List<Subject> |
Node.getSubjectList()
Get the list of 'subject' element items.
|
List<Subject> |
AccessRule.getSubjectList()
Get the list of 'subject' element items.
|
List<Subject> |
Node.grabSubjectListNullIfEmpty() |
List<Subject> |
AccessRule.grabSubjectListNullIfEmpty() |
Modifier and Type | Method and Description |
---|---|
void |
Node.addContactSubject(Subject item)
Add a 'contactSubject' element item.
|
void |
Person.addEquivalentIdentity(Subject item)
Add a 'equivalentIdentity' element item.
|
void |
Group.addHasMember(Subject item)
Add a 'hasMember' element item.
|
void |
Person.addIsMemberOf(Subject item)
Add a 'isMemberOf' element item.
|
void |
Group.addRightsHolder(Subject item)
Add a 'rightsHolder' element item.
|
void |
SubjectList.addSubject(Subject item)
Add a 'subject' element item.
|
void |
Node.addSubject(Subject item)
Add a 'subject' element item.
|
void |
AccessRule.addSubject(Subject item)
Add a 'subject' element item.
|
static SystemMetadata |
TypeFactory.buildMinimalSystemMetadata(Identifier id,
InputStream data,
String checksumAlgorithm,
ObjectFormatIdentifier formatId,
Subject submitterRightsHolder)
Builds a minimal and 'typical' SystemMetadata object containing all of the required fields needed
for submission to DataONE at time of create.
|
static Subject |
TypeFactory.cloneSubject(Subject orig)
Factory method for cloning a Subject from another, such that they
do not share any references for mutable properties.
|
JAXBElement<Subject> |
ObjectFactory.createSubject(Subject value)
|
void |
SystemMetadata.setRightsHolder(Subject rightsHolder)
Set the 'rightsHolder' element value.
|
void |
Person.setSubject(Subject subject)
Set the 'subject' element value.
|
void |
LogEntry.setSubject(Subject subject)
Set the 'subject' element value.
|
void |
Session.setSubject(Subject subject)
Set the 'subject' element value.
|
void |
Group.setSubject(Subject subject)
Set the 'subject' element value.
|
void |
SystemMetadata.setSubmitter(Subject submitter)
Set the 'submitter' element value.
|
Modifier and Type | Method and Description |
---|---|
void |
Node.setContactSubjectList(List<Subject> list)
Set the list of 'contactSubject' element items.
|
void |
Person.setEquivalentIdentityList(List<Subject> list)
Set the list of 'equivalentIdentity' element items.
|
void |
Group.setHasMemberList(List<Subject> list)
Set the list of 'hasMember' element items.
|
void |
Person.setIsMemberOfList(List<Subject> list)
Set the list of 'isMemberOf' element items.
|
void |
Group.setRightsHolderList(List<Subject> list)
Set the list of 'rightsHolder' element items.
|
void |
SubjectList.setSubjectList(List<Subject> list)
Set the list of 'subject' element items.
|
void |
Node.setSubjectList(List<Subject> list)
Set the list of 'subject' element items.
|
void |
AccessRule.setSubjectList(List<Subject> list)
Set the list of 'subject' element items.
|
Modifier and Type | Method and Description |
---|---|
static Set<Subject> |
AuthUtils.authorizedClientSubjects(Session session)
Derived from Metacat implementation
Creates a set of subjects represented in the session object, parsing
both the subject of the session and the subjectInfo.
|
static List<Subject> |
AccessUtil.createSubjectList(String[] subjectStrings)
creates a java-List of Subject objects from the given String array.
|
static Set<Subject> |
AuthUtils.findEquivalentSubjects(SubjectInfo subjectInfo,
Subject targetSubject)
Look for the equivalent authorization subjects for a given subject which can be either a person or a group.
|
static HashMap<Subject,Set<Permission>> |
AccessUtil.getPermissionMap(AccessPolicy policy) |
Modifier and Type | Method and Description |
---|---|
static AccessRule |
AccessUtil.createAccessRule(Subject[] subjects,
Permission[] permissions)
creates an AccessRule containing the items specified in the parameters.
|
static Set<Subject> |
AuthUtils.findEquivalentSubjects(SubjectInfo subjectInfo,
Subject targetSubject)
Look for the equivalent authorization subjects for a given subject which can be either a person or a group.
|
static void |
AuthUtils.findPersonsSubjects(Set<Subject> foundSubjects,
SubjectInfo subjectInfo,
Subject targetSubject)
A recursive method to traverse the equivalent-identity relationships
and to handle the transitive nature of group membership and verified status.
|
static boolean |
ServiceMethodRestrictionUtil.isMethodAllowed(Subject subject,
List<Node> nodeList,
String serviceName,
String methodName)
Interprets the CN's ServiceMethodRestriction for a given Subject+serviceName+methodName
|
static Set<Node> |
NodelistUtil.selectNode(NodeList nodeList,
Subject subject)
Finds the nodes in the NodeList that contain the provided Subject.
|
Modifier and Type | Method and Description |
---|---|
static AccessPolicy |
AccessUtil.buildAccessPolicy(HashMap<Subject,Set<Permission>> pmap)
creates an AccessPolicy instance where each contained AccessRule consists of
one subject and that subject's permissions.
|
static void |
AuthUtils.findPersonsSubjects(Set<Subject> foundSubjects,
SubjectInfo subjectInfo,
Subject targetSubject)
A recursive method to traverse the equivalent-identity relationships
and to handle the transitive nature of group membership and verified status.
|
static boolean |
AuthUtils.isAuthorized(Collection<Subject> subjectSet,
Permission requestedPerm,
SystemMetadata systemMetadata)
Queries the systemMetadata to see if one of the given subjects
is allowed the specified permission against the given systemMetadata
|
Modifier and Type | Field and Description |
---|---|
protected Subject |
LogEntry.subject |
Modifier and Type | Method and Description |
---|---|
Subject |
LogEntry.getSubject()
Get the 'subject' element value.
|
Modifier and Type | Method and Description |
---|---|
static SystemMetadata |
TypeFactory.buildMinimalSystemMetadata(Identifier id,
InputStream data,
String checksumAlgorithm,
ObjectFormatIdentifier formatId,
Subject submitterRightsHolder)
Builds a minimal and 'typical' SystemMetadata object containing all of the required fields needed
for submission to DataONE at time of create.
|
void |
LogEntry.setSubject(Subject subject)
Set the 'subject' element value.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
ServiceMethodRestrictionUtil.isMethodAllowed(Subject subject,
List<Node> nodeList,
String serviceName,
String methodName)
Interprets the CN's ServiceMethodRestriction for a given Subject+serviceName+methodName
|
static Set<Node> |
NodelistUtil.selectNode(NodeList nodeList,
Subject subject)
Finds the nodes in the NodeList that contain the provided Subject.
|
Copyright © 2018. All Rights Reserved.