|
Project Aristotle - ArisID Attribute Services | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openliberty.arisidbeans.IGFObject
public abstract class IGFObject
IGFObject is an abstract class containing get/set and other methods generic to any CARML declaration and this class is inherited by the Bean class generated from a CARML file.
Constructor Summary | |
---|---|
IGFObject(IGFObjectManager mgr,
IDigitalSubject subj)
IGFObject is initialized with IGFObjectManager and DigitalSubject |
Method Summary | |
---|---|
java.util.Map<java.lang.String,IAttributeValue> |
getAllAttributes()
Returns a Map containing all AttributeValue objects. |
java.util.Map<java.lang.String,PredicateValue> |
getAllPredicates()
Returns a Map containing all PredicateValue objects. |
java.util.Map<java.lang.String,java.lang.Object> |
getAllProperties()
Returns a Map containing all AttributeValue, PredicateValue Objects and roles. |
java.util.Map<java.lang.String,java.lang.String> |
getAllRoles()
Returns a Map containing all Roles that subject has |
IAttributeValue |
getAttribute(java.lang.String attribute)
Returns the AttributeValue containing the values for the
requested Attribute as identified by its name identifier. |
java.util.Map<java.lang.String,IAttributeValue> |
getAttributes(java.lang.String[] attributes)
Returns a Map containing requested AttributeValue objects. |
java.lang.String |
getAttributeValue(java.lang.String attribute)
Returns the first attribute value for the requested attribute as identified by its name identifier. |
java.lang.Exception |
getError()
Returns an Exception or null depending on whether there was an error returning the subject. |
PredicateValue |
getPredicate(java.lang.String predicate)
Returns the PredicateValue for the requested predicate as
identified by its name identifier. |
java.util.Map<java.lang.String,PredicateValue> |
getPredicates(java.lang.String[] predicates)
Returns a Map containing requested PredicateValue objects. |
boolean |
getPredicateValue(java.lang.String predicate)
Returns the value for the requested Predicate as identified by its name identifier. |
IPrincipalIdentifier |
getPrincipalIdentifier()
Returns the IPrincipalIdentifier (a subclass of java.security.Principal) for the subject. |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties(java.lang.String[] properties)
Returns a Map containing all requested AttributeValue, PredicateValue Objects and roles. |
java.lang.Object |
getProperty(java.lang.String property)
Returns a property Object requested by it's name identifier |
java.lang.Object |
getPropertyValue(java.lang.String property)
Returns the first value of the property object requested by it's name identifier. |
java.lang.String |
getRole(java.lang.String role)
Returns the requested Role, if exists for the subject, as identified by its name identifier. |
java.util.Map<java.lang.String,java.lang.String> |
getRoles(java.lang.String[] roles)
Returns a Map containing all requested Roles that subject has |
java.lang.String |
getSubjectName()
Returns Subject's key identifier. |
boolean |
hasRole(java.lang.String role)
Returns TRUE if the given role is present for the subject |
boolean |
isError()
Returns whether there was an error returning this subject. |
boolean |
isPredicateTrue(java.lang.String predicateName)
Returns whether a particular predicate condition is true. |
void |
setAttribute(ModPropertyValue attr)
Modifies the attributes value of the Subject in Attribute Authority. |
void |
setAttribute(ModPropertyValue attr,
java.security.Principal user)
Modifies the attributes value of the Subject in Attribute Authority. |
void |
setAttributes(java.util.List<ModPropertyValue> attrs)
Modifies the attributes values of the Subject in Attribute Authority. |
void |
setAttributes(java.util.List<ModPropertyValue> attrs,
java.security.Principal user)
Modifies the attributes values of the Subject in Attribute Authority. |
void |
setAttributeValue(java.lang.String attrName,
java.lang.String attrValue)
Modifies the attributes value of the Subject in Attribute Authority for the supplied attribute name and value It goes through each modify interaction and checks if the supplied attribute can be modified in that interaction. |
void |
setAttributeValue(java.lang.String attrName,
java.lang.String attrValue,
java.security.Principal user)
Modifies the attributes value of the Subject in Attribute Authority for the supplied attribute name and value It goes through each modify interaction and checks if the supplied attribute can be modified in that interaction. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IGFObject(IGFObjectManager mgr, IDigitalSubject subj)
mgr
- IGFObjectManager objectsubj
- DigitalSubjectMethod Detail |
---|
public IPrincipalIdentifier getPrincipalIdentifier()
public java.lang.String getSubjectName()
public java.lang.Exception getError()
public boolean hasRole(java.lang.String role)
role
- The name id of the role to be checked
public boolean isError()
public boolean isPredicateTrue(java.lang.String predicateName)
predicateName
- The name id of a predicate.
public java.util.Map<java.lang.String,IAttributeValue> getAllAttributes()
AttributeValue
objects. Note an
AttributeValue may contain a value or an error.
public java.util.Map<java.lang.String,IAttributeValue> getAttributes(java.lang.String[] attributes)
AttributeValue
objects. Note
an AttributeValue may contain a value or an error.
attributes
- Array of attribute names for the attribute request
public IAttributeValue getAttribute(java.lang.String attribute)
AttributeValue
containing the values for the
requested Attribute as identified by its name identifier.
attribute
- The name identifier for the attribute request.
AttributeValue
containing the values for the requested
attribute name identifier.public java.lang.String getAttributeValue(java.lang.String attribute)
attribute
- The name identifier for the attribute request.
public java.util.Map<java.lang.String,PredicateValue> getAllPredicates()
PredicateValue
objects.
public java.util.Map<java.lang.String,PredicateValue> getPredicates(java.lang.String[] predicates)
PredicateValue
objects.
predicates
- Array of predicate names for the predicate request
public PredicateValue getPredicate(java.lang.String predicate)
PredicateValue
for the requested predicate as
identified by its name identifier.
predicate
- The name identifier for the attribute request.
PredicateValue
for the requested predicate name
identifier.public boolean getPredicateValue(java.lang.String predicate)
predicate
- The name identifier for the predicate.
public java.util.Map<java.lang.String,java.lang.String> getAllRoles()
public java.util.Map<java.lang.String,java.lang.String> getRoles(java.lang.String[] roles)
public java.lang.String getRole(java.lang.String role)
role
- The name identifier for the role request.
public java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
public java.util.Map<java.lang.String,java.lang.Object> getProperties(java.lang.String[] properties)
public java.lang.Object getProperty(java.lang.String property)
public java.lang.Object getPropertyValue(java.lang.String property)
public void setAttributes(java.util.List<ModPropertyValue> attrs, java.security.Principal user) throws ConnectionException, PolicyException, NoSuchSubjectException, SubjectNotUniqueException, IDBeanException, OperationNotSupportedException
attrs
- Array of AttributeValues to be modified in Attribute Authorityuser
- The user context to execute under or NULL to use the
application context.
OperationNotSupportedException
NoSuchSubjectException
- The attribute service could not locate a subject within the
mapped context to authenticate
ConnectionException
- Occurs when there was a connection error trying to connect to
the appropriate attribute authority.
PolicyException
- Occurs when the modify is refused due to policy restrictions
SubjectNotUniqueException
- subject or user cannot be uniquely mapped to a single context
or is not unique within a context
IDBeanException
- General IdentityBean Exceptionpublic void setAttributes(java.util.List<ModPropertyValue> attrs) throws ConnectionException, PolicyException, NoSuchSubjectException, SubjectNotUniqueException, IDBeanException, OperationNotSupportedException
attrs
- Array of AttributeValues to be modified in Attribute Authority
OperationNotSupportedException
NoSuchSubjectException
- The attribute service could not locate a subject within the
mapped context to authenticate
ConnectionException
- Occurs when there was a connection error trying to connect to
the appropriate attribute authority.
PolicyException
- Occurs when the modify is refused due to policy restrictions
SubjectNotUniqueException
- subject or user cannot be uniquely mapped to a single context
or is not unique within a context
IDBeanException
- General IdentityBean Exceptionpublic void setAttribute(ModPropertyValue attr, java.security.Principal user) throws ConnectionException, PolicyException, NoSuchSubjectException, SubjectNotUniqueException, IDBeanException, OperationNotSupportedException
attr
- AttributeValue to be modified in Attribute Authorityuser
- The user context to execute under or NULL to use the
application context.
OperationNotSupportedException
NoSuchSubjectException
- The attribute service could not locate a subject within the
mapped context to authenticate
ConnectionException
- Occurs when there was a connection error trying to connect to
the appropriate attribute authority.
PolicyException
- Occurs when the modify is refused due to policy restrictions
SubjectNotUniqueException
- subject or user cannot be uniquely mapped to a single context
or is not unique within a context
IDBeanException
- General IdentityBean Exceptionpublic void setAttribute(ModPropertyValue attr) throws ConnectionException, PolicyException, NoSuchSubjectException, SubjectNotUniqueException, IDBeanException, OperationNotSupportedException
attr
- AttributeValue to be modified in Attribute Authority
OperationNotSupportedException
NoSuchSubjectException
- The attribute service could not locate a subject within the
mapped context to authenticate
ConnectionException
- Occurs when there was a connection error trying to connect to
the appropriate attribute authority.
PolicyException
- Occurs when the modify is refused due to policy restrictions
SubjectNotUniqueException
- subject or user cannot be uniquely mapped to a single context
or is not unique within a context
IDBeanException
- General IdentityBean Exceptionpublic void setAttributeValue(java.lang.String attrName, java.lang.String attrValue, java.security.Principal user) throws ConnectionException, PolicyException, NoSuchSubjectException, SubjectNotUniqueException, IDBeanException, OperationNotSupportedException
attrName
- Name of the attribute to be modified in Attribute AuthorityattrValue
- Value of the attribute to be set in Attribute Authorityuser
- The user context to execute under or NULL to use the
application context.
OperationNotSupportedException
NoSuchSubjectException
- The attribute service could not locate a subject within the
mapped context to authenticate
ConnectionException
- Occurs when there was a connection error trying to connect to
the appropriate attribute authority.
PolicyException
- Occurs when the modify is refused due to policy restrictions
SubjectNotUniqueException
- subject or user cannot be uniquely mapped to a single context
or is not unique within a context
IDBeanException
- General IdentityBean Exceptionpublic void setAttributeValue(java.lang.String attrName, java.lang.String attrValue) throws ConnectionException, PolicyException, NoSuchSubjectException, SubjectNotUniqueException, IDBeanException, OperationNotSupportedException
attrName
- Name of the attribute to be modified in Attribute AuthorityattrValue
- Value of the attribute to be set in Attribute Authority
OperationNotSupportedException
NoSuchSubjectException
- The attribute service could not locate a subject within the
mapped context to authenticate
ConnectionException
- Occurs when there was a connection error trying to connect to
the appropriate attribute authority.
PolicyException
- Occurs when the modify is refused due to policy restrictions
SubjectNotUniqueException
- subject or user cannot be uniquely mapped to a single context
or is not unique within a context
IDBeanException
- General IdentityBean Exception
|
OpenLiberty.org - Licensed under Apache APL 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |