@Name(value="userRelationshipActions") @Scope(value=PAGE) @Install(precedence=10) public class UserRelationshipActions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
USER_RELATIONSHIP_CHANGED |
Constructor and Description |
---|
UserRelationshipActions() |
Modifier and Type | Method and Description |
---|---|
boolean |
canViewProfile(DocumentModel userProfile) |
Map<RelationshipKind,Boolean> |
getAllRelationshipsState() |
List<RelationshipKind> |
getKinds() |
List<String> |
getRelationshipsFromSelectedUser() |
List<RelationshipKind> |
getRelationshipsWithSelectedUser() |
List<RelationshipKind> |
getRelationshipsWithUser(String username) |
boolean |
isActiveRelationship(RelationshipKind relationshipKind) |
boolean |
isAlreadyConnected() |
boolean |
isAlreadyConnected(String userName) |
boolean |
isCurrentUser() |
boolean |
isCurrentUser(String userName) |
void |
relationshipCheckboxChanged(ValueChangeEvent event) |
void |
resetUserRelationship() |
void |
resetUserRelationshipStates() |
public static final String USER_RELATIONSHIP_CHANGED
public boolean isAlreadyConnected()
public boolean isAlreadyConnected(String userName)
public boolean isCurrentUser()
public boolean isCurrentUser(String userName)
public List<RelationshipKind> getRelationshipsWithUser(String username)
public List<RelationshipKind> getRelationshipsWithSelectedUser()
public boolean isActiveRelationship(RelationshipKind relationshipKind)
public Map<RelationshipKind,Boolean> getAllRelationshipsState() throws ClientException
ClientException
public List<RelationshipKind> getKinds()
public void relationshipCheckboxChanged(ValueChangeEvent event)
@Observer(value="UserRelationshipChanged") public void resetUserRelationship()
@Observer(value={"UserRelationshipChanged","selectedUserChanged"}) public void resetUserRelationshipStates()
public boolean canViewProfile(DocumentModel userProfile)
Copyright © 2013 Nuxeo SA. All Rights Reserved.