de.espirit.firstspirit.access.project
Class RemoteProjectConfiguration

java.lang.Object
  extended by de.espirit.firstspirit.access.project.RemoteProjectConfiguration
All Implemented Interfaces:
Serializable, Cloneable

public class RemoteProjectConfiguration
extends Object
implements Serializable, Cloneable

This class holds all necessary information for a connection to a remote project. A remote project configuration can be defined in a project.

Since:
3.1.175
See Also:
Project.getRemoteProjectConfigurations(), Project.setRemoteProjectConfigurations(java.util.List), Serialized Form

Field Summary
static String CATEGORY_DEFAULT
           
static String CATEGORY_PREFIX
           
 
Constructor Summary
RemoteProjectConfiguration()
          Create a new instance.
 
Method Summary
 String getLoginName()
          Returns the login name of the user which is used for the connection to the remote project or null if the current user should be used.
 String getLoginPassword()
          Returns the encrypted password of the user which is used for the connection to the remote project or null if the current user should be used.
 String getPrefix()
          Returns the prefix defined in this remote project configuration.
 String getProjectCategory()
          Returns the name of the project category (exclusive the prefix "category:") related to this configuration.
 String getProjectName()
          Returns the name of the project related to this configuration.
 String getSymbolicName()
          Returns the symbolic name of this remote project configuration.
 String getUrlCreator()
          Get the public or class name of the url creator used to generate urls to nodes of the remote project.
 void setLoginName(String loginName)
          Set the login name of the user which should be used for the remote project connection.
 void setLoginPassword(String loginPassword)
          Sets the password of the user which should be used for the remote project connection.
 void setPrefix(String prefix)
          Sets the prefix for this remote project configuration.
 void setProjectCategory(String projectCategory)
          Set the name of the project category, for example "myRemoteCategory" not ""category:myRemoteCategory".
 void setProjectName(String projectName)
          Set the name of the project which should be related to this configuration.
 void setSymbolicName(String symbolicName)
          Set the symbolic name for this configuration.
 void setUrlCreator(String value)
          Set the public name or class name of the url creator used to generate urls for nodes of the remote project.
 void setUseCurrentUser(boolean useCurrentUser)
          Set true if the credentials of the current user should be used for the remote connection instead of the login name and the password
 void setUseRelatedProjects(boolean useRelatedProjects)
           
 void setUseRemoteMedia(boolean useRemoteMedia)
           
 void setUseRemoteSchemata(boolean useRemoteSchemata)
           
 String toString()
           
 boolean useCurrentUser()
          Returns true if the remote connection which is created with this remote project configuration should use the credentials of the current user instead of the login name and the password
 boolean useRelatedProjects()
           
 boolean useRemoteMedia()
           
 boolean useRemoteSchemata()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CATEGORY_PREFIX

public static final String CATEGORY_PREFIX
Since:
4.2.9
See Also:
Constant Field Values

CATEGORY_DEFAULT

public static final String CATEGORY_DEFAULT
Since:
4.2.9
See Also:
Constant Field Values
Constructor Detail

RemoteProjectConfiguration

public RemoteProjectConfiguration()
Create a new instance.

Since:
3.1.175
Method Detail

getSymbolicName

public String getSymbolicName()
Returns the symbolic name of this remote project configuration. The returned name is unique for all remote project configurations known in the project.

Returns:
the unique symbolic name
Since:
3.1.175

setSymbolicName

public void setSymbolicName(String symbolicName)
Set the symbolic name for this configuration. Ensure that the given name is unique for all remote project configurations known in the project (Project.getRemoteProjectConfigurations())

Parameters:
symbolicName - the symbolic name for this configuration
Since:
3.1.175

getProjectName

public String getProjectName()
Returns the name of the project related to this configuration.

Returns:
the name of the project related to this configuration
Since:
3.1.175

setProjectName

public void setProjectName(String projectName)
Set the name of the project which should be related to this configuration.

