JBoss.orgCommunity Documentation
Method | Param | Return | Description |
---|---|---|---|
getRelationshipById(String id) throws Exception | id
| Relationship | Get the relationship by id. You should use get(String) instead. It will be removed at 1.2.x. |
invite(Identity sender, Identity receiver) throws RelationshipStorageException | sender receiver | Relationship | Create a connection invitation between two identities. |
saveRelationship(Relationship relationship) throws RelationshipStorageException | relationship - a relationship | void | Save a relationship. |
confirm(Relationship relationship) throws RelationshipStorageException | relationship - a pending relationship | void | Mark a relationship as confirmed. |
deny(Relationship relationship) throws RelationshipStorageException | relationship - a pending relationship | void | Deny a relationship. |
remove(Relationship relationship) throws RelationshipStorageException | relationship - a pending relationship | void | Remove a relationship. |
ignore(Relationship relationship) throws RelationshipStorageException | relationship - a pending relationship | void | Mark a relationship as ignored |
getPendingRelationships(Identity sender) throws Exception | sender - an identity | List<Relationship> | Get all the pending relationship of sender. |
getPendingRelationships(Identity sender, List<Identity> identities) throws Exception | sender - an identity, identities - a list of identity | List<Relationship> | Get pending relationships of sender that match with identities. |
getRequireValidationRelationships(Identity receiver) throws Exception | receiver - an identity | List<Relationship> | Get list of required validation relationship of receiver. |
getRequireValidationRelationships(Identity receiver, List<Identity> identities) | receiver - an identity, identities - a list of identity | List<Relationship> | Get list of required validation relationship of receiver that match with identities. |
getConfirmedRelationships(Identity identity) | identity - an identity | List<Relationship> | Get list of confirmed relationship of identity. |
getConfirmedRelationships(Identity identity, List<Identity> identities) | identity - an identity, identities - a list of identity | List<Relationship> | Get list of confirmed relationship of identity that match with identities. |
getAllRelationships(Identity identity) | identity - an identity | List<Relationship> | Return all the relationship of a given identity with other identity. |
getAllRelationships(Identity identity, List<Identity> identities) | identity - an identity, identities - a list of identity | List<Relationship> | Return all the relationship of a given identity with other identity in identities. |
getAllRelationships(Identity identity) | identity - an identity | List<Relationship> | Return all the relationship of a given identity with other identity. |
getAllRelationships(Identity identity, Relationship.Type type, List<Identity> identities) | identity - an identity, type - a Relationship.Type, identities - a list of identity <Relationship> | Return all the relationship of a given identity with other identity in identities in type. | |
getRelationship(Identity identity1, Identity identity2) | identity1 and identity2 - identities | Relationship | Get the relationship of two identities. |