protected static class VHostItemImpl.VHostItemWrapper extends Object implements VHostItem
DEF_VHOST_KEY| Constructor and Description |
|---|
VHostItemWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommandFields(Packet packet)
The method is used for handling ad-hoc commands.
|
String[] |
getAdmins()
Returns an array with the Item administrators, that is people IDs who can manage, configure and control less
critical elements of the Item, like changing less critical configuration settings.
|
int[] |
getC2SPortsAllowed() |
String[] |
getComps() |
<T> T |
getData(String key) |
DomainFilterPolicy |
getDomainFilter() |
String[] |
getDomainFilterDomains() |
<T extends VHostItemExtension> |
getExtension(Class<T> clazz) |
Set<Class<? extends VHostItemExtension>> |
getExtensionClasses() |
<T extends VHostItemExtension> |
getExtensions() |
String |
getKey()
Returns a unique key for the item in the repository.
|
Long |
getMaxUsersNumber() |
JID |
getMessageForward() |
String |
getOtherDomainParams() |
String |
getOwner()
Returns the owner ID of the item.
|
JID |
getPresenceForward() |
String |
getS2sSecret() |
String[] |
getSaslAllowedMechanisms() |
Set<String> |
getTrustedJIDs() |
JID |
getVhost() |
void |
initFromCommand(Packet packet)
The method used for handling ad-hoc commands.
|
void |
initFromElement(Element elem)
The item can be also initialized from a more complex repositories: XML repository or SQL database.
|
void |
initFromPropertyString(String propString)
The item can be initialized based on the data loaded from a configuration file.
|
boolean |
isAnonymousEnabled() |
boolean |
isData(String key) |
boolean |
isEnabled() |
boolean |
isOwner(String id)
The method checks whether the person with given ID is the Item owner.
|
boolean |
isRegisterEnabled() |
boolean |
isTlsRequired() |
protected void |
readOnly() |
void |
refresh() |
void |
setAdmins(String[] admins)
Returns an array with the Item administrators, that is people IDs who can manage, configure and control less
critical elements of the Item, like changing less critical configuration settings.
|
void |
setDefaultVHost(VHostItem item) |
void |
setItem(VHostItem item) |
void |
setKey(String domain) |
void |
setOwner(String owner)
Set the Item owner.
|
void |
setVHostDefaults(VHostItemDefaults vHostDefaults) |
Element |
toElement()
Item data can be stored in a more complex form than a simple property string.
|
String |
toPropertyString()
The item can be initialized based on the data loaded from a configuration file.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareTo, getMessageForwardAddress, getPresenceForwardAddress, isAdmin, isTrustedJIDpublic void setItem(VHostItem item)
public void setDefaultVHost(VHostItem item)
public void setVHostDefaults(VHostItemDefaults vHostDefaults)
public void refresh()
public int[] getC2SPortsAllowed()
getC2SPortsAllowed in interface VHostItempublic DomainFilterPolicy getDomainFilter()
getDomainFilter in interface VHostItempublic String[] getDomainFilterDomains()
getDomainFilterDomains in interface VHostItempublic <T extends VHostItemExtension> T getExtension(Class<T> clazz)
getExtension in interface VHostItempublic <T extends VHostItemExtension> Set<T> getExtensions()
getExtensions in interface VHostItempublic Set<Class<? extends VHostItemExtension>> getExtensionClasses()
getExtensionClasses in interface VHostItempublic Long getMaxUsersNumber()
getMaxUsersNumber in interface VHostItempublic JID getMessageForward()
getMessageForward in interface VHostItempublic String getOtherDomainParams()
getOtherDomainParams in interface VHostItempublic JID getPresenceForward()
getPresenceForward in interface VHostItempublic String getS2sSecret()
getS2sSecret in interface VHostItempublic Set<String> getTrustedJIDs()
getTrustedJIDs in interface VHostItempublic boolean isAnonymousEnabled()
isAnonymousEnabled in interface VHostItempublic boolean isRegisterEnabled()
isRegisterEnabled in interface VHostItempublic boolean isTlsRequired()
isTlsRequired in interface VHostItempublic String[] getSaslAllowedMechanisms()
getSaslAllowedMechanisms in interface VHostItempublic void addCommandFields(Packet packet)
RepositoryItemaddCommandFields in interface RepositoryItempacket - with empty ad-hoc command to fill with fieldspublic String[] getAdmins()
RepositoryItemgetAdmins in interface RepositoryItempublic void setAdmins(String[] admins)
RepositoryItemsetAdmins in interface RepositoryItemadmins - is an array with the Item administrators IDs to set for the Item.public String getKey()
RepositoryItemgetKey in interface RepositoryItempublic String getOwner()
RepositoryItemgetOwner in interface RepositoryItempublic void setOwner(String owner)
RepositoryItemsetOwner in interface RepositoryItemowner - is the Item owner ID.public void initFromCommand(Packet packet)
RepositoryIteminitFromCommand in interface RepositoryItempacket - with ad-hoc command filled by the user.public void initFromElement(Element elem)
RepositoryIteminitFromElement in interface RepositoryItemelem - XML Element with all the item initialization data.public void initFromPropertyString(String propString)
RepositoryIteminitFromPropertyString in interface RepositoryItempropString - is a property string to initialize the RepositoryItem.public boolean isOwner(String id)
RepositoryItemisOwner in interface RepositoryItemid - is an ID of a person for whom we check access permissions.public Element toElement()
RepositoryItemtoElement in interface RepositoryItempublic String toPropertyString()
RepositoryItemtoPropertyString in interface RepositoryItemprotected void readOnly()
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.