|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.plugin.rest.util.ApplicationEntityTranslator
public class ApplicationEntityTranslator
Translates between application related REST entities and com.atlassian.crowd.model classes.
| Nested Class Summary | |
|---|---|
static class |
ApplicationEntityTranslator.PasswordMode
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Application toApplicationWithNoDirectoryMappings(ApplicationEntity applicationEntity)
applicationEntity - ApplicationEntity to convert
public static ApplicationEntity toApplicationEntity(Application application,
com.atlassian.plugins.rest.common.Link link)
application - Application to convertlink - Link to the Application
public static ApplicationEntity toApplicationEntity(Application application,
com.atlassian.plugins.rest.common.Link link,
ApplicationEntityTranslator.PasswordMode passwordMode)
application - Application to convertlink - Link to the ApplicationpasswordMode - whether to include the password in the application entity
public static com.atlassian.crowd.embedded.api.PasswordCredential toPasswordCredential(PasswordEntity passwordEntity)
PasswordEntity to a PasswordCredential.
passwordEntity - password entity to translate
public static List<DirectoryMapping> toDirectoryMappings(DirectoryMappingEntityList directoryMappingEntities,
Application application,
DirectoryManager directoryManager)
throws DirectoryNotFoundException
DirectoryMappingEntityList to a list of DirectoryMapping.
directoryMappingEntities - list of directory mapping entitiesapplication - the application being mappeddirectoryManager - the DirectoryManager
DirectoryNotFoundException - if the directory being mapped could not be found
public static DirectoryMapping toDirectoryMapping(DirectoryMappingEntity directoryMappingEntity,
Application application,
com.atlassian.crowd.embedded.api.Directory directory)
DirectoryMappingEntity to a DirectoryMapping.
directoryMappingEntity - directory mapping entityapplication - the application to mapdirectory - the directory to map
public static DirectoryMappingEntityList toDirectoryMappingEntities(List<DirectoryMapping> directoryMappings,
URI applicationUri)
DirectoryMapping to a DirectoryMappingEntityList.
directoryMappings - list of directory mappingsapplicationUri - URI for the application resource
public static DirectoryMappingEntity toDirectoryMappingEntity(DirectoryMapping directoryMapping,
URI directoryMappingsUri)
DirectoryMapping to a DirectoryMappingEntity.
directoryMapping - directory mappingdirectoryMappingsUri - URI to the application directory mappings resource
public static Set<RemoteAddress> toRemoteAddresses(RemoteAddressEntitySet remoteAddressEntities)
RemoteAddressEntitySet to a set of RemoteAddress.
remoteAddressEntities - set of remote address entities
public static ApplicationEntityList toApplicationEntities(Collection<Application> applications,
URI baseUri)
Applications to a list of ApplicationEntitys.
applications - collection of applications to translatebaseUri - base URI of the REST service
public static RemoteAddress toRemoteAddress(RemoteAddressEntity remoteAddressEntity)
RemoteAddressEntity to a RemoteAddress.
remoteAddressEntity - remote address entity
public static RemoteAddressEntitySet toRemoteAddressEntities(Set<RemoteAddress> remoteAddresses,
URI baseUri)
RemoteAddresses to RemoteAddressEntitySet.
remoteAddresses - Remote addressesbaseUri - base URI of the application
public static RemoteAddressEntity toRemoteAddressEntity(RemoteAddress remoteAddress,
URI baseUri)
RemoteAddress to a RemoteAddressEntity.
remoteAddress - Remote addressbaseUri - base URI of the application remote addresses
public static Set<com.atlassian.crowd.embedded.api.OperationType> toOperationTypes(Set<String> types)
OperationType.
types - operation types in string
public static com.atlassian.crowd.embedded.api.OperationType toOperationType(String type)
OperationType.
type - operation type in string
public static Set<String> toOperationTypeStrings(Set<com.atlassian.crowd.embedded.api.OperationType> types)
OperationTypes to a set of operation type strings.
types - a set of OperationTypes
public static String toOperationTypeString(com.atlassian.crowd.embedded.api.OperationType type)
OperationType to an operation type string.
type - OperationType
public static ApplicationType toApplicationType(String type)
ApplicationType.
type - application type in string
public static AttributeEntityList toAttributeEntities(Map<String,String> attributes)
AttributeEntityList.
attributes - Attributes of an entity
public static Boolean getBoolean(Boolean b)
b - boolean value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||