Class DirectoryMapping
java.lang.Object
com.atlassian.crowd.model.application.DirectoryMapping
- All Implemented Interfaces:
ApplicationDirectoryMapping
,Serializable
@Deprecated
public class DirectoryMapping
extends Object
implements Serializable, ApplicationDirectoryMapping
Deprecated.
Represents a mapping between an application and a directory. Only directories with a mapping to an application are
visible to the application.
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Deprecated.static DirectoryMapping
fromApplicationDirectoryMapping
(Application application, ApplicationDirectoryMapping applicationDirectoryMapping) Deprecated.Deprecated.Returns a set of operations that the application is allowed to perform on the directory.Deprecated.Returns the mapped application.Deprecated.Returns a set of mappings to groups that are authorised to authenticate with the application.Deprecated.Deprecated.Returns the mapped directory.getGroupMapping
(String groupName) Deprecated.Returns a GroupMapping if it exists, otherwise returns nullgetId()
Deprecated.Returns the ID of the directory mapping.int
hashCode()
Deprecated.boolean
Deprecated.Returnstrue
if all the users in the directory are allowed to authenticate with the application.boolean
isAllowed
(OperationType operation) Deprecated.Returnstrue
if the application is allowed to perform the specified operation on the directory.boolean
isAuthorised
(String groupName) Deprecated.Returnstrue
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.
-
Constructor Details
-
DirectoryMapping
protected DirectoryMapping()Deprecated. -
DirectoryMapping
public DirectoryMapping(Long id, Application application, Directory directory, boolean allowAllToAuthenticate) Deprecated.Constructs a new DirectoryMapping. Used by XML import.- Parameters:
id
- ID of the directory mappingapplication
- Application to mapdirectory
- Directory to mapallowAllToAuthenticate
- set totrue
if all users indirectory
are allowed to authenticate
-
DirectoryMapping
public DirectoryMapping(Application application, Directory directory, boolean allowAllToAuthenticate) Deprecated.Constructs a new DirectoryMapping.- Parameters:
application
- application to mapdirectory
- directory to mapallowAllToAuthenticate
- set totrue
if all users indirectory
are allowed to authenticate
-
DirectoryMapping
public DirectoryMapping(Application application, Directory directory, boolean allowAllToAuthenticate, Set<OperationType> allowedOperations) Deprecated.Constructs a new DirectoryMapping.- Parameters:
application
- application to mapdirectory
- directory to mapallowAllToAuthenticate
- set totrue
if all users indirectory
are allowed to authenticateallowedOperations
- the set of operations the application is allowed to perform on the directory
-
-
Method Details
-
getId
Deprecated.Returns the ID of the directory mapping. -
getApplication
Deprecated.Returns the mapped application.- Returns:
- mapped application
-
getDirectory
Deprecated.Returns the mapped directory.- Specified by:
getDirectory
in interfaceApplicationDirectoryMapping
- Returns:
- mapped directory
-
isAllowAllToAuthenticate
public boolean isAllowAllToAuthenticate()Deprecated.Description copied from interface:ApplicationDirectoryMapping
Returnstrue
if all the users in the directory are allowed to authenticate with the application. If the value is false, then the user is required to be in an authorised group.- Specified by:
isAllowAllToAuthenticate
in interfaceApplicationDirectoryMapping
- Returns:
true
if all the users in the directory are allowed to authenticate with the application- See Also:
-
setAllowAllToAuthenticate
public void setAllowAllToAuthenticate(boolean allowAllToAuthenticate) Deprecated.Sets whether all the users in the directory are allowed to authenticate with the application.- Parameters:
allowAllToAuthenticate
- set totrue
if all the users in the directory are allowed to authenticate with the application.
-
getAuthorisedGroupNames
Deprecated.Description copied from interface:ApplicationDirectoryMapping
Returns a set of mappings to groups that are authorised to authenticate with the application. This set is not used ifApplicationDirectoryMapping.isAllowAllToAuthenticate()
returnstrue
.- Specified by:
getAuthorisedGroupNames
in interfaceApplicationDirectoryMapping
- Returns:
- set of mappings to groups that are authorised to authenticate with the application
-
getAuthorisedGroups
Deprecated. -
setAuthorisedGroups
Deprecated. -
isAuthorised
Deprecated.Returnstrue
if the group is an authorised group. i.e. it is allowed- Parameters:
groupName
- name of group- Returns:
true
if the group is an authorised group.
-
getGroupMapping
Deprecated.Returns a GroupMapping if it exists, otherwise returns null- Parameters:
groupName
- name of the group to find- Returns:
- the GroupMapping or null
-
addGroupMapping
Deprecated.Adds a mapping to a new authorised group.- Parameters:
groupName
- name of new authorised group
-
removeGroupMapping
Deprecated.Unauthorises a group.- Parameters:
groupName
- name of group to unauthorise
-
addAllowedOperations
Deprecated.Adds a list of operations that the application is allowed to perform on the directory.- Parameters:
operationTypes
- list of operations that the application is allowed to perform on the directory
-
addAllowedOperation
Deprecated.Add a new operation that the application is allowed to perform on the directory.- Parameters:
operationType
- new operation that the application is allowed to perform on the directory
-
getAllowedOperations
Deprecated.Description copied from interface:ApplicationDirectoryMapping
Returns a set of operations that the application is allowed to perform on the directory.- Specified by:
getAllowedOperations
in interfaceApplicationDirectoryMapping
- Returns:
- set of operations that the application is allowed to perform on the directory
-
setAllowedOperations
Deprecated.Sets (i.e. replaces) the list of operations that the application is allowed to perform on the directory.- Parameters:
allowedOperations
- set of operations that the application is allowed to perform on the directory
-
isAllowed
Deprecated.Returnstrue
if the application is allowed to perform the specified operation on the directory.- Parameters:
operation
- operation to check- Returns:
true
if the application is allowed to perform the specified operation on the directory
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
fromApplicationDirectoryMapping
public static DirectoryMapping fromApplicationDirectoryMapping(Application application, ApplicationDirectoryMapping applicationDirectoryMapping) Deprecated.
-
ApplicationDirectoryMapping
instead. Since 2.12.