|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.model.application.DirectoryMapping
public class DirectoryMapping
Represents a mapping between an application and a directory. Only directories with a mapping to an application are visible to the application.
Constructor Summary | |
---|---|
protected |
DirectoryMapping()
|
|
DirectoryMapping(Application application,
Directory directory,
boolean allowAllToAuthenticate)
Constructs a new DirectoryMapping. |
|
DirectoryMapping(Application application,
Directory directory,
boolean allowAllToAuthenticate,
Set<OperationType> allowedOperations)
Constructs a new DirectoryMapping. |
|
DirectoryMapping(Long id,
Application application,
Directory directory,
boolean allowAllToAuthenticate)
Constructs a new DirectoryMapping. |
Method Summary | |
---|---|
void |
addAllowedOperation(OperationType operationType)
Add a new operation that the application is allowed to perform on the directory. |
void |
addAllowedOperations(OperationType... operationTypes)
Adds a list of operations that the application is allowed to perform on the directory. |
void |
addGroupMapping(String groupName)
Adds a mapping to a new authorised group. |
boolean |
equals(Object o)
|
Set<OperationType> |
getAllowedOperations()
Returns a set of operations that the application is allowed to perform on the directory. |
Application |
getApplication()
Returns the mapped application. |
Set<GroupMapping> |
getAuthorisedGroups()
Returns a set of mappings to groups that are authorised to authenticate with the application. |
Directory |
getDirectory()
Returns the mapped directory. |
Long |
getId()
Returns the ID of the directory mapping. |
int |
hashCode()
|
boolean |
isAllowAllToAuthenticate()
Returns true if all the users in the directory are allowed to authenticate with the application. |
boolean |
isAllowed(OperationType operation)
Returns true if the application is allowed to perform the specified operation on the directory. |
boolean |
isAuthorised(String groupName)
Returns true if the group is an authorised group. |
void |
removeGroupMapping(String groupName)
Unauthorises a group. |
void |
setAllowAllToAuthenticate(boolean allowAllToAuthenticate)
Sets whether all the users in the directory are allowed to authenticate with the application. |
void |
setAllowedOperations(Set<OperationType> allowedOperations)
Sets (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DirectoryMapping()
public DirectoryMapping(Long id, Application application, Directory directory, boolean allowAllToAuthenticate)
id
- ID of the directory mappingapplication
- Application to mapdirectory
- Directory to mapallowAllToAuthenticate
- set to true if all users in directory
are allowed to authenticatepublic DirectoryMapping(Application application, Directory directory, boolean allowAllToAuthenticate)
application
- application to mapdirectory
- directory to mapallowAllToAuthenticate
- set to true if all users in directory
are allowed to authenticatepublic DirectoryMapping(Application application, Directory directory, boolean allowAllToAuthenticate, Set<OperationType> allowedOperations)
application
- application to mapdirectory
- directory to mapallowAllToAuthenticate
- set to true if all users in directory
are allowed to authenticateallowedOperations
- the set of operations the application is allowed to perform on the directoryMethod Detail |
---|
public Long getId()
public Application getApplication()
public Directory getDirectory()
public boolean isAllowAllToAuthenticate()
#getAuthorisedGroups()}
public void setAllowAllToAuthenticate(boolean allowAllToAuthenticate)
allowAllToAuthenticate
- set to true if all the users in the directory are allowed to authenticate
with the application.public Set<GroupMapping> getAuthorisedGroups()
isAllowAllToAuthenticate()
returns true.
public boolean isAuthorised(String groupName)
groupName
- name of group
public void addGroupMapping(String groupName)
groupName
- name of new authorised grouppublic void removeGroupMapping(String groupName)
groupName
- name of group to unauthorisepublic void addAllowedOperations(OperationType... operationTypes)
operationTypes
- list of operations that the application is allowed to perform on the directorypublic void addAllowedOperation(OperationType operationType)
operationType
- new operation that the application is allowed to perform on the directorypublic Set<OperationType> getAllowedOperations()
public void setAllowedOperations(Set<OperationType> allowedOperations)
allowedOperations
- set of operations that the application is allowed to perform on the directorypublic boolean isAllowed(OperationType operation)
operation
- operation to check
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |