org.alfresco.repo.admin
Class SysAdminParamsImpl

java.lang.Object
  extended by org.alfresco.repo.admin.SysAdminParamsImpl
All Implemented Interfaces:
SysAdminParams, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class SysAdminParamsImpl
extends java.lang.Object
implements SysAdminParams, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean

Configurable system parameters.


Constructor Summary
SysAdminParamsImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.String getAlfrescoContext()
          Gets Alfresco context.
 java.lang.String getAlfrescoHost()
          Gets Alfresco host.
 int getAlfrescoPort()
          Gets Alfresco port.
 java.lang.String getAlfrescoProtocol()
          Gets Alfresco protocole.
 java.util.List getAllowedUserList()
          Gets the list of users who are allowed to log in.
 boolean getAllowWrite()
          Do we allow write operations by non-system users on the repository?.
 int getMaxUsers()
          Gets the maximum number of users who are allowed to log in.
 java.lang.String getShareContext()
          Gets Share context.
 java.lang.String getShareHost()
          Gets Share host.
 int getSharePort()
          Gets Share port.
 java.lang.String getShareProtocol()
          Gets Share protocol.
 java.lang.String getSitePublicGroup()
          Gets the group name used for public site visibility.
 void setAlfrescoContext(java.lang.String alfrescoContext)
           
 void setAlfrescoHost(java.lang.String alfrescoHost)
           
 void setAlfrescoPort(int alfrescoPort)
           
 void setAlfrescoProtocol(java.lang.String alfrescoProtocol)
           
 void setAllowedUsers(java.lang.String allowedUsers)
          Sets the list of users who are allowed to log in.
 void setAllowWrite(boolean allowWrite)
          Controls where we allow write operations by non-system users on the repository.
 void setApplicationContext(org.springframework.context.ApplicationContext ctx)
           
 void setMaxUsers(int maxUsers)
          Sets the maximum number of users who are allowed to log in.
 void setShareContext(java.lang.String shareContext)
           
 void setShareHost(java.lang.String shareHost)
           
 void setSharePort(int sharePort)
           
 void setShareProtocol(java.lang.String shareProtocol)
           
 void setSitePublicGroup(java.lang.String sitePublicGroup)
           
 java.lang.String subsituteHost(java.lang.String hostName)
          Expands the special ${localname} token within a host name using the resolved DNS name for the local host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SysAdminParamsImpl

public SysAdminParamsImpl()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

setAllowedUsers

public void setAllowedUsers(java.lang.String allowedUsers)
Sets the list of users who are allowed to log in.

Parameters:
allowedUsers - a comma-separated list of users who are allowed to log in or null if all users are allowed to log in

getAllowedUserList

public java.util.List getAllowedUserList()
Description copied from interface: SysAdminParams
Gets the list of users who are allowed to log in.

Specified by:
getAllowedUserList in interface SysAdminParams
Returns:
the allowed user list or null if all users are allowed to log in

setMaxUsers

public void setMaxUsers(int maxUsers)
Sets the maximum number of users who are allowed to log in.

Parameters:
maxUsers - the maximum number of users who are allowed to log in

getMaxUsers

public int getMaxUsers()
Description copied from interface: SysAdminParams
Gets the maximum number of users who are allowed to log in.

Specified by:
getMaxUsers in interface SysAdminParams
Returns:
the the maximum number of users who are allowed to log in

setAllowWrite

public void setAllowWrite(boolean allowWrite)
Controls where we allow write operations by non-system users on the repository.

Parameters:
allowWrite - true if we allow write operations by non-system users on the repository

getAllowWrite

public boolean getAllowWrite()
Description copied from interface: SysAdminParams
Do we allow write operations by non-system users on the repository?.

Specified by:
getAllowWrite in interface SysAdminParams
Returns:
true if we allow write operations by non-system users on the repository

getAlfrescoContext

public java.lang.String getAlfrescoContext()
Description copied from interface: SysAdminParams
Gets Alfresco context.

Specified by:
getAlfrescoContext in interface SysAdminParams
Returns:
Alfresco context

setAlfrescoContext

public void setAlfrescoContext(java.lang.String alfrescoContext)

getAlfrescoHost

public java.lang.String getAlfrescoHost()
Description copied from interface: SysAdminParams
Gets Alfresco host.

Specified by:
getAlfrescoHost in interface SysAdminParams
Returns:
Alfresco host

setAlfrescoHost

public void setAlfrescoHost(java.lang.String alfrescoHost)

getAlfrescoPort

public int getAlfrescoPort()
Description copied from interface: SysAdminParams
Gets Alfresco port.

Specified by:
getAlfrescoPort in interface SysAdminParams
Returns:
Alfresco port

setAlfrescoPort

public void setAlfrescoPort(int alfrescoPort)

getAlfrescoProtocol

public java.lang.String getAlfrescoProtocol()
Description copied from interface: SysAdminParams
Gets Alfresco protocole.

Specified by:
getAlfrescoProtocol in interface SysAdminParams
Returns:
Alfresco protocole

setAlfrescoProtocol

public void setAlfrescoProtocol(java.lang.String alfrescoProtocol)

getShareContext

public java.lang.String getShareContext()
Description copied from interface: SysAdminParams
Gets Share context.

Specified by:
getShareContext in interface SysAdminParams
Returns:
Share context

setShareContext

public void setShareContext(java.lang.String shareContext)

getShareHost

public java.lang.String getShareHost()
Description copied from interface: SysAdminParams
Gets Share host.

Specified by:
getShareHost in interface SysAdminParams
Returns:
Share host

setShareHost

public void setShareHost(java.lang.String shareHost)

getSharePort

public int getSharePort()
Description copied from interface: SysAdminParams
Gets Share port.

Specified by:
getSharePort in interface SysAdminParams
Returns:
Share port

setSharePort

public void setSharePort(int sharePort)

getShareProtocol

public java.lang.String getShareProtocol()
Description copied from interface: SysAdminParams
Gets Share protocol.

Specified by:
getShareProtocol in interface SysAdminParams
Returns:
Share protocol

setShareProtocol

public void setShareProtocol(java.lang.String shareProtocol)

subsituteHost

public java.lang.String subsituteHost(java.lang.String hostName)
Expands the special ${localname} token within a host name using the resolved DNS name for the local host.

Specified by:
subsituteHost in interface SysAdminParams
Parameters:
hostName - the host name
Returns:
the string

getSitePublicGroup

public java.lang.String getSitePublicGroup()
Description copied from interface: SysAdminParams
Gets the group name used for public site visibility. Only members of this group will have SiteConsumer access to 'public' share sites.

Specified by:
getSitePublicGroup in interface SysAdminParams
Returns:
the name of the public site group.

setSitePublicGroup

public void setSitePublicGroup(java.lang.String sitePublicGroup)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.