Application
or ImmutableApplication
instead. Since v2.12.@Deprecated public class ApplicationImpl extends InternalEntity implements Application
active, createdDate, id, name, updatedDate
Modifier | Constructor and Description |
---|---|
protected |
ApplicationImpl()
Deprecated.
|
|
ApplicationImpl(InternalEntityTemplate template)
Deprecated.
Used for importing via XML migration.
|
protected |
ApplicationImpl(String name,
long id,
ApplicationType type,
String description,
PasswordCredential credential,
boolean active,
Map<String,String> attributes,
List<DirectoryMapping> directoryMappings,
Set<RemoteAddress> remoteAddresses,
Set<Webhook> webhooks,
Date createdDate,
Date updatedDate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addDirectoryMapping(Directory directory,
boolean allowAllToAuthenticate,
OperationType... operationTypes)
Deprecated.
|
void |
addGroupMapping(long directoryId,
String groupName)
Deprecated.
|
void |
addRemoteAddress(String remoteAddress)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
ApplicationDirectoryMapping |
getApplicationDirectoryMapping(long directoryId)
Deprecated.
Returns a directory mapping of the directory specified by directory id.
|
List<ApplicationDirectoryMapping> |
getApplicationDirectoryMappings()
Deprecated.
Returns the list of directory mappings ranked by directory priority as in perspective of the application.
|
Map<String,String> |
getAttributes()
Deprecated.
Returns the attributes of the application.
|
PasswordCredential |
getCredential()
Deprecated.
Returns the application password.
|
String |
getDescription()
Deprecated.
Returns the description of the application.
|
DirectoryMapping |
getDirectoryMapping(long directoryId)
Deprecated.
Returns a directory mapping of the directory specified by directory id.
|
List<DirectoryMapping> |
getDirectoryMappings()
Deprecated.
Returns the list of directory mappings ranked by directory priority as in perspective of the application.
|
Set<String> |
getKeys()
Deprecated.
Gets all the keys of the attributes.
|
String |
getLowerName()
Deprecated.
|
Set<RemoteAddress> |
getRemoteAddresses()
Deprecated.
Returns the whitelist of addresses allowed to connect to Crowd as the application.
|
ApplicationType |
getType()
Deprecated.
Returns the type of the application.
|
String |
getValue(String name)
Deprecated.
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String name)
Deprecated.
Get all the values associated with a given key.
|
Set<Webhook> |
getWebhooks()
Deprecated.
Returns the Webhooks associated to the application.
|
int |
hashCode()
Deprecated.
|
boolean |
hasRemoteAddress(String remoteAddress)
Deprecated.
Returns true if the remote address is already in the list of allowable remote addresses for the
application.
|
boolean |
isAliasingEnabled()
Deprecated.
Returns true if aliasing is enabled for the application.
|
boolean |
isEmpty()
Deprecated.
|
boolean |
isLowerCaseOutput()
Deprecated.
Returns true if the usernames and group names returned should be in lowercase.
|
boolean |
isMembershipAggregationEnabled()
Deprecated.
|
boolean |
isPermanent()
Deprecated.
Returns whether the application is a permanent application and thus cannot be removed.
|
static ApplicationImpl |
newInstance(Application application)
Deprecated.
|
static ApplicationImpl |
newInstance(String name,
ApplicationType type)
Deprecated.
|
static ApplicationImpl |
newInstanceWithCredential(String name,
ApplicationType type,
PasswordCredential credential)
Deprecated.
|
static ApplicationImpl |
newInstanceWithIdAndCredential(String name,
ApplicationType type,
PasswordCredential credential,
long id)
Deprecated.
|
static ApplicationImpl |
newInstanceWithPassword(String name,
ApplicationType type,
String password)
Deprecated.
|
void |
removeAttribute(String name)
Deprecated.
|
boolean |
removeDirectoryMapping(long directoryId)
Deprecated.
|
boolean |
removeRemoteAddress(String remoteAddress)
Deprecated.
|
void |
setActive(boolean active)
Deprecated.
|
void |
setAliasingEnabled(boolean aliasingEnabled)
Deprecated.
|
void |
setAttribute(String name,
String value)
Deprecated.
|
void |
setAttributes(Map<String,String> attributes)
Deprecated.
Sets the attributes of the application.
|
void |
setCredential(PasswordCredential credential)
Deprecated.
|
void |
setDescription(String description)
Deprecated.
|
void |
setLowerCaseOutput(boolean value)
Deprecated.
|
void |
setMembershipAggregationEnabled(boolean membershipAggregationEnabled)
Deprecated.
|
void |
setName(String name)
Deprecated.
|
void |
setRemoteAddresses(Set<RemoteAddress> remoteAddresses)
Deprecated.
|
void |
setType(ApplicationType type)
Deprecated.
|
void |
setWebhooks(Set<Webhook> webhooks)
Deprecated.
This setter should only be called by hibernate and must replace the collection instance; compare with
updateDetailsFromApplication(Application) . |
String |
toString()
Deprecated.
|
void |
updateAttributesFrom(Map<String,String> attributes)
Deprecated.
|
void |
updateDetailsFromApplication(Application application)
Deprecated.
Only to be used by the ApplicationDAO#update method
|
void |
validate()
Deprecated.
|
getCreatedDate, getId, getName, getUpdatedDate, isActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNow
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCreatedDate, getId, getName, getUpdatedDate, isActive
protected ApplicationImpl()
protected ApplicationImpl(String name, long id, ApplicationType type, String description, PasswordCredential credential, boolean active, Map<String,String> attributes, List<DirectoryMapping> directoryMappings, Set<RemoteAddress> remoteAddresses, Set<Webhook> webhooks, Date createdDate, Date updatedDate)
public ApplicationImpl(InternalEntityTemplate template)
template
- directory template.public static ApplicationImpl newInstance(Application application)
public static ApplicationImpl newInstance(String name, ApplicationType type)
public static ApplicationImpl newInstanceWithIdAndCredential(String name, ApplicationType type, PasswordCredential credential, long id)
public static ApplicationImpl newInstanceWithCredential(String name, ApplicationType type, PasswordCredential credential)
public static ApplicationImpl newInstanceWithPassword(String name, ApplicationType type, String password)
public void updateDetailsFromApplication(Application application)
public void validate()
public void setName(String name)
setName
in class InternalEntity
public void setActive(boolean active)
setActive
in class InternalEntity
public String getLowerName()
public ApplicationType getType()
Application
getType
in interface Application
public void setType(ApplicationType type)
public String getDescription()
Application
getDescription
in interface Application
public void setDescription(String description)
public PasswordCredential getCredential()
Application
getCredential
in interface Application
public void setCredential(PasswordCredential credential)
public boolean isPermanent()
Application
isPermanent
in interface Application
public Map<String,String> getAttributes()
Application
getAttributes
in interface Application
public void setAttributes(Map<String,String> attributes)
attributes
must be a mutable Map.attributes
- new attributespublic List<DirectoryMapping> getDirectoryMappings()
Application
getDirectoryMappings
in interface Application
@Nonnull public List<ApplicationDirectoryMapping> getApplicationDirectoryMappings()
Application
getApplicationDirectoryMappings
in interface Application
public void addDirectoryMapping(Directory directory, boolean allowAllToAuthenticate, OperationType... operationTypes)
public void addGroupMapping(long directoryId, String groupName)
public DirectoryMapping getDirectoryMapping(long directoryId)
Application
getDirectoryMapping
in interface Application
directoryId
- ID of the directory@Nullable public ApplicationDirectoryMapping getApplicationDirectoryMapping(long directoryId)
Application
getApplicationDirectoryMapping
in interface Application
directoryId
- ID of the directorypublic boolean removeDirectoryMapping(long directoryId)
public Set<RemoteAddress> getRemoteAddresses()
Application
getRemoteAddresses
in interface Application
public void addRemoteAddress(String remoteAddress)
public void setRemoteAddresses(Set<RemoteAddress> remoteAddresses)
public boolean hasRemoteAddress(String remoteAddress)
Application
hasRemoteAddress
in interface Application
remoteAddress
- RemoteAddress whose presence is to be testedpublic boolean removeRemoteAddress(String remoteAddress)
public Set<Webhook> getWebhooks()
Application
getWebhooks
in interface Application
public void setWebhooks(Set<Webhook> webhooks)
updateDetailsFromApplication(Application)
.webhooks
- new Set of webhookspublic Set<String> getValues(String name)
Attributes
getValues
in interface Attributes
name
- attribute name.null
if the directory does not have the attribute.public String getValue(String name)
Attributes
null
if there is no value.getValue
in interface Attributes
name
- the key to retrieve the value fornull
if there is no valuepublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic void removeAttribute(String name)
public boolean isLowerCaseOutput()
Application
isLowerCaseOutput
in interface Application
public void setLowerCaseOutput(boolean value)
public void setAliasingEnabled(boolean aliasingEnabled)
public boolean isAliasingEnabled()
Application
isAliasingEnabled
in interface Application
public boolean isMembershipAggregationEnabled()
isMembershipAggregationEnabled
in interface Application
public void setMembershipAggregationEnabled(boolean membershipAggregationEnabled)
public boolean equals(Object o)
equals
in class InternalEntity
public int hashCode()
hashCode
in class InternalEntity
Copyright © 2017 Atlassian. All rights reserved.