Parameters:
projectName - the name of the project
Since:
3.1.175

getProjectCategory

@Nullable
public String getProjectCategory()
Returns the name of the project category (exclusive the prefix "category:") related to this configuration.

Returns:
the name of the project category (exlusive the prefix "category:") related to this configuration, e. g. "myRemoteCategory" not ""category:myRemoteCategory"
Since:
4.1

setProjectCategory

public void setProjectCategory(@Nullable
                               String projectCategory)
Set the name of the project category, for example "myRemoteCategory" not ""category:myRemoteCategory".

Parameters:
projectCategory - the project category string
Since:
4.1

getPrefix

public String getPrefix()
Returns the prefix defined in this remote project configuration. The prefix is used for generation of a link to a node in the remote project.

Returns:
the prefix used for generation of a link to a node in the remote project
Since:
3.1.175

setPrefix

public void setPrefix(String prefix)
Sets the prefix for this remote project configuration. The given prefix is used for generation of a link to a node in the remote project.

Parameters:
prefix -
Since:
3.1.175

getLoginName

public String getLoginName()
Returns the login name of the user which is used for the connection to the remote project or null if the current user should be used.

Returns:
the login name of the user used for the remote project connection
Since:
3.1.175
See Also:
RemoteProjectConfiguration.useCurrentUser()

setLoginName

public void setLoginName(String loginName)
Set the login name of the user which should be used for the remote project connection.

Parameters:
loginName - the login name of the user used for the remote project connection
Since:
3.1.175
See Also:
RemoteProjectConfiguration.setUseCurrentUser(boolean)

getLoginPassword

public String getLoginPassword()
Returns the encrypted password of the user which is used for the connection to the remote project or null if the current user should be used.

Returns:
the encrypted password of the user used for the remote project connection
Since:
3.1.175
See Also:
RemoteProjectConfiguration.useCurrentUser()

setLoginPassword

public void setLoginPassword(String loginPassword)
Sets the password of the user which should be used for the remote project connection. The given password will be encrypted.

Parameters:
loginPassword - the password of the user used for the remote project connection
Since:
3.1.175
See Also:
RemoteProjectConfiguration.setUseCurrentUser(boolean)

useCurrentUser

public boolean useCurrentUser()
Returns true if the remote connection which is created with this remote project configuration should use the credentials of the current user instead of the login name and the password

Returns:
true if the current user should be used for remote connection, false otherwise
Since:
4.0.17

setUseCurrentUser

public void setUseCurrentUser(boolean useCurrentUser)
Set true if the credentials of the current user should be used for the remote connection instead of the login name and the password

Parameters:
useCurrentUser - true to use current user for remote connection, false otherwise
Since:
4.0.17

useRemoteMedia

public boolean useRemoteMedia()
Since:
4.0.26

setUseRemoteMedia

public void setUseRemoteMedia(boolean useRemoteMedia)
Since:
4.0.26

useRelatedProjects

public boolean useRelatedProjects()
Since:
4.0.26

setUseRelatedProjects

public void setUseRelatedProjects(boolean useRelatedProjects)
Since:
4.0.26

useRemoteSchemata

public boolean useRemoteSchemata()
Since:
4.0.26

setUseRemoteSchemata

public void setUseRemoteSchemata(boolean useRemoteSchemata)
Since:
4.0.26

getUrlCreator

public String getUrlCreator()
Get the public or class name of the url creator used to generate urls to nodes of the remote project.

Since:
4.1.27
See Also:
RemoteProjectConfiguration.setUrlCreator(String)

setUrlCreator

public void setUrlCreator(String value)
Set the public name or class name of the url creator used to generate urls for nodes of the remote project.

Since:
4.1.27
See Also:
RemoteProjectConfiguration.getUrlCreator()

toString

public String toString()
Overrides:
toString in class Object
Since:
3.1.175


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480