Package org.alfresco.repo.admin
Class SysAdminParamsImpl
- java.lang.Object
-
- org.alfresco.repo.admin.SysAdminParamsImpl
-
- All Implemented Interfaces:
SysAdminParams,org.springframework.beans.factory.Aware,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
Constructors Constructor Description SysAdminParamsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.lang.StringgetAlfrescoContext()Gets Alfresco context.java.lang.StringgetAlfrescoHost()Gets Alfresco host.intgetAlfrescoPort()Gets Alfresco port.java.lang.StringgetAlfrescoProtocol()Gets Alfresco protocole.java.util.List<java.lang.String>getAllowedUserList()Gets the list of users who are allowed to log in.booleangetAllowWrite()Do we allow write operations by non-system users on the repository?.java.lang.StringgetApiExplorerUrl()Gets Rest Api-Explorer URL.intgetMaxUsers()Gets the maximum number of users who are allowed to log in.java.lang.StringgetShareContext()Gets Share context.java.lang.StringgetShareHost()Gets Share host.intgetSharePort()Gets Share port.java.lang.StringgetShareProtocol()Gets Share protocol.java.lang.StringgetSitePublicGroup()Gets the group name used for public site visibility.voidsetAlfrescoContext(java.lang.String alfrescoContext)voidsetAlfrescoHost(java.lang.String alfrescoHost)voidsetAlfrescoPort(int alfrescoPort)voidsetAlfrescoProtocol(java.lang.String alfrescoProtocol)voidsetAllowedUsers(java.lang.String allowedUsers)Sets the list of users who are allowed to log in.voidsetAllowWrite(boolean allowWrite)Controls where we allow write operations by non-system users on the repository.voidsetApiExplorerUrl(java.lang.String apiExplorerUrl)voidsetApplicationContext(org.springframework.context.ApplicationContext ctx)voidsetMaxUsers(int maxUsers)Sets the maximum number of users who are allowed to log in.voidsetShareContext(java.lang.String shareContext)voidsetShareHost(java.lang.String shareHost)voidsetSharePort(int sharePort)voidsetShareProtocol(java.lang.String shareProtocol)voidsetSitePublicGroup(java.lang.String sitePublicGroup)java.lang.StringsubsituteHost(java.lang.String hostName)Expands the special ${localname} token within a host name using the resolved DNS name for the local host.
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.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 ornullif all users are allowed to log in
-
getAllowedUserList
public java.util.List<java.lang.String> getAllowedUserList()
Description copied from interface:SysAdminParamsGets the list of users who are allowed to log in.- Specified by:
getAllowedUserListin interfaceSysAdminParams- Returns:
- the allowed user list or
nullif 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:SysAdminParamsGets the maximum number of users who are allowed to log in.- Specified by:
getMaxUsersin interfaceSysAdminParams- 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-trueif we allow write operations by non-system users on the repository
-
getAllowWrite
public boolean getAllowWrite()
Description copied from interface:SysAdminParamsDo we allow write operations by non-system users on the repository?.- Specified by:
getAllowWritein interfaceSysAdminParams- Returns:
trueif we allow write operations by non-system users on the repository
-
getAlfrescoContext
public java.lang.String getAlfrescoContext()
Description copied from interface:SysAdminParamsGets Alfresco context.- Specified by:
getAlfrescoContextin interfaceSysAdminParams- Returns:
- Alfresco context
-
setAlfrescoContext
public void setAlfrescoContext(java.lang.String alfrescoContext)
-
getAlfrescoHost
public java.lang.String getAlfrescoHost()
Description copied from interface:SysAdminParamsGets Alfresco host.- Specified by:
getAlfrescoHostin interfaceSysAdminParams- Returns:
- Alfresco host
-
setAlfrescoHost
public void setAlfrescoHost(java.lang.String alfrescoHost)
-
getAlfrescoPort
public int getAlfrescoPort()
Description copied from interface:SysAdminParamsGets Alfresco port.- Specified by:
getAlfrescoPortin interfaceSysAdminParams- Returns:
- Alfresco port
-
setAlfrescoPort
public void setAlfrescoPort(int alfrescoPort)
-
getAlfrescoProtocol
public java.lang.String getAlfrescoProtocol()
Description copied from interface:SysAdminParamsGets Alfresco protocole.- Specified by:
getAlfrescoProtocolin interfaceSysAdminParams- Returns:
- Alfresco protocole
-
setAlfrescoProtocol
public void setAlfrescoProtocol(java.lang.String alfrescoProtocol)
-
getShareContext
public java.lang.String getShareContext()
Description copied from interface:SysAdminParamsGets Share context.- Specified by:
getShareContextin interfaceSysAdminParams- Returns:
- Share context
-
setShareContext
public void setShareContext(java.lang.String shareContext)
-
getShareHost
public java.lang.String getShareHost()
Description copied from interface:SysAdminParamsGets Share host.- Specified by:
getShareHostin interfaceSysAdminParams- Returns:
- Share host
-
setShareHost
public void setShareHost(java.lang.String shareHost)
-
getSharePort
public int getSharePort()
Description copied from interface:SysAdminParamsGets Share port.- Specified by:
getSharePortin interfaceSysAdminParams- Returns:
- Share port
-
setSharePort
public void setSharePort(int sharePort)
-
getShareProtocol
public java.lang.String getShareProtocol()
Description copied from interface:SysAdminParamsGets Share protocol.- Specified by:
getShareProtocolin interfaceSysAdminParams- 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:
subsituteHostin interfaceSysAdminParams- Parameters:
hostName- the host name- Returns:
- the string
-
getSitePublicGroup
public java.lang.String getSitePublicGroup()
Description copied from interface:SysAdminParamsGets the group name used for public site visibility. Only members of this group will have SiteConsumer access to 'public' share sites.- Specified by:
getSitePublicGroupin interfaceSysAdminParams- Returns:
- the name of the public site group.
-
setSitePublicGroup
public void setSitePublicGroup(java.lang.String sitePublicGroup)
-
getApiExplorerUrl
public java.lang.String getApiExplorerUrl()
Description copied from interface:SysAdminParamsGets Rest Api-Explorer URL.- Specified by:
getApiExplorerUrlin interfaceSysAdminParams- Returns:
- Api-Explorer URL
-
setApiExplorerUrl
public void setApiExplorerUrl(java.lang.String apiExplorerUrl)
-
-