ApplicationDirectoryMapping
instead. Since 2.12.@Deprecated public class DirectoryMapping extends Object implements Serializable, ApplicationDirectoryMapping
Modifier | Constructor and Description |
---|---|
protected |
DirectoryMapping()
Deprecated.
|
|
DirectoryMapping(Application application,
Directory directory,
boolean allowAllToAuthenticate)
Deprecated.
Constructs a new DirectoryMapping.
|
|
DirectoryMapping(Application application,
Directory directory,
boolean allowAllToAuthenticate,
Set<OperationType> allowedOperations)
Deprecated.
Constructs a new DirectoryMapping.
|
|
DirectoryMapping(Long id,
Application application,
Directory directory,
boolean allowAllToAuthenticate)
Deprecated.
Constructs a new DirectoryMapping.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllowedOperation(OperationType operationType)
Deprecated.
Add a new operation that the application is allowed to perform on the directory.
|
void |
addAllowedOperations(OperationType... operationTypes)
Deprecated.
Adds a list of operations that the application is allowed to perform on the directory.
|
void |
addGroupMapping(String groupName)
Deprecated.
Adds a mapping to a new authorised group.
|
boolean |
equals(Object o)
Deprecated.
|
static DirectoryMapping |
fromApplicationDirectoryMapping(Application application,
ApplicationDirectoryMapping applicationDirectoryMapping)
Deprecated.
|
Set<OperationType> |
getAllowedOperations()
Deprecated.
Returns a set of operations that the application is allowed to perform on the directory.
|
Application |
getApplication()
Deprecated.
Returns the mapped application.
|
Set<String> |
getAuthorisedGroupNames()
Deprecated.
Returns a set of mappings to groups that are authorised to authenticate with the application.
|
Set<GroupMapping> |
getAuthorisedGroups()
Deprecated.
|
Directory |
getDirectory()
Deprecated.
Returns the mapped directory.
|
GroupMapping |
getGroupMapping(String groupName)
Deprecated.
Returns a GroupMapping if it exists, otherwise returns null
|
Long |
getId()
Deprecated.
Returns the ID of the directory mapping.
|
int |
hashCode()
Deprecated.
|
boolean |
isAllowAllToAuthenticate()
Deprecated.
Returns true if all the users in the directory are allowed to authenticate with the application.
|
boolean |
isAllowed(OperationType operation)
Deprecated.
Returns true if the application is allowed to perform the specified operation on the directory.
|
boolean |
isAuthorised(String groupName)
Deprecated.
Returns true if the group is an authorised group.
|
void |
removeGroupMapping(String groupName)
Deprecated.
Unauthorises a group.
|
void |
setAllowAllToAuthenticate(boolean allowAllToAuthenticate)
Deprecated.
Sets whether all the users in the directory are allowed to authenticate with the application.
|
void |
setAllowedOperations(Set<OperationType> allowedOperations)
Deprecated.
Sets (i.e.
|
void |
setAuthorisedGroups(Set<GroupMapping> authorisedGroups)
Deprecated.
|
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 directorypublic Long getId()
public Application getApplication()
public Directory getDirectory()
getDirectory
in interface ApplicationDirectoryMapping
public boolean isAllowAllToAuthenticate()
ApplicationDirectoryMapping
isAllowAllToAuthenticate
in interface ApplicationDirectoryMapping
ApplicationDirectoryMapping.getAuthorisedGroupNames()
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<String> getAuthorisedGroupNames()
ApplicationDirectoryMapping
ApplicationDirectoryMapping.isAllowAllToAuthenticate()
returns true.getAuthorisedGroupNames
in interface ApplicationDirectoryMapping
public Set<GroupMapping> getAuthorisedGroups()
public void setAuthorisedGroups(Set<GroupMapping> authorisedGroups)
public boolean isAuthorised(String groupName)
groupName
- name of group@Nullable public GroupMapping getGroupMapping(String groupName)
groupName
- name of the group to findpublic 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()
ApplicationDirectoryMapping
getAllowedOperations
in interface ApplicationDirectoryMapping
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 checkpublic static DirectoryMapping fromApplicationDirectoryMapping(Application application, ApplicationDirectoryMapping applicationDirectoryMapping)
Copyright © 2018 Atlassian. All rights reserved.