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 Object
implements SysAdminParams, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Configurable system parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGets Alfresco context.Gets Alfresco host.intGets Alfresco port.Gets Alfresco protocole.Gets the list of users who are allowed to log in.booleanDo we allow write operations by non-system users on the repository?.Gets Rest Api-Explorer URL.intGets the maximum number of users who are allowed to log in.Gets Share context.Gets Share host.intGets Share port.Gets Share protocol.Gets the group name used for public site visibility.voidsetAlfrescoContext(String alfrescoContext) voidsetAlfrescoHost(String alfrescoHost) voidsetAlfrescoPort(int alfrescoPort) voidsetAlfrescoProtocol(String alfrescoProtocol) voidsetAllowedUsers(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(String apiExplorerUrl) voidsetApplicationContext(org.springframework.context.ApplicationContext ctx) voidsetMaxUsers(int maxUsers) Sets the maximum number of users who are allowed to log in.voidsetShareContext(String shareContext) voidsetShareHost(String shareHost) voidsetSharePort(int sharePort) voidsetShareProtocol(String shareProtocol) voidsetSitePublicGroup(String sitePublicGroup) subsituteHost(String hostName) Expands the special ${localname} token within a host name using the resolved DNS name for the local host.
-
Constructor Details
-
SysAdminParamsImpl
public SysAdminParamsImpl()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setAllowedUsers
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
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
Description copied from interface:SysAdminParamsGets Alfresco context.- Specified by:
getAlfrescoContextin interfaceSysAdminParams- Returns:
- Alfresco context
-
setAlfrescoContext
-
getAlfrescoHost
Description copied from interface:SysAdminParamsGets Alfresco host.- Specified by:
getAlfrescoHostin interfaceSysAdminParams- Returns:
- Alfresco host
-
setAlfrescoHost
-
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
Description copied from interface:SysAdminParamsGets Alfresco protocole.- Specified by:
getAlfrescoProtocolin interfaceSysAdminParams- Returns:
- Alfresco protocole
-
setAlfrescoProtocol
-
subsituteHost
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
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
-
getApiExplorerUrl
Description copied from interface:SysAdminParamsGets Rest Api-Explorer URL.- Specified by:
getApiExplorerUrlin interfaceSysAdminParams- Returns:
- Api-Explorer URL
-
setApiExplorerUrl
-