public class Channel extends java.lang.Object implements JcmsConstants, JPropertiesListener
getCommonGroupSet()
(Global groups)getWorkspaceSet(Workflow)
(Workspace using the given worflow)StoreListener
to be informed when Storable are created, updated or deleted from this site.
ChannelListener
to be informed when the site is shutting down.
DataController
to control Data integrity, validation and execution of Data write operation.
RightPolicyFilter
to customize behavior of JCMS for rights.
QueryFilter
to customize behavior of JCMS during search.
AuthenticationHandler
to provide other authentication method.
containsProperty(String)
getProperty(String)
getProperty(String, String)
getBooleanProperty(String, boolean)
getIntegerProperty(String, int)
getLongProperty(String, long)
getFloatProperty(String, float)
getDoubleProperty(String, double)
getStringArrayProperty(String, String[])
getIntArrayProperty(String, int[])
glp
methods of JcmsUtil
.getLanguageProperties()
getChannelProperties()
getProperties(String)
File
s and vice-versa. Useful for configuration files, uploaded files, file manipulations, etc.File confFile = new File(channel.getDataPath("conf.xml")); ...
getRealPath(String)
getWebappPath()
getUploadPath(String)
getUploadParentPath()
getWebInfPath(String)
getDataPath(String)
getRelativePath(File)
getLucenePath(String)
(access with care!)getJaliosPath(String)
(access with care!)getJcmsWorkPath(String)
(access with care!)String sender = channel.getSenderFullEmail(); Strint recipient = newMbr.getFullEmail(); String subject = "[" + channel.getName() + "] " + "Welcome!"; // TO DO: I18N String content = "Welcome " + newMbr.getFriendlyName() + "\nEnjoy our new site!"; // TO DO: I18N MailUtil.sendMail(sender, recipient, subject, content);
appendMilestone(String)
addCleanFilter(CustomCleanFilter)
removeCleanFilter(CustomCleanFilter)
cleanStore(CleanFilter, JcmsContext)
getCleanFilterList()
generateLogFromMemory()
Modifier and Type | Class and Description |
---|---|
class |
Channel.TypeLabelComparator
Sort type according their label in a given language.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
adminIpNoPattern |
protected org.apache.oro.text.regex.Pattern |
adminIpPattern |
protected java.util.Set<Category> |
advRefineRootSet |
protected java.util.Map<java.lang.String,AlarmManager> |
alarmManagerMap |
protected java.util.HashMap<java.lang.Class<?>,java.util.Map<java.lang.String,TypeFieldEntry>> |
allTypeFieldEntriesCacheMap |
protected AppServerInfo |
appServerInfo |
protected AuthenticationManager |
authMgr |
protected CacheManager |
cacheManager |
protected static Channel |
channel |
protected java.util.TreeSet<ChannelListener> |
channelListenerSet |
protected java.util.Map<java.lang.Class<? extends Data>,java.util.Set<Data>> |
class2dataSet |
protected java.lang.ClassLoader |
classLoader |
protected java.util.List<CustomCleanFilter> |
cleanFilterList |
protected javax.servlet.ServletContext |
context |
protected java.util.ArrayList<java.lang.Class<? extends Publication>> |
coreTypeList |
protected java.lang.String |
country |
protected java.lang.ThreadLocal<javax.servlet.http.HttpServletRequest> |
currentServletRequest |
protected java.lang.ThreadLocal<javax.servlet.http.HttpServletResponse> |
currentServletResponse |
protected java.lang.String |
customPropFilePath |
protected java.util.HashMap<java.lang.Class<?>,java.util.Set<DataController>> |
dataControllerMap |
protected java.util.TreeMap<Data,ControllerStatus> |
dataIntegrityReport |
protected java.util.Date |
dataIntegrityReportDate |
protected DataListener |
dataListener |
protected java.text.SimpleDateFormat |
dateFormat |
protected java.util.HashMap<java.lang.String,java.text.SimpleDateFormat> |
dateFormatMap |
protected java.text.SimpleDateFormat |
dateTimeFormat |
protected java.util.HashMap<java.lang.String,java.text.SimpleDateFormat> |
dateTimeFormatMap |
protected Member |
defaultAdmin |
protected java.lang.String |
defaultEmail |
protected Group |
defaultGroup |
protected java.lang.String[] |
defaultQueryTypes |
protected java.lang.String[] |
defaultQueryTypesOff |
protected Workspace |
defaultWorkspace |
protected java.util.HashMap<java.lang.Class<?>,java.util.Map<java.lang.String,TypeFieldEntry>> |
exactTypeFieldEntriesCacheMap |
protected ObjectLongTreeMap |
fileSizeMap |
protected FileIndexManager |
fim |
protected java.util.Set<java.lang.String> |
httpHeaderExcludedSet |
protected java.util.Map<java.lang.String,java.lang.String> |
httpHeaderMap |
protected java.util.HashMap<java.lang.String,java.lang.String> |
ipToReverseProxyConfNameMap |
protected boolean |
isAvailable |
protected boolean |
isDataWriteEnabled |
protected boolean |
isDataWriteEnabledComputed |
protected boolean |
isDeployManagerEnabled |
protected boolean |
isGzipCompressionEnabled |
protected boolean |
isNotificationEnabled |
protected boolean |
isReverseProxyEnabled |
protected static boolean |
isSSLenabled |
protected boolean |
isUsingAdvancedI18N |
protected boolean |
isWebdavEnable |
protected boolean |
isWebdavEnableComputed |
protected JcmsInfo |
jcmsInfo |
protected java.util.ArrayList<java.lang.String> |
jcmsLangList |
protected boolean |
jsyncAutoUpdate |
protected long |
jsyncDownloadInterval |
protected boolean |
jsyncEnabled |
protected java.lang.String |
jsyncExplicitReplicaList |
protected boolean |
jsyncHasLeader |
protected org.apache.oro.text.regex.Pattern |
jsyncIpPattern |
protected java.lang.String |
jsyncLeaderUrl |
protected JSyncPreviousReplicaManager |
jsyncPreviousReplicaManager |
protected JSyncReplica |
jsyncReplica |
protected java.lang.String |
jsyncReplicaUrl |
protected long |
jsyncStabDelay |
protected boolean |
jsyncSuggestJoin |
protected boolean |
jsyncSyncFiles |
protected java.lang.String |
jsyncUpdateMode |
protected java.util.ArrayList<java.lang.String> |
langList |
protected java.util.ArrayList<java.lang.String> |
langListOrdered |
protected java.lang.String |
language |
protected LDAPConfiguration |
ldapConf |
protected LinkIndexManager |
lim |
protected LimitController |
limitController |
protected java.util.Locale |
locale |
protected java.util.ArrayList<java.lang.String> |
localizedLangList |
protected java.lang.String |
logFilePath |
protected LuceneMemberSearchEngine |
mbrSearchEngine |
protected java.lang.String |
name |
protected AlarmEntry |
nlAlarmEntry |
protected CategoryRight |
noCategoryRight |
protected NotificationManager |
notificationManager |
protected java.util.ArrayList<java.lang.String> |
otherLangList |
protected PolicyManager |
policyManager |
protected LangProperties |
properties |
protected java.lang.Class<?>[] |
publicationSuperTypes |
protected java.util.Map<java.lang.String,java.util.List<java.lang.Class<? extends Publication>>> |
publicationTypeMap |
protected PublicationListener |
pubListener |
protected java.util.Set<Publication> |
pubWithoutCategories |
protected QueryManager |
queryMgr |
protected int |
realPathLength |
protected java.util.Set<Category> |
refineRootSet |
protected java.util.HashMap<java.lang.String,java.lang.String> |
reverseProxyBaseURL |
protected java.util.HashMap<java.lang.String,java.lang.String> |
reverseProxyContextPath |
protected java.util.HashMap<java.lang.String,java.lang.String> |
reverseProxySSLBaseURL |
static java.lang.String |
REVISION |
protected java.util.HashSet<java.lang.String> |
rightToLeftLanguageSet |
protected Category |
rootCategory |
protected java.util.Set<Category> |
rootCategoryAsSet |
protected CategoryRight |
rootCategoryRight |
protected java.util.Set<Category> |
searchRootSet |
protected java.lang.String |
securedUrl |
protected static int |
SSLport |
protected StatReportListener |
statReportListener |
protected Store |
store |
protected java.io.File |
storeBackupDir |
protected int |
storeBackupMax |
protected Category |
tagRoot |
protected TypeProcessor |
typeProcessor |
protected java.lang.String |
uri |
protected java.lang.String |
urid |
protected java.lang.String |
url |
protected java.util.HashMap<Storable,java.util.Set<java.lang.String>> |
virtualIDMap |
protected int[] |
visiblePstatus |
protected java.io.File |
webappDir |
protected java.lang.String |
webappPropFilePath |
protected java.lang.String |
webdavEncoding |
protected boolean |
workspacesIpNoPattern |
protected org.apache.oro.text.regex.Pattern |
workspacesIpPattern |
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SESSION_AUTHORIZED_FILENAMES_SET, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
Modifier and Type | Method and Description |
---|---|
void |
addAuthenticationHandler(AuthenticationHandler authHandler)
Add the specified
AuthenticationHandler to the list of
AuthenticationHandlers used by the AuthenticationManager
to process users' authentication. |
void |
addChannelListener(ChannelListener listener)
Adds a ChannelListener.
|
void |
addCleanFilter(CustomCleanFilter filter)
Adds a custom clean filter.
|
void |
addDataController(DataController dc,
java.lang.Class<?> clazz)
Add the given DataController
|
void |
addDBListener(DBListener listener)
Add a DBListener to listen to all the Data.
|
void |
addDBListener(DBListener listener,
java.lang.Class<?> clazz)
Add a DBListener to listen to the given class of data.
|
void |
addHttpHeaders(javax.servlet.http.HttpServletResponse response)
An internal method used to add HTTP headers in the response.
|
void |
addPolicyFilter(PolicyFilter pf)
Add the given
PolicyFilter to the list of RightPolicyFilter used by
the PolicyManager (getPolicyManager() ). |
void |
addPropertiesListener(JPropertiesListener listener)
Adds a properties listener.
|
void |
addQueryFilter(QueryFilter qf)
Add the given
QueryFilter to the list of QueryFilters used by
the QueryManager (getQueryManager() ). |
void |
addStoreListener(StoreListener listener,
boolean repeat)
Adds a StoreListener for all storable classes.
|
void |
addStoreListener(StoreListener listener,
java.lang.Class<?> clazz,
boolean repeat)
Adds a StoreListener associated to a given class.
|
void |
appendMilestone(java.lang.String text)
Appends a milestone in the store.
|
boolean |
canMemberAccessFile(java.lang.String filename,
Member member)
Check if the given member can access the given file (dangling
documents are checked, see checkMemberAccessFile()).
|
boolean |
checkCrypt(java.lang.String candidate_plaintext,
java.lang.String stored_hash)
Check a plain text string against an encrypted string previoulsy stored in JCMS.
|
int |
checkMemberAccessFile(java.lang.String filename,
Member member,
java.util.Set<java.lang.String> authorizedFilenames)
Check the access mode the given member has for the given file
|
void |
cleanStore(CleanFilter filter,
JcmsContext context)
Cleans the store.
|
void |
clearCurrentServletRequest()
Removes the current servlet request of the thread.
|
void |
clearCurrentServletResponse()
Removes the current servlet response of the thread.
|
boolean |
containsProperty(java.lang.String name)
Tests if this JProperties contains the given property key/name.
|
void |
createData(Data data,
Member opAuthor)
Creates a data in the store.
|
java.lang.String |
crypt(java.lang.String str)
Hash the specified string with the BCrypt encryption algorithm.
|
void |
deleteData(Data data,
Member opAuthor)
Delete a data in the store.
|
protected static void |
destroy()
Singleton Method to finaliez and destroy the channel.
|
void |
disableDataWrite(java.lang.String msg)
Disable data write.
|
void |
enableDataWrite()
Enable data wirte.
|
protected void |
finalize()
Handles the finalize invocation
|
void |
fireChannelFinalize()
Call method
ChannelListener.handleFinalize() of every
registered ChannelListener . |
void |
generateLogFromMemory()
Generates a cleaned version of the store.
|
java.util.Set<Member> |
getAdminSet()
Returns the set of administrators.
|
java.util.Set<Category> |
getAdvRefineRootSet()
Returns the categories to used as roots for the advanced refinement.
|
AlarmManager |
getAlarmManager(java.lang.String name)
Returns the AlarmManager associated to the given name.
|
java.util.Map<java.lang.String,AlarmManager> |
getAllAlarmManager()
Returns All alarmManager present in the channel
|
java.util.TreeSet<Data> |
getAllDataSet()
Returns all the data of this site in a new TreeSet.
|
<T> java.util.TreeSet<T> |
getAllDataSet(java.lang.Class<T> clazz)
Returns all instances of a given class and it's subclass.
|
<T extends Publication> |
getAllPublicationSet(java.lang.Class<T> clazz,
Member member)
Returns all publications of a given class AND subclasses that can be accessed by
a given member and that are in a visible state.
|
<T extends Publication> |
getAllPublicationSet(java.lang.Class<T> clazz,
Member member,
boolean checkPstatus)
Returns all publications of a given class AND subclasses that can be accessed by
a given member.
|
TypeFieldEntry[] |
getAllTypeFieldEntries(java.lang.Class<?> clazz)
Return an array of
TypeFieldEntry bound to given Class . |
TypeFieldEntry[] |
getAllTypeFieldEntries(java.lang.String className)
Return an array of
TypeFieldEntry bound to given Class name. |
AppServerInfo |
getAppServerInfo()
Return the AppServerInfo instance (a singleton) which describe
the underlying application server.
|
AuthenticationManager |
getAuthMgr()
Returns the current AuthenticationManager instance used by JCMS
to authenticate members into JCMS.
|
boolean |
getBooleanProperty(java.lang.String name,
boolean defaultValue)
Gets the value of a property as a boolean given its key/name.
|
CacheManager |
getCacheManager() |
Category |
getCategory(java.lang.String id)
Returns a category from its id
|
CategoryRight |
getCategoryRight(java.util.HashSet<Category> roots,
int mode,
boolean create)
Returns the CategoryRight matching the given criteria
|
static Channel |
getChannel()
Singleton Method to get the channel
|
JProperties |
getChannelProperties()
Returns the internal properties used by channel.
|
java.lang.Class |
getClass(java.lang.String className)
Load and return a class
|
java.lang.Class[] |
getClass(java.lang.String[] clazzStr)
Load and return classes
|
java.lang.ClassLoader |
getClassLoader()
Returns the classLoader
|
java.lang.String |
getCleanFilename(java.lang.String filename)
Clean the given filename.
|
java.util.List<CustomCleanFilter> |
getCleanFilterList()
Returns the list of custom clean filters.
|
AlarmManager |
getCommonAlarmManager()
Returns the common AlarmManager.
|
java.util.Set<Group> |
getCommonGroupSet()
Return all the global groups
|
java.util.ArrayList<java.lang.Class<? extends Publication>> |
getCoreTypeList()
Returns all the available core publication types (FileDocument, ArchivedPublication...)
|
java.lang.String |
getCountry()
Retrieve the default country of the site
|
Member |
getCurrentDelegateMember()
Returns the original Member of the current session if he has connected
to another account since then (using JCMS_sulogin feature).
|
JcmsContext |
getCurrentJcmsContext()
Returns the JcmsContext of the current
servlet request of the current thread.
|
Member |
getCurrentLoggedMember()
Returns the Member currently loggued in for the current request.
|
javax.servlet.http.HttpServletRequest |
getCurrentServletRequest()
Returns the current servlet request.
|
javax.servlet.http.HttpServletResponse |
getCurrentServletResponse()
Returns the current servlet response.
|
java.lang.String |
getCurrentUserLang()
Returns the user language if it is available (i.e. if called during a user request).
|
java.util.Locale |
getCurrentUserLocale()
Returns the user Locale if it is available (i.e. if called during a user request).
|
java.util.Collection<java.lang.Class<?>> |
getCustomExtensionCollection()
Returns all the DataExtension classes.
|
java.util.Map<java.lang.String,java.lang.Class<?>> |
getCustomExtensionMap()
Returns the map of String (Class) to data extension (Class).
|
java.util.List |
getCustomTypeList()
Return the list of custom publication types Class, that is all
the Publication Class of package "generated.".
|
<T extends Data> |
getData(java.lang.Class<T> clazz,
java.lang.String id)
Returns a data from its id.
|
Data |
getData(java.lang.String id)
Returns a data from its id
|
<T> java.util.Iterator<T> |
getDataAndDBDataIterator(java.lang.Class<T> clazz)
Returns an iterator on an hybrid list of data stored in the database and JStore.
|
java.util.Map<java.lang.Class<?>,java.util.Set<DataController>> |
getDataControllerMap()
Returns the internal map class/DataController.
|
java.util.Set<DataController> |
getDataControllerSet(java.lang.Class<?> clazz) |
long |
getDataCount(java.lang.Class<? extends Data> clazz)
Returns the number of data available for the given class.
|
java.util.Map<Data,ControllerStatus> |
getDataIntegrityReport(boolean refresh)
Checks the integrity constraints of all the data in the store.
|
java.util.Date |
getDataIntegrityReportDate()
Returns the date of the last report generation.
|
java.util.ArrayList<Data> |
getDataList(java.lang.String[] ids)
Returns the instances associated to an array of ids.
|
<T extends Data> |
getDataList(java.lang.String[] ids,
boolean ignoreNull,
java.lang.Class<T> clazz)
Returns the data corresponding to the given array of data ids.
|
java.lang.String |
getDataPath(java.lang.String uri)
Retrieves the file system path of the specified uri relative to the
directory
/WEB-INF/data/ of the webapp. |
DataRight |
getDataRight(boolean canPublish,
boolean canUpdateOther,
boolean canDeleteOther,
boolean create)
Returns a DataRight matching the given criteria.
|
<T> java.util.TreeSet<T> |
getDataSet(java.lang.Class<T> clazz)
Returns all instances of a given class and it's subclass.
|
java.util.TreeSet<?> |
getDataSet(java.lang.String[] ids)
Returns the instances associated to an array of ids.
|
<T> java.util.TreeSet<T> |
getDataSet(java.lang.String[] ids,
java.lang.Class<? extends T> clazz,
boolean neverNull)
Returns a set of data from an array of idenfiers.
|
java.lang.String |
getDataSourceLabel(java.lang.String dataSource,
java.lang.String userLang)
Returns the label for the given data source.
|
java.text.SimpleDateFormat |
getDateFormat(java.lang.String lang)
Retrieve a Date formated suitable for parsing and formatting of
date input of JCMS forms.
|
java.text.SimpleDateFormat |
getDateTimeFormat(java.lang.String lang)
Retrieve a Date formated suitable for parsing and formatting of
date & time input of JCMS forms.
|
DBData |
getDBData(java.lang.Class<?> clazz,
java.lang.Long rowId)
Returns a given DBData according its class and it row id.
|
<T> java.util.Iterator<T> |
getDBDataIterator(java.lang.Class<T> clazz)
Returns an iterator on the list of instance for the given class stored in the database.
|
<T> java.util.List<T> |
getDBDataList(java.lang.Class<T> clazz)
Returns all the instance for the given class stored in the database.
|
<T> java.util.List<T> |
getDBDataList(java.lang.Class<T> clazz,
int firstResult,
int maxResults)
Returns all the instance for the given class stored in the database.
|
java.util.List<java.lang.Class<? extends Publication>> |
getDBPublicationClassList()
Returns the list of Publication subclasses managed by Hibernate.
|
PageResult<Publication> |
getDBPublicationList(PublicationCriteria pubCriteria)
Returns a list of publications in the database matching the given criteria.
|
Member |
getDefaultAdmin()
Returns the default admin.
|
java.lang.String |
getDefaultEmail()
Returns the default email of the channel get from the property
channel.default-email
|
Group |
getDefaultGroup()
Returns the default group.
|
java.lang.String[] |
getDefaultQueryTypes()
Returns the default 'types' attribute to use for query (get from the property
query.default.types)
|
java.lang.String[] |
getDefaultQueryTypesOff()
Returns the default 'typesOff' attribute to use for query (get from the property
query.default.types-off)
|
Workspace |
getDefaultWorkspace()
Returns the default workspace.
|
java.util.TreeSet<? extends Storable> |
getDeletedSet(java.lang.Class<? extends Storable> clazz)
Get the latest version of the deleted Data for a given class.
|
double |
getDoubleProperty(java.lang.String name,
double defaultValue)
Gets the value of a property as a double value given its key/name.
|
java.util.TreeSet<Data> |
getFileIndexedDataSet(java.lang.String filename)
Returns the set of data bound to the given filename.
|
FileIndexManager |
getFileIndexManager()
Return the
FileIndexManager singleton instance which
manages Data's links to filename. |
ObjectLongTreeMap |
getFileSizeMap(boolean refresh)
Deprecated.
since jcms-7.1.0, use getGlobalFileAnalyzer method to have more information about satellites files
|
Publication |
getFirstPublicationFromTitle(java.lang.String title)
Returns the first publication with the title in default site language matching the given title.
|
<T> T |
getFirstPublicationSetFromTitle(java.lang.Class<T> clazz,
java.lang.String title)
Returns the first publications of the given class with title in default site language
matching the given title.
|
float |
getFloatProperty(java.lang.String name,
float defaultValue)
Gets the value of a property as a float value given its key/name.
|
Group |
getGroup(java.lang.String id)
Returns a group from its id
|
Group |
getGroupFromDN(java.lang.String dn)
Returns a LDAP group from its distinguish name.
|
int |
getHierarchicalWorkspaceLimit()
Returns the hierarchical workspace limit define by property "hierarchical-ws.menu-limit".
|
int[] |
getIntArrayProperty(java.lang.String name,
int[] defaultValue)
Gets the value of a property as a int array.
|
int |
getIntegerProperty(java.lang.String name,
int defaultValue)
Gets the value of a property as an int value given its key/name.
|
java.lang.String |
getJaliosPath(java.lang.String uri)
Retrieves the file system path of the specified uri relative to the
directory
/WEB-INF/jalios/ of the webapp. |
JcmsInfo |
getJcmsInfo()
Return a JcmsInfo instance (a singleton) which describe the JCMS version of this channel.
|
java.util.List<java.lang.String> |
getJcmsLanguageList()
Retrieves all the languages in which JCMS is localized.
|
java.lang.String |
getJcmsWorkPath(java.lang.String uri)
Retrieves the file system path of the specified uri relative to the
directory
/WEB-INF/jcmswork/ of the webapp. |
org.apache.oro.text.regex.Pattern |
getJSyncIpPattern() |
java.lang.String |
getJSyncLeaderUrl() |
JSyncPreviousReplicaManager |
getJSyncPreviousReplicaManager() |
JSyncReplica |
getJSyncReplica() |
java.lang.String |
getJSyncReplicaUrl() |
long |
getJSyncStabDelay() |
java.lang.String |
getLanguage() |
java.lang.String |
getLanguageDirection(java.lang.String lang)
Retrieves the text/table direction to use for the given language.
|
java.util.List<java.lang.String> |
getLanguageList()
Retrieve all the languages of this channel with the main
language as the first one of the list.
|
java.util.List<java.lang.String> |
getLanguageListOrdered()
Retrieve all the languages of this channel in the
exact ordered in which they were specified in the properties.
|
LangProperties |
getLanguageProperties()
Gets the internal language properties used by channel.
|
java.lang.Object[] |
getLangValue(java.lang.String lang,
boolean useDefault,
java.lang.Object[] value,
java.util.HashMap valueML)
Return a value bound to the given language
|
java.lang.Object[] |
getLangValue(java.lang.String lang,
boolean useDefault,
java.lang.Object[] value,
java.util.HashMap valueML,
java.lang.String mainLanguage)
Return a value bound to the given language
|
java.lang.Object |
getLangValue(java.lang.String lang,
boolean useDefault,
java.lang.Object value,
java.util.HashMap valueML)
Return a value bound to the given language
|
java.lang.Object |
getLangValue(java.lang.String lang,
boolean useDefault,
java.lang.Object value,
java.util.HashMap valueML,
java.lang.String mainLanguage)
Return a value bound to the given language
|
java.lang.String[] |
getLangValue(java.lang.String lang,
boolean useDefault,
java.lang.String[] value,
java.util.HashMap valueML)
Return a value bound to the given language
|
java.lang.String[] |
getLangValue(java.lang.String lang,
boolean useDefault,
java.lang.String[] value,
java.util.HashMap valueML,
java.lang.String mainLanguage)
Return a value bound to the given language
|
java.lang.String |
getLangValue(java.lang.String lang,
boolean useDefault,
java.lang.String value,
java.util.HashMap valueML)
Return a value bound to the given language
|
java.lang.String |
getLangValue(java.lang.String lang,
boolean useDefault,
java.lang.String value,
java.util.HashMap valueML,
java.lang.String mainLanguage)
Return a value bound to the given language
|
LDAPConfiguration |
getLDAPConfiguration()
Returns the default LDAPConfiguration used by JCMS which you can give
to
LDAPMapper.LDAPMapper(LDAPConfiguration) to
connect to your LDAP server. |
LDAPConfiguration |
getLDAPConfigurationFromDN(java.lang.String dn)
Retrieve the LDAPConfiguration for the specific DN.
|
LDAPConfiguration |
getLDAPConfigurationFromDomain(java.lang.String domain)
Retrieve the LDAPConfiguration for the specific domain.
|
LDAPConfiguration |
getLDAPConfigurationFromLogin(java.lang.String login)
Retrieve the LDAPConfiguration to use based on the specified login.
|
LimitController |
getLimitController()
Returns the LimitController which is in charge to validate license
limitations of JCMS.
|
int |
getLinkCount(Data data)
Returns the number of instances of Data referring the given Data
|
<T> java.util.TreeSet<T> |
getLinkIndexedDataSet(Data data,
java.lang.Class<T> clazz)
Returns the Set of Data of the given Class, referring the given data.
|
<T> java.util.TreeSet<T> |
getLinkIndexedDataSet(Data data,
java.lang.Class<T> clazz,
java.lang.String field)
Returns the Set of Data of the given Class, referring the given data with the given field.
|
LinkIndexManager |
getLinkIndexManager()
Return the
LinkIndexManager singleton instance which
manages Data's links on each other. |
java.util.Locale |
getLocale()
Return the locale of the channel
|
java.util.List<java.lang.String> |
getLocalizedLanguageList()
Retrieves all the languages specified in the properties in which JCMS is localized.
|
long |
getLockTimeout()
Return the lock timeout in milliseconds.
|
long |
getLongProperty(java.lang.String name,
long defaultValue)
Gets the value of a property as a long value given its key/name.
|
java.lang.String |
getLucenePath(java.lang.String uri)
Retrieves the file system path of the specified uri relative to the
directory
/WEB-INF/data/lucene/ of the webapp. |
Member |
getMember(java.lang.String id)
Returns a member from its id
|
Member |
getMemberFromEmail(java.lang.String email)
Returns the member with the given email.
|
Member |
getMemberFromLogin(java.lang.String login)
Returns the member with the given login.
|
Member |
getMemberFromLogin(java.lang.String login,
boolean checkDisabled)
Returns the member with the given login.
|
LuceneMemberSearchEngine |
getMemberSearchEngine()
Retrieve the singleton instance of the MemberSearchEngine used by JCMS.
|
MetaDataExtractor |
getMetaDataExtractor(java.lang.String contentType)
Returns a metadata extractor bound to the given contentType
|
java.lang.String |
getName()
Returns the name of the channel
|
CategoryRight |
getNoCategoryRight()
Returns the CategoryRight which sets edition of cateogry forbidden
|
NotificationManager |
getNotificationManager() |
PageResult<Publication> |
getNotVisibleDBPublicationList(PublicationCriteria pubCriteria)
Returns a list publications in the database matching the given criteria and not in a visible state.
|
java.util.List<java.io.File> |
getOrphanFiles()
Returns the files which are not referenced by any JCMS publication.
|
java.util.List<java.io.File> |
getOrphanFiles(boolean searchInDB)
Returns the files which are not referenced by any JCMS publication.
|
java.util.List<java.io.File> |
getOrphanFiles(java.io.FileFilter filter)
Returns the files which are not referenced by any JCMS publication.
|
java.util.List<java.io.File> |
getOrphanFiles(java.io.FileFilter filter,
boolean searchInDB)
Returns the files which are not referenced by any JCMS publication.
|
java.util.List<java.lang.String> |
getOtherLanguageList()
Retrieve all the languages of this channel excepted the main language.
|
PolicyManager |
getPolicyManager()
Retrieve the singleton instance of the PolicyManager used by JCMS.
|
LangProperties |
getProperties(java.lang.String prefix)
Gets a new LangProperties instance containg all the properties whose name
starts with the given prefix.
|
java.lang.String |
getProperty(java.lang.String name)
Gets value of a property.
|
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Gets the value of a property given its key/name.
|
Publication |
getPublication(java.lang.String id)
Returns a publication from its id
|
<T extends Publication> |
getPublicationSet(java.lang.Class<T> clazz,
Member member)
Returns all publications of a given class that can be accessed by
a given member and that are in a visible state.
|
<T extends Publication> |
getPublicationSet(java.lang.Class<T> clazz,
Member member,
boolean checkPstatus)
Returns all publications of a given class that can be accessed by
a given member.
|
<T extends Publication> |
getPublicationSet(java.lang.Class<T> clazz,
Member member,
boolean checkPstatus,
Workspace workspace)
Returns all publications of a given class that can be accessed by
a given member.
|
<T extends Publication> |
getPublicationSet(java.lang.Class<T> clazz,
Member member,
boolean checkPstatus,
Workspace workspace,
boolean searchDB) |
java.util.Set<Publication> |
getPublicationSet(java.util.Set<Publication> publicationSet,
Workflow wf)
Return a SubSet of all publication using the given workflow
|
<T extends Publication> |
getPublicationSet(java.util.Set<T> publicationSet,
boolean specialState)
Return a SubSet of publication in or not in special state.
|
<T> java.util.Set<T> |
getPublicationSetFromTitle(java.lang.Class<T> clazz,
java.lang.String title)
Returns all publications of the given class with title in default site language
matching the given title.
|
java.util.Set<Publication> |
getPublicationSetFromTitle(java.lang.String title)
Returns all publications with title in default site language
matching the given title.
|
java.util.Set<Publication> |
getPublicationSetFromTitle(java.lang.String title,
boolean searchInDB) |
java.lang.Class<?>[] |
getPublicationSuperTypes()
Returns the super publication types (i.e.
|
java.util.List<java.lang.Class<? extends Publication>> |
getPublicationTypeList()
Returns all the available publication types (sorted on the main language).
|
java.util.List<java.lang.Class<? extends Publication>> |
getPublicationTypeList(java.lang.String lang)
Retrieves all the available publication types sorted on the given language.
|
java.util.HashSet<Publication> |
getPublicationWithoutCategories()
Returns all the publications without categories in
a new HashSet.
|
<T> java.util.ArrayList<java.lang.Class<? extends T>> |
getPublishableSubTypeList(java.lang.Class<T> clazz,
Member member)
Returns all the publication types which extends the giving one and that
the given member is allowed to publish and that are not abstract.
|
QueryManager |
getQueryManager()
Retrieve the singleton instance of the QueryManager used by JCMS.
|
java.lang.String |
getRealPath(java.lang.String uri)
Retrieves the file system path of the specified uri relative to the
webapp root folder.
|
java.util.Set<Category> |
getRefineRootSet()
Returns the categories to used as roots for the refinement.
|
java.lang.String |
getRelativePath(java.io.File file)
Retrieves a path relative to the webapp root, from a File instance.
|
Category |
getRootCategory()
Returns the root category using the id specified in the property
channel.root-category default to j_3 . |
java.util.Set<Category> |
getRootCategoryAsSet()
A convenient method which returns a set containing the root
category
|
CategoryRight |
getRootCategoryRight()
Returns the CategoryRight allowing edition of all the cateogry
|
java.util.Set<Category> |
getSearchRootSet()
Returns the categories to used as root for the search.
|
java.lang.String |
getSecuredBaseUrl(javax.servlet.http.HttpServletRequest request)
Returns the base URL of the given request, modifying it according to
the fact that SSL is enabled or not.
|
java.lang.String |
getSenderFullEmail()
Retrieves the full email that can be used to send message from JCMS
|
java.lang.String |
getSenderFullEmail(Publication pub,
java.lang.String lang)
Retrieves the full email that can be used to send message from JCMS
given a workspace and a language
|
java.lang.String |
getSenderFullEmail(Workspace ws,
Publication pub,
java.lang.String lang)
Retrieves a full email (something
"WorkspaceName - the publication's workspace email, "Pub's WorkspaceName - the channel default email,
"Channel Name - last the default admin email, "Default Admin |
java.lang.String |
getSenderFullEmail(Workspace ws,
java.lang.String lang)
Retrieves the full email that can be used to send message from JCMS
given a workspace and a language
|
javax.servlet.ServletContext |
getServletContext()
Returns the ServletContext used for this site.
|
java.util.Map<java.lang.String,java.lang.String> |
getSortedProperties(java.lang.String prefix)
Returns a Map containing all the properties whose name
starts with the given prefix sorted by key.
|
java.util.Map<java.lang.String,java.lang.String> |
getSortedProperties(java.lang.String prefix,
boolean trim)
Returns a Map containing all the properties whose name
starts with the given prefix sorted by key.
|
int |
getSSLport() |
StatReportListener |
getStatReportListener()
Return the StoreListener used to listen to
StatReport object modification to
update schedule of Statistics. |
Storable |
getStorable(java.lang.String id)
Returns a storable from its id.
|
Store |
getStore()
Returns the store.
|
int |
getStoreCreateCount()
Returns the count of create operations recorded in the store.
|
int |
getStoreDeleteCount()
Returns the count of delete operations recorded in the store.
|
java.util.Map<java.lang.Class<?>,java.util.Set<StoreListener>> |
getStoreListenerClassMap()
Returns the map class/StoreListener.
|
java.util.Set<StoreListener> |
getStoreListenerSet()
Returns the set of StoreListener listening for all data.
|
LoadReport |
getStoreLoadReport()
Returns the store load report
|
int |
getStoreSize()
Returns the size of the store (ie the data count) in bytes.
|
int |
getStoreUpdateCount()
Returns the count of update operations recorded in the store.
|
java.lang.String[] |
getStringArrayProperty(java.lang.String name,
java.lang.String[] defaultValue)
Gets the value of a property as a String array.
|
java.util.Map<java.lang.String,java.lang.Object> |
getSubProperties(java.lang.String prefix) |
<T> java.util.List<java.lang.Class<? extends T>> |
getSubTypeList(java.lang.Class<T> clazz)
Returns a list of the publication types which extends the giving one.
|
<T> java.util.List<java.lang.Class<? extends T>> |
getSubTypeList(java.lang.Class<T> clazz,
java.lang.String lang)
Returns a list of the publication types which extends the giving one.
|
Category |
getTagRoot()
Returns the common tag root.
|
Category |
getTagRoot(Workspace ws)
Returns the tag root for the given workspace if it exists ; otherwise return the common tag root.
|
TypeFieldEntry |
getTypeAbstractFieldEntry(java.lang.Class<?> clazz)
Returns the
TypeFieldEntry associated to the abstract (summary)
field of the specified type. |
java.lang.String |
getTypeDescription(java.lang.Class clazz,
java.lang.String lang)
Returns the description of the given type (class) in the given language.
|
java.lang.String |
getTypeDescription(java.lang.Class clazz,
Workspace workspace,
java.lang.String lang)
Returns the description of the given type for the given workspace in the given language.
|
TypeEntry |
getTypeEntry(java.lang.Class<?> clazz)
Return the TypeEntry bound to given
Class . |
TypeEntry |
getTypeEntry(java.lang.String className)
Return the TypeEntry bound to given
className . |
TypeFieldEntry[] |
getTypeFieldEntries(java.lang.Class<?> clazz)
Return an array of
TypeFieldEntry bound to given Class . |
TypeFieldEntry[] |
getTypeFieldEntries(java.lang.String className)
Return an array of
TypeFieldEntry bound to given Class . |
TypeFieldEntry |
getTypeFieldEntry(java.lang.Class<?> clazz,
java.lang.String fieldName)
Returns the TypeFieldEntry bound to the given field of the given class.
|
TypeFieldEntry |
getTypeFieldEntry(java.lang.Class<?> clazz,
java.lang.String fieldName,
boolean checkAll)
Return the
TypeFieldEntry associated to the given Class and fieldName. |
java.lang.String |
getTypeFieldLabel(java.lang.Class<?> clazz,
java.lang.String fieldName)
Returns the localized label of the given field of the given class.
|
java.lang.String |
getTypeFieldLabel(java.lang.Class<?> clazz,
java.lang.String fieldName,
java.lang.String lang)
Returns the localized label of the given field of the given class.
|
java.lang.String |
getTypeFieldLabel(Data data,
java.lang.String fieldName)
Returns the localized label of the given field of the given data.
|
java.lang.String |
getTypeFieldLabel(Data data,
java.lang.String fieldName,
java.lang.String lang)
Returns the localized label of the given field of the given data.
|
java.lang.String |
getTypeLabel(java.lang.Class<?> clazz,
java.lang.String lang)
Returns the label of the given type (class) in the given language.
|
java.lang.String |
getTypeLabel(java.lang.Class<?> clazz,
Workspace workspace,
java.lang.String lang)
Returns the label of the given type (class) in the given workspace in the given language.
|
Channel.TypeLabelComparator |
getTypeLabelComparator(java.lang.String lang)
Retrieves a new instance of a TypeLabelComparator which sorts
Class using their TypeProcessor label.
|
java.lang.String |
getUploadParentPath()
Returns the path of the directoy that contains the upload directory.
|
java.lang.String |
getUploadPath(java.lang.String uri)
Retrieves the file system path of the specified uri relative to the
upload directory of the webapp (
/upload/ ). |
java.lang.String |
getUrid()
Returns the urid of the channel
|
java.lang.String |
getUrl()
Returns the Url of the channel.
|
java.lang.String |
getUsedLanguage(Data data,
java.lang.String fieldName,
java.lang.String lang)
Retrieve the language code really used if the field of the given
publication is requested in the given language.
|
java.util.List<? extends Storable> |
getVersionList(Data data)
Get all the version of a given Data.
|
java.util.List<? extends Storable> |
getVersionList(java.lang.String id)
Get all the version of a Data, given its id.
|
java.util.Set<java.lang.String> |
getVirtualIDSet(Data data)
Returns the set of virtual ID bound to the given data (or null if it does not exist).
|
PageResult<Publication> |
getVisibleDBPublicationList(PublicationCriteria pubCriteria)
Returns a list publications in the database matching the given criteria and in a visible state.
|
int[] |
getVisiblePstatus()
Returns the default (aka visible) pstatus attribute to use for
query (get from the property query.default.pstatus)
|
java.lang.String |
getWebappPath()
Retrieves the file system path of the webapp root.
|
java.lang.String |
getWebInfPath(java.lang.String uri)
Retrieves the file system path of the specified uri relative to the
directory
/WEB-INF/ of the webapp. |
Workspace |
getWorkspace(java.lang.String id)
Return a Workspace from its id
|
java.util.Set<Workspace> |
getWorkspaceSet(Workflow wf)
Return a Set of Workspace that use the given Workflow
|
WSTypeEntry |
getWSTypeEntry(java.lang.Class clazz,
Workspace workspace)
This method is a substitute of old getTypeEntry(Class) or getTypeEntry(String).
|
WSTypeEntry |
getWSTypeEntry(java.lang.String className,
Workspace workspace)
This method is a substitute of old getTypeEntry(Class) or getTypeEntry(String).
|
void |
handleDataWriteState(boolean disable,
java.lang.String msg,
boolean updateProperty)
Handle the given data write state and perform the update in properties if needed.
|
void |
handleFinalize()
This method is called when the site is restarted or shutdown.
|
void |
handleJcmsDBError(java.lang.String msg,
java.lang.Throwable th)
This method is called when a fatal error occurs on the JcmsDB.
|
void |
handleStoreError(java.lang.String msg,
java.lang.Throwable th)
This method is called when a fatal error occurs on the store.
|
protected void |
initAfterLoad()
Perform all the initalizations after the store has been loaded
(called byte ChannelInitServlet)
|
protected void |
initBeforeLoad()
Perform all the initalizations before the store has been loaded
(called byte ChannelInitServlet)
|
protected void |
initHibernate() |
protected static void |
initialize(javax.servlet.ServletContext context,
java.lang.String logFile,
java.lang.String webappPropFile,
java.lang.String customPropFile,
java.lang.ClassLoader classLoader)
Singleton method to Instanciate the channel.
|
void |
initVirtualIDMap()
Init the virtual ID map (data, virtual ID).
|
void |
invalidateSearchAndRefineRootSet()
Invalidate search and refine root set (they will be computed at the next call).
|
boolean |
isAuthenticationRequired()
Returns true if the authentication is required in this site
(use the value of channel.is-authentication-required property)
|
boolean |
isAvailable()
Check if the site is started and ready.
|
boolean |
isDataWriteEnabled()
Checks if data write are enabled (see channel.data-write.enabled property)
|
boolean |
isDeployManagerEnabled()
Returns true if the DeployManager is enabled.
|
boolean |
isFailSafeMode() |
boolean |
isGzipCompressionEnabled() |
boolean |
isJSyncAutoUpdate() |
boolean |
isJSyncEnabled() |
boolean |
isLdapEnabled() |
boolean |
isLoginAccentSensitive() |
boolean |
isLoginCaseSensitive() |
boolean |
isMailEnabled() |
boolean |
isMainLanguage(java.lang.String lang) |
boolean |
isMainLeader()
Return leadership status of JCMS when using in cluster.
|
boolean |
isMultilingual() |
boolean |
isNotificationEnabled() |
boolean |
isRegistered(Data data)
Checks if the given data is still registered in the Store.
|
boolean |
isRegistered(java.lang.String id)
Checks if the given data is still registered in the Store.
|
boolean |
isReverseProxyEnabled()
Checks if the reverse proxy is enabled.
|
boolean |
isSSLenabled() |
boolean |
isUsingAdvancedI18N()
Indicates whether JCMS is in advanced internationalization mode.
|
boolean |
isValidAdminIP(javax.servlet.ServletRequest request)
Checks if the specified request is authorized to access admin area.
|
boolean |
isValidWorkspacesIP(javax.servlet.ServletRequest request)
Checks if the specified request is authorized to access workspace area.
|
boolean |
isVisiblePstatus(int pstatus)
Check if a pstatus is a default (aka visible) query pstatus
(replace previous method isDefaultQueryPstatus).
|
boolean |
isWebdavEnabled()
Check if Webdav is enable
|
protected void |
loadStore()
Load the JCMS store file.
|
void |
performStoreBackup()
Perform a backup of the store.
|
java.lang.String |
processReverseProxyRedirect(javax.servlet.ServletRequest request,
java.lang.String url)
Check if the given request comes from one of the reverse proxies
specified in the configuration (channel.reverse-proxy.conf*).
|
boolean |
processReverseProxyRequest(javax.servlet.ServletRequest request)
Check if the given request comes from one of the reverse proxies
specified in the configuration (channel.reverse-proxy.conf*).
|
void |
propertiesChange(JProperties p)
This methods triggers re-initialization of all the managers/parameters of this
JCMS site, only those that can be reinitialized without a restart.
|
QueryResultSet |
query(QueryHandler qh,
javax.servlet.ServletRequest request,
java.util.Set<? extends Publication> proposedDataSet)
Perform a query using parameters specified in the given
QueryHandler . |
void |
reloadLanguageProperties()
Reload languages properties of JCMS (WEB-INF/jalios/languages/{lang}.prop).
|
void |
removeAuthenticationHandler(AuthenticationHandler authHandler)
Remove the specified
AuthenticationHandler from the list of
AuthenticationHandlers used by the AuthenticationManager
to process users' authentication. |
void |
removeChannelListener(ChannelListener listener)
Removes a ChannelListener.
|
void |
removeCleanFilter(CustomCleanFilter filter)
Removes a custom clean filter.
|
void |
removeDataController(DataController dc,
java.lang.Class<?> clazz)
Remove the given DataController
|
void |
removeDBListener(DBListener listener)
Remove a DBListener.
|
void |
removeDBListener(DBListener listener,
java.lang.Class<?> clazz)
Remove a DBListener.
|
void |
removePolicyFilter(PolicyFilter pf)
Remove the given
PolicyFilter to the list of RightPolicyFilter used by
the PolicyManager (getPolicyManager() ). |
void |
removePropertiesListener(JPropertiesListener listener)
Removes a properties listener.
|
void |
removeQueryFilter(QueryFilter qf)
Remove the given
QueryFilter from the list of QueryFilters used by
the QueryManager (getQueryManager() ). |
void |
removeStoreListener(StoreListener listener)
Removes a StoreListener for all storable classes.
|
void |
removeStoreListener(StoreListener listener,
java.lang.Class<?> clazz)
Removes a StoreListener associated to a given class.
|
void |
restart()
Restarts the channel.
|
<T> java.util.TreeSet<T> |
select(java.util.Collection<? extends T> dataColl,
DataSelector selector,
java.util.Comparator comparator)
Perform a selection on a
Collection of Data using
the given DataSelector , and return a TreeSet sorted using the
given Comparator . |
void |
setAvailable(boolean isAvailable)
Enable or disable the site.
|
void |
setCurrentServletRequest(javax.servlet.http.HttpServletRequest request)
Assigns the current servlet request.
|
void |
setCurrentServletResponse(javax.servlet.http.HttpServletResponse response)
Assigns the current servlet response.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Modify an internal property with the given value.
|
java.lang.String |
toString() |
void |
updateAndSaveProperties(JProperties prop)
Updates and save specified properties.
|
protected void |
updateClass2DataSet(Data data,
boolean add)
This methods is called by a DataListener when a Data is updated or created
to update the map which link Class to Set of Data.
|
void |
updateData(Data updated,
Member opAuthor)
Updates a data in the store.
|
public static final java.lang.String REVISION
protected javax.servlet.ServletContext context
protected java.lang.String logFilePath
protected java.lang.String webappPropFilePath
protected java.lang.String customPropFilePath
protected java.lang.ClassLoader classLoader
protected JcmsInfo jcmsInfo
protected java.lang.String name
protected AppServerInfo appServerInfo
protected boolean isAvailable
protected java.lang.String urid
protected java.lang.String url
protected java.lang.String securedUrl
protected java.lang.String uri
protected Store store
protected java.lang.String language
protected java.lang.String country
protected java.util.Locale locale
protected java.text.SimpleDateFormat dateTimeFormat
protected java.text.SimpleDateFormat dateFormat
protected java.util.HashMap<java.lang.String,java.text.SimpleDateFormat> dateTimeFormatMap
protected java.util.HashMap<java.lang.String,java.text.SimpleDateFormat> dateFormatMap
protected Group defaultGroup
protected Member defaultAdmin
protected Workspace defaultWorkspace
protected java.lang.String defaultEmail
protected int realPathLength
protected java.io.File webappDir
protected LangProperties properties
protected java.util.Map<java.lang.String,AlarmManager> alarmManagerMap
protected CacheManager cacheManager
protected TypeProcessor typeProcessor
protected java.util.ArrayList<java.lang.String> langList
protected java.util.ArrayList<java.lang.String> langListOrdered
protected java.util.ArrayList<java.lang.String> otherLangList
protected java.util.ArrayList<java.lang.String> localizedLangList
protected java.util.ArrayList<java.lang.String> jcmsLangList
protected org.apache.oro.text.regex.Pattern adminIpPattern
protected boolean adminIpNoPattern
protected org.apache.oro.text.regex.Pattern workspacesIpPattern
protected boolean workspacesIpNoPattern
protected boolean isDataWriteEnabled
protected boolean isDataWriteEnabledComputed
protected boolean isWebdavEnable
protected boolean isWebdavEnableComputed
protected boolean isGzipCompressionEnabled
protected boolean isDeployManagerEnabled
protected java.lang.String webdavEncoding
protected java.lang.ThreadLocal<javax.servlet.http.HttpServletRequest> currentServletRequest
protected java.lang.ThreadLocal<javax.servlet.http.HttpServletResponse> currentServletResponse
protected AlarmEntry nlAlarmEntry
protected java.io.File storeBackupDir
protected int storeBackupMax
protected java.util.Map<java.lang.String,java.lang.String> httpHeaderMap
protected java.util.Set<java.lang.String> httpHeaderExcludedSet
protected boolean isReverseProxyEnabled
protected java.util.HashMap<java.lang.String,java.lang.String> ipToReverseProxyConfNameMap
protected java.util.HashMap<java.lang.String,java.lang.String> reverseProxyContextPath
protected java.util.HashMap<java.lang.String,java.lang.String> reverseProxyBaseURL
protected java.util.HashMap<java.lang.String,java.lang.String> reverseProxySSLBaseURL
protected LDAPConfiguration ldapConf
protected AuthenticationManager authMgr
protected NotificationManager notificationManager
protected boolean isNotificationEnabled
protected static boolean isSSLenabled
protected static int SSLport
protected LimitController limitController
protected JSyncReplica jsyncReplica
protected boolean jsyncEnabled
protected java.lang.String jsyncReplicaUrl
protected java.lang.String jsyncLeaderUrl
protected boolean jsyncHasLeader
protected java.lang.String jsyncUpdateMode
protected long jsyncStabDelay
protected boolean jsyncAutoUpdate
protected boolean jsyncSyncFiles
protected long jsyncDownloadInterval
protected org.apache.oro.text.regex.Pattern jsyncIpPattern
protected JSyncPreviousReplicaManager jsyncPreviousReplicaManager
protected boolean jsyncSuggestJoin
protected java.lang.String jsyncExplicitReplicaList
protected LinkIndexManager lim
protected FileIndexManager fim
protected DataListener dataListener
protected PublicationListener pubListener
protected StatReportListener statReportListener
protected java.util.TreeSet<ChannelListener> channelListenerSet
protected PolicyManager policyManager
protected java.util.Map<java.lang.Class<? extends Data>,java.util.Set<Data>> class2dataSet
protected Category rootCategory
protected Category tagRoot
protected java.util.Set<Category> rootCategoryAsSet
protected java.util.Set<Category> searchRootSet
protected java.util.Set<Category> refineRootSet
protected java.util.Set<Category> advRefineRootSet
protected java.util.ArrayList<java.lang.Class<? extends Publication>> coreTypeList
protected java.util.Map<java.lang.String,java.util.List<java.lang.Class<? extends Publication>>> publicationTypeMap
protected java.lang.String[] defaultQueryTypes
protected java.lang.String[] defaultQueryTypesOff
protected int[] visiblePstatus
protected CategoryRight rootCategoryRight
protected CategoryRight noCategoryRight
protected java.util.Set<Publication> pubWithoutCategories
protected java.util.HashMap<Storable,java.util.Set<java.lang.String>> virtualIDMap
protected java.util.HashMap<java.lang.Class<?>,java.util.Map<java.lang.String,TypeFieldEntry>> allTypeFieldEntriesCacheMap
protected java.util.HashMap<java.lang.Class<?>,java.util.Map<java.lang.String,TypeFieldEntry>> exactTypeFieldEntriesCacheMap
protected java.util.HashMap<java.lang.Class<?>,java.util.Set<DataController>> dataControllerMap
protected java.util.TreeMap<Data,ControllerStatus> dataIntegrityReport
protected java.util.Date dataIntegrityReportDate
protected QueryManager queryMgr
protected LuceneMemberSearchEngine mbrSearchEngine
protected java.util.List<CustomCleanFilter> cleanFilterList
protected java.lang.Class<?>[] publicationSuperTypes
protected boolean isUsingAdvancedI18N
protected java.util.HashSet<java.lang.String> rightToLeftLanguageSet
protected ObjectLongTreeMap fileSizeMap
protected static Channel channel
public void reloadLanguageProperties() throws java.io.IOException
java.io.IOException
- If an error occurspublic static Channel getChannel()
protected static void initialize(javax.servlet.ServletContext context, java.lang.String logFile, java.lang.String webappPropFile, java.lang.String customPropFile, java.lang.ClassLoader classLoader) throws java.lang.Exception
context
- the ServletContextlogFile
- the relative file path of the logwebappPropFile
- the relative file path of the webapp.prop propertiescustomPropFile
- the relative file path of the webapp.prop propertiesclassLoader
- the web-app ClassLoaderjava.lang.Exception
- If an error occursprotected static void destroy()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void fireChannelFinalize()
ChannelListener.handleFinalize()
of every
registered ChannelListener
.addChannelListener(ChannelListener)
,
removeChannelListener(ChannelListener)
public void handleFinalize()
ChannelListener
protected void initHibernate() throws java.lang.Exception
java.lang.Exception
protected void initBeforeLoad() throws java.lang.Exception
java.lang.Exception
- If an error occursprotected void loadStore() throws LogException
LogException
- If an error occursprotected void initAfterLoad() throws java.lang.Exception
java.lang.Exception
- If an error occurspublic void propertiesChange(JProperties p)
propertiesChange
in interface JPropertiesListener
p
- the properties which have been modified (may not contain all JCMS properties)public StatReportListener getStatReportListener()
StatReport
object modification to
update schedule of Statistics.public AppServerInfo getAppServerInfo()
public boolean isReverseProxyEnabled()
public boolean processReverseProxyRequest(javax.servlet.ServletRequest request)
request
- the current requestpublic java.lang.String processReverseProxyRedirect(javax.servlet.ServletRequest request, java.lang.String url)
request
- the current requesturl
- the URL to be modified with reverse proxy settingspublic boolean isDeployManagerEnabled()
public LimitController getLimitController()
public boolean isJSyncEnabled()
public boolean isMainLeader()
public JSyncReplica getJSyncReplica()
public JSyncPreviousReplicaManager getJSyncPreviousReplicaManager()
public java.lang.String getJSyncReplicaUrl()
public java.lang.String getJSyncLeaderUrl()
public boolean isJSyncAutoUpdate()
public long getJSyncStabDelay()
public org.apache.oro.text.regex.Pattern getJSyncIpPattern()
public boolean isGzipCompressionEnabled()
public boolean isNotificationEnabled()
public NotificationManager getNotificationManager()
public boolean isMailEnabled()
public LinkIndexManager getLinkIndexManager()
LinkIndexManager
singleton instance which
manages Data's links on each other.public <T> java.util.TreeSet<T> getLinkIndexedDataSet(Data data, java.lang.Class<T> clazz)
T
- any object type (usually something extending Data)data
- the dataclazz
- the class to search the referring instancespublic <T> java.util.TreeSet<T> getLinkIndexedDataSet(Data data, java.lang.Class<T> clazz, java.lang.String field)
T
- any object type (usually something extending Data)data
- the dataclazz
- the class to search the referring instancesfield
- the name of the field which contains the referencepublic int getLinkCount(Data data)
data
- the data for which we want to retrieve link countpublic FileIndexManager getFileIndexManager()
FileIndexManager
singleton instance which
manages Data's links to filename. public java.lang.String getCleanFilename(java.lang.String filename)
///upload%2Fmydir///private.%70df -> upload/mydir/private.pdf
filename
- the URI to be decoded, converted to a valid path relative to the webapppublic java.util.TreeSet<Data> getFileIndexedDataSet(java.lang.String filename)
filename
- a relative filename ("upload/...").public boolean canMemberAccessFile(java.lang.String filename, Member member)
filename
- the filename to be checkedmember
- the membercheckMemberAccessFile(String, Member, Set)
public int checkMemberAccessFile(java.lang.String filename, Member member, java.util.Set<java.lang.String> authorizedFilenames)
filename
- the filename to be checkedmember
- the memberauthorizedFilenames
- Set of filename authorized, placed in session while executing version.jspPRIVATE_FILE_ACCESS
, PUBLIC_FILE_ACCESS
, FORBIDDEN_FILE_ACCESS
canMemberAccessFile(String, com.jalios.jcms.Member)
public ObjectLongTreeMap getFileSizeMap(boolean refresh)
refresh
- if true refresh the mappublic java.util.List<java.io.File> getOrphanFiles()
public java.util.List<java.io.File> getOrphanFiles(boolean searchInDB)
searchInDB
- if true extends the search to the databasepublic java.util.List<java.io.File> getOrphanFiles(java.io.FileFilter filter)
filter
- the FileFilter to use (may be null)public java.util.List<java.io.File> getOrphanFiles(java.io.FileFilter filter, boolean searchInDB)
filter
- the FileFilter to use (may be null)searchInDB
- true if file search should also be performed for DBFileDocument, false otherwisepublic final boolean isSSLenabled()
public final int getSSLport()
public final java.lang.String getSecuredBaseUrl(javax.servlet.http.HttpServletRequest request)
request
- the requestpublic LDAPConfiguration getLDAPConfiguration()
LDAPMapper.LDAPMapper(LDAPConfiguration)
to
connect to your LDAP server.public boolean isLdapEnabled()
public LDAPConfiguration getLDAPConfigurationFromLogin(java.lang.String login)
If the specified login is a mail, a Windows UPN (User Principal Name) format, or
a down-level windows logon format (DOMAIN\sAMAccountName), the domain part is
extracted and the LDAP configuration will be read from properties
ldap.server.{DOMAIN}.*
(if available) instead of the
default ldap.server.*
properties.
Configuration alias can also be defined with property
ldap.conf-aliases.{domain}: confname
allowing several domain to
match on LDAP configuration.
login
- the login used to determine which configuration to usegetLDAPConfiguration()
.public LDAPConfiguration getLDAPConfigurationFromDomain(java.lang.String domain)
domain
- an optionnal configuration name or alias, as declared in ldap configuration
properties ldap.server.{domain}.*
or through LDAP configuration
alias declared in property ldap.conf-aliases.{domain}: confname
getLDAPConfiguration()
)public LDAPConfiguration getLDAPConfigurationFromDN(java.lang.String dn)
Look for the first LDAPConfiguration which has a matching baseDN,
tested on both user base DN (LDAPConfiguration.getSuffix()
)
and group base DN (LDAPConfiguration.getGroupSuffix()
).
dn
- an LDAP distinguish namegetLDAPConfiguration()
)public AuthenticationManager getAuthMgr()
public boolean isAuthenticationRequired()
public boolean isLoginCaseSensitive()
AuthenticationManager.isLoginCaseSensitive()
public boolean isLoginAccentSensitive()
AuthenticationManager.isLoginAccentSensitive()
public CacheManager getCacheManager()
public AlarmManager getAlarmManager(java.lang.String name)
AlarmManager.getAllAlarms()
)
or removed (AlarmManager.removeAllAlarms()
).name
- the name of the AlarmManager.getCommonAlarmManager()
public AlarmManager getCommonAlarmManager()
AlarmManager.getAllAlarms()
) and
(AlarmManager.removeAllAlarms()
have not to be called.getAlarmManager(String)
public java.util.Map<java.lang.String,AlarmManager> getAllAlarmManager()
AlarmManager
with the name as keypublic javax.servlet.ServletContext getServletContext()
public java.lang.String getRealPath(java.lang.String uri)
new File()
constructor.
String realFilePath = channel.getRealPath("/upload/myfile.txt"); File myFile = new File(realFilePath);
uri
- a path relative to the webapp root (with or without starting slash).
e.g "/upload/somefile.txt"
, "WEB-INF/data/somefolder"
"C:\tomcat\webapps\jcms\WEB-INF\data\somefolder"
.public java.lang.String getWebappPath()
"C:\tomcat\webapps\jcms\"
.public java.lang.String getWebInfPath(java.lang.String uri)
/WEB-INF/
of the webapp.new File()
constructor.
String webXmlPath = channel.getWebInfPath("web.xml"); File webXmlFile = new File(webXmlPath);
uri
- a path relative to the /WEB-INF/
directory (with or without starting slash).
e.g "web.xml"
"C:\tomcat\webapps\jcms\WEB-INF\web.xml"
.getRealPath(String)
public java.lang.String getDataPath(java.lang.String uri)
/WEB-INF/data/
of the webapp.new File()
constructor.
String statusPropPath = channel.getDataPath("status.prop"); File statusPropFile = new File(statusPropPath);
uri
- a path relative to the /WEB-INF/data/
directory (with or without starting slash).
e.g "status.prop"
"C:\tomcat\webapps\jcms\WEB-INF\data\status.prop"
.getRealPath(String)
public java.lang.String getLucenePath(java.lang.String uri)
/WEB-INF/data/lucene/
of the webapp.new File()
constructor.
String fileIndexPath = channel.getLucenePath("FilesIndex"); File fileIndexFile = new File(fileIndexPath);
uri
- a path relative to the /WEB-INF/data/lucene/
directory (with or without starting slash).
e.g "FilesIndex"
"C:\tomcat\webapps\jcms\WEB-INF\data\lucene\FilesIndex\"
.getRealPath(String)
public java.lang.String getJaliosPath(java.lang.String uri)
/WEB-INF/jalios/
of the webapp.new File()
constructor.
String jcmsPropPath = channel.getJaliosPath("jcms.prop"); File jcmsPropFile = new File(jcmsPropPath);
uri
- a path relative to the /WEB-INF/jalios/
directory (with or without starting slash).
e.g "jcms.prop"
"C:\tomcat\webapps\jcms\WEB-INF\jalios\jcms.prop"
.getRealPath(String)
public java.lang.String getJcmsWorkPath(java.lang.String uri)
/WEB-INF/jcmswork/
of the webapp.new File()
constructor.
String myLockFilePath = channel.getJcmsWorkPath("myfile.lock"); File myLockFile = new File(myLockFilePath);
uri
- a path relative to the /WEB-INF/jcmswork/
directory (with or without starting slash).
e.g "myfile.lock"
"C:\tomcat\webapps\jcms\WEB-INF\jcmswork\myfile.lock"
.getRealPath(String)
public java.lang.String getUploadPath(java.lang.String uri)
/upload/
).new File()
constructor.
String uploadedFilePath = channel.getUploadPath("uploadedfile.txt"); File uploadedFile = new File(uploadedFilePath);
uri
- a path relative to the /upload/
folder (with or without starting slash).
e.g "myfile.lock"
"C:\tomcat\webapps\jcms\upload\"
.getRealPath(String)
public java.lang.String getUploadParentPath()
public java.lang.String getRelativePath(java.io.File file)
"C:\tomcat\webapps\ROOT\AnyFolder\MyFileOrFolder"
returns "AnyFolder/MyFileOrFolder"
.file
- the File to convert into a relative filepath, e.g. new File("C:\\tomcat\\webapps\\jcms\\upload\\myfile.txt")
"upload/myfile.txt"
public java.lang.String getDataSourceLabel(java.lang.String dataSource, java.lang.String userLang)
<lang>.data-source.<ds-name>
. E.g.: en.data-source.jdbc/mydb: My Data Source
.dataSource
- the name of the DataSource (eg. "jdbc/mydb")userLang
- the userLangpublic java.lang.String crypt(java.lang.String str)
Use checkCrypt(String, String)
method to verify the encrypted version against a plain text entry.
str
- the String to encryptcheckCrypt(String, String)
public boolean checkCrypt(java.lang.String candidate_plaintext, java.lang.String stored_hash)
As of current implementation, this method is compatible with the following crypt algorythm :
Util.cryptUnix(String)
)Util.cryptMD5(String)
)candidate_plaintext
- the plain text to be tested (information usually received from the client, eg : a plain text password recevied from a login form)stored_hash
- the encrypted version stored (information known only on the server side, eg : member.getPassword())crypt(String)
public Group getDefaultGroup()
public Member getDefaultAdmin()
public Workspace getDefaultWorkspace()
public java.lang.String getDefaultEmail()
public java.lang.String[] getDefaultQueryTypes()
public java.lang.String[] getDefaultQueryTypesOff()
public int[] getVisiblePstatus()
public boolean isVisiblePstatus(int pstatus)
pstatus
- the pstatus to testpublic boolean isValidAdminIP(javax.servlet.ServletRequest request)
request
- the ServletRequest to checkpublic boolean isValidWorkspacesIP(javax.servlet.ServletRequest request)
request
- the ServletRequest to checkpublic Category getRootCategory()
channel.root-category
default to j_3
.public java.util.Set<Category> getRootCategoryAsSet()
public java.util.Set<Category> getSearchRootSet()
getRootCategory()
,
getRefineRootSet()
,
getAdvRefineRootSet()
public java.util.Set<Category> getRefineRootSet()
getRootCategory()
,
getSearchRootSet()
,
getAdvRefineRootSet()
public Category getTagRoot()
public Category getTagRoot(Workspace ws)
ws
- the workspacepublic java.util.Set<Category> getAdvRefineRootSet()
getRefineRootSet()
,
getSearchRootSet()
,
getRootCategory()
public void invalidateSearchAndRefineRootSet()
public MetaDataExtractor getMetaDataExtractor(java.lang.String contentType)
contentType
- the content type of the file to extract the metadatapublic java.lang.String getSenderFullEmail()
"name <user@company.com>"
.getSenderFullEmail(Workspace, Publication, String)
public java.lang.String getSenderFullEmail(Workspace ws, java.lang.String lang)
ws
- workspace from which we will retrieve emaillang
- optionnal paramereter (set to null if not used)"name <user@company.com>"
.getSenderFullEmail(Workspace, Publication, String)
public java.lang.String getSenderFullEmail(Publication pub, java.lang.String lang)
pub
- publication from which we will retrieve workspace and its emaillang
- optionnal paramereter (set to null if not used)"name <user@company.com>"
.getSenderFullEmail(Workspace, Publication, String)
public java.lang.String getSenderFullEmail(Workspace ws, Publication pub, java.lang.String lang)
"WorkspaceName "
- the publication's workspace email, "Pub's WorkspaceName "
- the channel default email,
"Channel Name "
- last the default admin email, "Default Admin "
ws
- workspace from which we will retrieve emailpub
- publication from which we will retrieve workspace and its emaillang
- optionnal paramereter (set to null if not used)"name <user@company.com>"
.public boolean isRegistered(Data data)
data
- the data to checkpublic boolean isRegistered(java.lang.String id)
id
- the id of the data to checkpublic void initVirtualIDMap()
public java.util.Set<java.lang.String> getVirtualIDSet(Data data)
data
- the data to get the virtual ID.public Storable getStorable(java.lang.String id)
id
- the id of the storablepublic Data getData(java.lang.String id)
id
- the id of the datapublic <T extends Data> T getData(java.lang.Class<T> clazz, java.lang.String id)
T
- any Data typeclazz
- the class of the Dataid
- its id.public Workspace getWorkspace(java.lang.String id)
id
- the id of the workspacepublic Category getCategory(java.lang.String id)
id
- the id of the categorypublic Publication getPublication(java.lang.String id)
id
- the id of the publicationpublic Group getGroup(java.lang.String id)
id
- the id of the grouppublic Group getGroupFromDN(java.lang.String dn)
dn
- the dn of the grouppublic Member getMember(java.lang.String id)
id
- the id of the memberpublic Member getMemberFromLogin(java.lang.String login)
This method is only available after JCMS startup (both JStore and JcmsDB access must be fully ready).
login
- the member's loginnull
if no member has this
login.public Member getMemberFromLogin(java.lang.String login, boolean checkDisabled)
This method is only available after JCMS startup (both JStore and JcmsDB access must be fully ready).
login
- the member's logincheckDisabled
- if true do not return member if account is disablednull
if no member has this
login.public Member getMemberFromEmail(java.lang.String email)
This method is only available after JCMS startup (both JStore and JcmsDB access must be fully ready).
email
- the member's emailnull
if no member has this
email.public java.util.List<? extends Storable> getVersionList(Data data) throws LogException
data
- the dataLogException
- if an error occured while reading store.xmlpublic java.util.List<? extends Storable> getVersionList(java.lang.String id) throws LogException
id
- the data idLogException
- if an error occured while reading store.xmlpublic java.util.TreeSet<? extends Storable> getDeletedSet(java.lang.Class<? extends Storable> clazz) throws LogException
clazz
- the searched classLogException
- if an error occured while reading store.xmlpublic java.lang.Class<?>[] getPublicationSuperTypes()
public java.util.List<java.lang.Class<? extends Publication>> getPublicationTypeList()
getCustomTypeList()
,
getCoreTypeList()
,
getPublicationTypeList(String)
public java.util.List<java.lang.Class<? extends Publication>> getPublicationTypeList(java.lang.String lang)
lang
- the ISO-639 language code of the language to use for sorting,
use default site's language if null.getCustomTypeList()
,
getCoreTypeList()
,
getPublicationTypeList()
public Channel.TypeLabelComparator getTypeLabelComparator(java.lang.String lang)
lang
- the language in which to sort the label.Channel.TypeLabelComparator
public java.util.ArrayList<java.lang.Class<? extends Publication>> getCoreTypeList()
getCustomTypeList()
,
getPublicationTypeList()
public <T> java.util.List<java.lang.Class<? extends T>> getSubTypeList(java.lang.Class<T> clazz)
T
- any Publication typeclazz
- the super classgetCustomTypeList()
,
getCoreTypeList()
,
getSubTypeList(Class, String)
public <T> java.util.List<java.lang.Class<? extends T>> getSubTypeList(java.lang.Class<T> clazz, java.lang.String lang)
T
- any Publication typeclazz
- the super classlang
- the languagegetCustomTypeList()
,
getCoreTypeList()
public <T> java.util.ArrayList<java.lang.Class<? extends T>> getPublishableSubTypeList(java.lang.Class<T> clazz, Member member)
T
- any Publication typeclazz
- the super classmember
- a membergetSubTypeList(Class)
,
getCustomTypeList()
,
getCoreTypeList()
public DataRight getDataRight(boolean canPublish, boolean canUpdateOther, boolean canDeleteOther, boolean create)
canPublish
- the canPublish value of the DataRight that is looked for.canUpdateOther
- the canUpdateOther value of the DataRight that is looked for.canDeleteOther
- the canDeletOther value of the DataRight that is looked for.create
- if true creates the DataRight if it does not exist.public CategoryRight getNoCategoryRight()
public CategoryRight getRootCategoryRight()
public CategoryRight getCategoryRight(java.util.HashSet<Category> roots, int mode, boolean create)
roots
- the categories to look formode
- the mode to look for (GROUP_AND_MEMBER = 0, MEMBER_ONLY = 1, GROUP_ONLY = 2)create
- if true creates the DataRight if it does not exist.public <T> java.util.TreeSet<T> getDataSet(java.lang.Class<T> clazz)
T
- an object classclazz
- the class of instances to look forgetPublicationSet(Class, Member)
public long getDataCount(java.lang.Class<? extends Data> clazz)
clazz
- the class.public <T> java.util.List<T> getDBDataList(java.lang.Class<T> clazz)
T
- any DB typeclazz
- the classHibernateUtil.getDBDataList(Class)
public <T> java.util.List<T> getDBDataList(java.lang.Class<T> clazz, int firstResult, int maxResults)
T
- any DB typeclazz
- the classfirstResult
- set the first data to retrieve. If <= 0, rows will be retrieved beginnning from first data.maxResults
- set the maximum number of data to retrieve. If <= 0, there is no limit to the number of data retrieved.HibernateUtil.getDBDataList(Class)
public DBData getDBData(java.lang.Class<?> clazz, java.lang.Long rowId)
clazz
- the classrowId
- the row idHibernateUtil.getObject(Class, Long)
public <T> java.util.Iterator<T> getDBDataIterator(java.lang.Class<T> clazz)
T
- any DB typeclazz
- the class.HibernateUtil.getDBDataIterator(Class)
public <T> java.util.Iterator<T> getDataAndDBDataIterator(java.lang.Class<T> clazz)
T
- any DB typeclazz
- the classpublic PageResult<Publication> getDBPublicationList(PublicationCriteria pubCriteria)
pubCriteria
- the PublicationCriteriaHibernateUtil.queryPublication(PublicationCriteria)
public PageResult<Publication> getVisibleDBPublicationList(PublicationCriteria pubCriteria)
pubCriteria
- the PublicationCriteriapublic PageResult<Publication> getNotVisibleDBPublicationList(PublicationCriteria pubCriteria)
pubCriteria
- the PublicationCriteriapublic java.util.List<java.lang.Class<? extends Publication>> getDBPublicationClassList()
protected void updateClass2DataSet(Data data, boolean add)
data
- the dataadd
- = true if addpublic <T> java.util.TreeSet<T> getAllDataSet(java.lang.Class<T> clazz)
T
- an object classclazz
- the classpublic java.util.TreeSet<Data> getAllDataSet()
public <T> java.util.TreeSet<T> getDataSet(java.lang.String[] ids, java.lang.Class<? extends T> clazz, boolean neverNull)
T
- any data typeids
- an array of identifiers.clazz
- the clazz of the identifiers (may be null, if the array is heterogeneous)neverNull
- if true and if there is no results, return an empty set instead of null.public java.util.TreeSet<?> getDataSet(java.lang.String[] ids)
ids
- an array of idspublic java.util.ArrayList<Data> getDataList(java.lang.String[] ids)
ids
- an array of idsfor generic method
public <T extends Data> java.util.ArrayList<T> getDataList(java.lang.String[] ids, boolean ignoreNull, java.lang.Class<T> clazz)
T
- any data typeids
- an array of idsignoreNull
- if true, null are skippedclazz
- a filter classpublic <T extends Publication> java.util.TreeSet<T> getAllPublicationSet(java.lang.Class<T> clazz, Member member)
T
- any publication typeclazz
- the class of instances to look formember
- the member who access the publication setpublic <T extends Publication> java.util.TreeSet<T> getAllPublicationSet(java.lang.Class<T> clazz, Member member, boolean checkPstatus)
T
- any publication typeclazz
- the class of instances to look formember
- the member who access the publication setcheckPstatus
- if true, select only the publications that
are in a visible state.public <T extends Publication> java.util.TreeSet<T> getPublicationSet(java.lang.Class<T> clazz, Member member)
T
- any publication typeclazz
- the class of instances to look formember
- the member who access the publication setpublic <T extends Publication> java.util.TreeSet<T> getPublicationSet(java.lang.Class<T> clazz, Member member, boolean checkPstatus)
T
- any publication typeclazz
- the class of instances to look formember
- the member who access the publication setcheckPstatus
- if true, select only the publications that
are in a visible state.public <T extends Publication> java.util.TreeSet<T> getPublicationSet(java.lang.Class<T> clazz, Member member, boolean checkPstatus, Workspace workspace)
T
- any publication typeclazz
- the class of instances to look formember
- the member who access the publication setcheckPstatus
- if true, select only the publications that are in a visible state.workspace
- if not null select only the publications of this workspacepublic <T extends Publication> java.util.TreeSet<T> getPublicationSet(java.lang.Class<T> clazz, Member member, boolean checkPstatus, Workspace workspace, boolean searchDB)
public <T extends Publication> java.util.Set<T> getPublicationSet(java.util.Set<T> publicationSet, boolean specialState)
T
- an object classpublicationSet
- the set of publicationspecialState
- true to filter of publication in special state.public java.util.Set<Publication> getPublicationSet(java.util.Set<Publication> publicationSet, Workflow wf)
publicationSet
- the set of publicationwf
- the workflowpublic java.util.Set<Publication> getPublicationSetFromTitle(java.lang.String title)
title
- the title to be searched for.public java.util.Set<Publication> getPublicationSetFromTitle(java.lang.String title, boolean searchInDB)
public Publication getFirstPublicationFromTitle(java.lang.String title)
title
- the title to be searched for.public <T> java.util.Set<T> getPublicationSetFromTitle(java.lang.Class<T> clazz, java.lang.String title)
T
- any Publication typeclazz
- the class of the publicationtitle
- the title to be searched for.public <T> T getFirstPublicationSetFromTitle(java.lang.Class<T> clazz, java.lang.String title)
T
- any Publication typeclazz
- the class of the publicationtitle
- the title to be searched for.public java.util.HashSet<Publication> getPublicationWithoutCategories()
public boolean isWebdavEnabled()
public void disableDataWrite(java.lang.String msg)
msg
- the maintenance message.enableDataWrite()
,
isDataWriteEnabled()
public void enableDataWrite()
disableDataWrite(String)
,
isDataWriteEnabled()
public void handleDataWriteState(boolean disable, java.lang.String msg, boolean updateProperty)
disable
- if true disable data writesmsg
- the messageupdateProperty
- if true update properties to persist data write stop.public boolean isDataWriteEnabled()
public void handleStoreError(java.lang.String msg, java.lang.Throwable th)
msg
- the contextual error message.th
- the original throwablepublic void handleJcmsDBError(java.lang.String msg, java.lang.Throwable th)
msg
- the contextual error message.th
- the original throwablepublic java.util.Set<Member> getAdminSet()
public void createData(Data data, Member opAuthor)
Data.performCreate(Member)
method.data
- the data to be createdopAuthor
- the member which performs the write operation (can be null)Data.performCreate(com.jalios.jcms.Member)
public void updateData(Data updated, Member opAuthor)
Data.performUpdate(Member)
method.updated
- the data to be updatedopAuthor
- the member which performs the write operation (can be null)Data.performUpdate(com.jalios.jcms.Member)
public void deleteData(Data data, Member opAuthor)
Data.performDelete(Member)
method.data
- the data to be deletedopAuthor
- the member which performs the write operation (can be null)Data.performDelete(com.jalios.jcms.Member)
public <T> java.util.TreeSet<T> select(java.util.Collection<? extends T> dataColl, DataSelector selector, java.util.Comparator comparator)
Collection
of Data
using
the given DataSelector
, and return a TreeSet sorted using the
given Comparator
. Comparator
is given, CdateComparator
is used. T
- Any Data typedataColl
- the Collection
of Data
to select.selector
- the DataSelector
to use.comparator
- the Comparator
to use.TreeSet
of Data
.JcmsUtil.select(Collection, DataSelector, Comparator)
public QueryManager getQueryManager()
public QueryResultSet query(QueryHandler qh, javax.servlet.ServletRequest request, java.util.Set<? extends Publication> proposedDataSet)
QueryHandler
. Collection
of Publication
or in
all Publication
if not specified.qh
- the QueryHandler
from which to retrieve the query
parameters, MUST NOT be null.request
- the ServletHttpRequest
used to set some error
or warning messages in the attributes, can be null.proposedDataSet
- the Collection
of Publication
in which to search and apply query parameters, if null, search is done
in all Publication
.QueryResultSet
containing all results of this query,
it is a HashSet
and therefore it is NOT sorted.
use either getAsSortedSet()
or getAsSortedSet(Comparator)
to obtain a sorted Set.public LuceneMemberSearchEngine getMemberSearchEngine()
public WSTypeEntry getWSTypeEntry(java.lang.Class clazz, Workspace workspace)
clazz
- the Class
of which to find the WSTypeEntry
workspace
- the workspace to use or nullWorkspace.getWSTypeEntry(Class)
public WSTypeEntry getWSTypeEntry(java.lang.String className, Workspace workspace)
className
- the String
representing the name the Class of which to find the WSTypeEntry
workspace
- the workspace to use or nullpublic TypeEntry getTypeEntry(java.lang.Class<?> clazz)
Class
.
Since jcms-5.5.0 should call #getTypeEntry(Class,Workspace)clazz
- the Class
of which to find the TypeEntry
TypeEntry
associated to the given class or null if not available.TypeProcessor.getTypeEntry(Class)
public TypeEntry getTypeEntry(java.lang.String className)
className
.className
- the name the Class of which to find the TypeEntry
TypeEntry
associated to the given class or null if not available.TypeProcessor.getTypeEntry(String)
public TypeFieldEntry getTypeAbstractFieldEntry(java.lang.Class<?> clazz)
TypeFieldEntry
associated to the abstract (summary)
field of the specified type.clazz
- the Class of which to find the TypeFieldEntry
TypeFieldEntry
associated to the specified class
or null if not available.public TypeFieldEntry getTypeFieldEntry(java.lang.Class<?> clazz, java.lang.String fieldName, boolean checkAll)
TypeFieldEntry
associated to the given Class
and fieldName.clazz
- the Class of which to find the TypeFieldEntry
fieldName
- the field name of which to find the TypeFieldEntry
checkAll
- whether to check in inherited field entry of the class.TypeFieldEntry
associated to the given class and fieldName or null if not available.getTypeFieldEntries(Class clazz)
,
getAllTypeFieldEntries(Class clazz)
public TypeFieldEntry getTypeFieldEntry(java.lang.Class<?> clazz, java.lang.String fieldName)
clazz
- the classfieldName
- the field namepublic java.lang.String getTypeFieldLabel(java.lang.Class<?> clazz, java.lang.String fieldName, java.lang.String lang)
clazz
- the classfieldName
- the field namelang
- the language in which localized the labelpublic java.lang.String getTypeFieldLabel(java.lang.Class<?> clazz, java.lang.String fieldName)
clazz
- the classfieldName
- the field namegetCurrentUserLang()
public java.lang.String getTypeFieldLabel(Data data, java.lang.String fieldName, java.lang.String lang)
data
- the datafieldName
- the field namelang
- the language in which localized the labelgetCurrentUserLang()
public java.lang.String getTypeFieldLabel(Data data, java.lang.String fieldName)
data
- the datafieldName
- the field namegetCurrentUserLang()
public TypeFieldEntry[] getTypeFieldEntries(java.lang.Class<?> clazz)
TypeFieldEntry
bound to given Class
. Class
. clazz
- the Class
of which to find the TypeFieldEntry
.TypeFieldEntry
containing all Field used by Class
or an empty array (never return null)TypeProcessor.getTypeFieldEntries(Class)
public TypeFieldEntry[] getTypeFieldEntries(java.lang.String className)
TypeFieldEntry
bound to given Class
. Class
. className
- the String
representing the name the Class of which to find the TypeFieldEntry
TypeFieldEntry
containing all Field used by Class
or an empty array (never return null)TypeProcessor.getTypeFieldEntries(String)
public TypeFieldEntry[] getAllTypeFieldEntries(java.lang.Class<?> clazz)
TypeFieldEntry
bound to given Class
. Class
. clazz
- the Class
of which to find the TypeFieldEntry
.TypeFieldEntry
containing all Field used by Class
or an empty array (never return null)TypeProcessor.getAllTypeFieldEntries(Class)
public TypeFieldEntry[] getAllTypeFieldEntries(java.lang.String className)
TypeFieldEntry
bound to given Class
name. Class
. className
- the String
representing the name the Class of which to find the TypeFieldEntry
TypeFieldEntry
containing all Field used by Class
or an empty array (never return null)TypeProcessor.getAllTypeFieldEntries(String)
public java.lang.String getTypeLabel(java.lang.Class<?> clazz, java.lang.String lang)
clazz
- the classlang
- the languagegetTypeLabel(Class, Workspace, String)
public java.lang.String getTypeLabel(java.lang.Class<?> clazz, Workspace workspace, java.lang.String lang)
clazz
- the classworkspace
- the Workspacelang
- the languagegetTypeLabel(Class,String)
,
Workspace.getTypeLabel(Class,String)
public java.lang.String getTypeDescription(java.lang.Class clazz, java.lang.String lang)
clazz
- the classlang
- the languagegetTypeDescription(Class, Workspace, String)
public java.lang.String getTypeDescription(java.lang.Class clazz, Workspace workspace, java.lang.String lang)
clazz
- the classworkspace
- the Workspacelang
- the languagegetTypeLabel(Class,String)
,
Workspace.getTypeDescription(Class,String)
public void restart()
public boolean isAvailable()
public void setAvailable(boolean isAvailable)
isAvailable
- true to enable site, false to disablepublic java.lang.ClassLoader getClassLoader()
public java.lang.Class[] getClass(java.lang.String[] clazzStr)
clazzStr
- the full qualified name of the classes to loadpublic java.lang.Class getClass(java.lang.String className) throws java.lang.ClassNotFoundException
className
- the full qualified name of the class to loadjava.lang.ClassNotFoundException
- if className cannot be foundjava.lang.IllegalStateException
- if className represents a class generated by JCMS
and such classes have not yet been generated and compiled.
If thrown, the site must not been started.public java.util.List getCustomTypeList()
getCustomTypeList()
,
getPublicationTypeList()
public java.util.Map<java.lang.String,java.lang.Class<?>> getCustomExtensionMap()
public java.util.Collection<java.lang.Class<?>> getCustomExtensionCollection()
public java.lang.String getUrl()
public java.lang.String getName()
public java.lang.String getUrid()
public java.lang.String toString()
toString
in class java.lang.Object
getName()
public JcmsInfo getJcmsInfo()
public int getHierarchicalWorkspaceLimit()
public void addChannelListener(ChannelListener listener)
listener
- the ChannelListener to addpublic void removeChannelListener(ChannelListener listener)
listener
- the ChannelListener to removepublic void addStoreListener(StoreListener listener, java.lang.Class<?> clazz, boolean repeat)
listener
- the StoreListener to addclazz
- the class to listen to.repeat
- If true, the listener will be called every time an operation is
processed on the given class, that is during store load (if listener is added
before store load) and for every following operation on every replica.
If false, the listener will only be called the very first time the operation
takes place, and only on the replica where it is done (also not during store load).public void addStoreListener(StoreListener listener, boolean repeat)
listener
- the StoreListener to addrepeat
- true if the listner must notify each time this operation is processedpublic void removeStoreListener(StoreListener listener, java.lang.Class<?> clazz)
listener
- the StoreListener to removeclazz
- the class to listen to.public void removeStoreListener(StoreListener listener)
listener
- the StoreListener to removepublic java.util.Set<StoreListener> getStoreListenerSet()
public java.util.Map<java.lang.Class<?>,java.util.Set<StoreListener>> getStoreListenerClassMap()
public void addDBListener(DBListener listener)
listener
- the listener to be added.public void addDBListener(DBListener listener, java.lang.Class<?> clazz)
listener
- the listener to be added.clazz
- the class to listen to.public void removeDBListener(DBListener listener)
listener
- the listener to be removed.public void removeDBListener(DBListener listener, java.lang.Class<?> clazz)
listener
- the listener to be removed.clazz
- the exact class that was being listenedpublic void addDataController(DataController dc, java.lang.Class<?> clazz)
dc
- the DataController to be addedclazz
- the clazz this DataController must controlpublic void removeDataController(DataController dc, java.lang.Class<?> clazz)
dc
- the DataController to be removedclazz
- the clazz this DataController controlspublic java.util.Set<DataController> getDataControllerSet(java.lang.Class<?> clazz)
clazz
- the classpublic java.util.Map<java.lang.Class<?>,java.util.Set<DataController>> getDataControllerMap()
public void addPolicyFilter(PolicyFilter pf)
PolicyFilter
to the list of RightPolicyFilter used by
the PolicyManager (getPolicyManager()
).pf
- the RightPolicyFilter to be addedpublic void removePolicyFilter(PolicyFilter pf)
PolicyFilter
to the list of RightPolicyFilter used by
the PolicyManager (getPolicyManager()
).pf
- the RightPolicyFilter to be addedpublic PolicyManager getPolicyManager()
public void addQueryFilter(QueryFilter qf)
QueryFilter
to the list of QueryFilters used by
the QueryManager (getQueryManager()
).qf
- the QueryFilter to be addedpublic void removeQueryFilter(QueryFilter qf)
QueryFilter
from the list of QueryFilters used by
the QueryManager (getQueryManager()
).qf
- the QueryFilter to be removedpublic void addAuthenticationHandler(AuthenticationHandler authHandler)
AuthenticationHandler
to the list of
AuthenticationHandlers used by the AuthenticationManager
to process users' authentication.authHandler
- the AuthenticationHandler to be addedpublic void removeAuthenticationHandler(AuthenticationHandler authHandler)
AuthenticationHandler
from the list of
AuthenticationHandlers used by the AuthenticationManager
to process users' authentication.authHandler
- the AuthenticationHandler to be removedpublic java.util.Map<Data,ControllerStatus> getDataIntegrityReport(boolean refresh)
refresh
- if true recompute the reportpublic java.util.Date getDataIntegrityReportDate()
public void generateLogFromMemory()
public void cleanStore(CleanFilter filter, JcmsContext context)
filter
- the filter to applycontext
- current JcmsContextpublic void addCleanFilter(CustomCleanFilter filter)
filter
- the filter to be added.public void removeCleanFilter(CustomCleanFilter filter)
filter
- the filter to be removed.public java.util.List<CustomCleanFilter> getCleanFilterList()
public void appendMilestone(java.lang.String text)
text
- the text of the milestone.Store.appendMilestone(String)
public LoadReport getStoreLoadReport()
public int getStoreSize()
public int getStoreCreateCount()
public int getStoreUpdateCount()
public int getStoreDeleteCount()
public Store getStore()
public void performStoreBackup()
public long getLockTimeout()
See property channel.lock-timeout
(warning : value must be in minutes!).
public java.util.Locale getLocale()
public java.text.SimpleDateFormat getDateTimeFormat(java.lang.String lang)
lang
- the language in which the Date&Time will be formatted/parsedpublic java.text.SimpleDateFormat getDateFormat(java.lang.String lang)
lang
- the language in which the Date will be formatted/parsedpublic java.lang.Object getLangValue(java.lang.String lang, boolean useDefault, java.lang.Object value, java.util.HashMap valueML, java.lang.String mainLanguage)
lang
- the language to useuseDefault
- should the main language use as defaultvalue
- the value in the main languagevalueML
- the map of value of the other languagesmainLanguage
- the main languagepublic java.lang.Object getLangValue(java.lang.String lang, boolean useDefault, java.lang.Object value, java.util.HashMap valueML)
lang
- the language to useuseDefault
- should the main language use as defaultvalue
- the value in the main languagevalueML
- the map of value of the other languagespublic java.lang.String getLangValue(java.lang.String lang, boolean useDefault, java.lang.String value, java.util.HashMap valueML, java.lang.String mainLanguage)
lang
- the language to useuseDefault
- should the main language use as defaultvalue
- the value in the main languagevalueML
- the map of value of the other languagesmainLanguage
- the main languagepublic java.lang.String getLangValue(java.lang.String lang, boolean useDefault, java.lang.String value, java.util.HashMap valueML)
lang
- the language to useuseDefault
- should the main language use as defaultvalue
- the value in the main languagevalueML
- the map of value of the other languagespublic java.lang.Object[] getLangValue(java.lang.String lang, boolean useDefault, java.lang.Object[] value, java.util.HashMap valueML, java.lang.String mainLanguage)
lang
- the language to useuseDefault
- should the main language use as defaultvalue
- the value in the main languagevalueML
- the map of value of the other languagesmainLanguage
- the main languagepublic java.lang.Object[] getLangValue(java.lang.String lang, boolean useDefault, java.lang.Object[] value, java.util.HashMap valueML)
lang
- the language to useuseDefault
- should the main language use as defaultvalue
- the value in the main languagevalueML
- the map of value of the other languagespublic java.lang.String[] getLangValue(java.lang.String lang, boolean useDefault, java.lang.String[] value, java.util.HashMap valueML, java.lang.String mainLanguage)
lang
- the language to useuseDefault
- should the main language use as defaultvalue
- the value in the main languagevalueML
- the map of value of the other languagesmainLanguage
- the main languagepublic java.lang.String[] getLangValue(java.lang.String lang, boolean useDefault, java.lang.String[] value, java.util.HashMap valueML)
lang
- the language to useuseDefault
- should the main language use as defaultvalue
- the value in the main languagevalueML
- the map of value of the other languagespublic boolean isMultilingual()
getLanguageList()
public boolean isMainLanguage(java.lang.String lang)
lang
- the lang to checkgetLanguage()
public boolean isUsingAdvancedI18N()
public java.lang.String getLanguageDirection(java.lang.String lang)
lang
- the ISO-639 code of the language topublic java.lang.String getUsedLanguage(Data data, java.lang.String fieldName, java.lang.String lang)
data
- the Data or Publication of which to retrieve the field valuefieldName
- the field name to retrievelang
- the language in which the field was asked (ISO-639 code).public java.util.List<java.lang.String> getLanguageList()
public java.util.List<java.lang.String> getLanguageListOrdered()
public java.util.List<java.lang.String> getOtherLanguageList()
public java.util.List<java.lang.String> getLocalizedLanguageList()
public java.util.List<java.lang.String> getJcmsLanguageList()
public java.lang.String getLanguage()
public java.lang.String getCountry()
Locale
public void updateAndSaveProperties(JProperties prop)
prop
- the properties to be updated/saved.JProperties.updateAndSave(java.io.File)
public boolean containsProperty(java.lang.String name)
name
- the key/name of the property to checkJProperties.containsProperty(java.lang.String)
public java.lang.String getProperty(java.lang.String name)
name
- the key/name of the property to retrieveJProperties.getProperty(java.lang.String)
public java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
name
- the key/name of the property to retrievedefaultValue
- the default value to use if the existing value is null.JProperties.getProperty(java.lang.String, java.lang.String)
public boolean getBooleanProperty(java.lang.String name, boolean defaultValue)
name
- the key/name of the property to retrievedefaultValue
- the default value to use if the existing value
is null or is neither "false" nor "true" (case sensitive).JProperties.getBooleanProperty(java.lang.String, boolean)
public int getIntegerProperty(java.lang.String name, int defaultValue)
name
- the key/name of the property to retrievedefaultValue
- the default value to use if the existing value
is null or if Integer.parseInt() throws exception during String
to int conversion.JProperties.getIntegerProperty(java.lang.String, int)
public long getLongProperty(java.lang.String name, long defaultValue)
name
- the key/name of the property to retrievedefaultValue
- the default value to use if the existing value
is null or if Long.parseLong() throws exception during String
to long conversion.JProperties.getLongProperty(java.lang.String, long)
public float getFloatProperty(java.lang.String name, float defaultValue)
name
- the key/name of the property to retrievedefaultValue
- the default value to use if the existing value
is null or if Float.parseFloat() throws exception during String
to float conversion.JProperties.getFloatProperty(java.lang.String, float)
public double getDoubleProperty(java.lang.String name, double defaultValue)
name
- the key/name of the property to retrievedefaultValue
- the default value to use if the existing value
is null or if Double.parseDouble() throws exception during String
to double conversion.JProperties.getDoubleProperty(java.lang.String, double)
public java.lang.String[] getStringArrayProperty(java.lang.String name, java.lang.String[] defaultValue)
name
- the key/name of the property to retrievedefaultValue
- the default value to use if the existing value
is null or no values could be found in the conversion.JProperties.getStringArrayProperty(java.lang.String,java.lang.String[])
public int[] getIntArrayProperty(java.lang.String name, int[] defaultValue)
getStringArrayProperty(String, String[])
.name
- the key/name of the property to retrievedefaultValue
- the default value to use if the existing value
is null or no values could be found in the conversion.JProperties.getIntArrayProperty(java.lang.String,int[])
public JProperties getChannelProperties()
getLanguageProperties()
but may differ in a future revision.
Do not change any JCMS property at runtime, behaviour of JCMS maybe
incorrect if you do so, use the user interface for such task.
However you can modify any of your own properties.public LangProperties getLanguageProperties()
getChannelProperties()
but may differ in a future revision.
Do not change any JCMS property at runtime, behaviour of JCMS maybe
incorrect if you do so, use the user interface for such task.
However you can modify any of your own properties.public LangProperties getProperties(java.lang.String prefix)
prefix
- the prefixLangProperties.getProperties(java.lang.String)
public java.util.Map<java.lang.String,java.lang.String> getSortedProperties(java.lang.String prefix)
prefix
- the prefixLangProperties.getProperties(java.lang.String)
public java.util.Map<java.lang.String,java.lang.String> getSortedProperties(java.lang.String prefix, boolean trim)
prefix
- the prefixtrim
- boolean true to remove prefix from keygetSortedProperties(java.lang.String)
public java.util.Map<java.lang.String,java.lang.Object> getSubProperties(java.lang.String prefix)
prefix
- the prefixJProperties.getSubProperties(java.lang.String)
public void setProperty(java.lang.String name, java.lang.String value)
name
- the name/key of the property to changevalue
- the new value of this propertJProperties.setProperty(String, String)
public void addPropertiesListener(JPropertiesListener listener)
listener
- the properties listenerpublic void removePropertiesListener(JPropertiesListener listener)
listener
- the properties listenerpublic void addHttpHeaders(javax.servlet.http.HttpServletResponse response)
response
- the responsepublic java.util.Set<Group> getCommonGroupSet()
public java.util.Set<Workspace> getWorkspaceSet(Workflow wf)
wf
- the Workflow to look forpublic void setCurrentServletRequest(javax.servlet.http.HttpServletRequest request)
initFilter
.request
- the ServletRequestpublic void clearCurrentServletRequest()
initFilter
.public javax.servlet.http.HttpServletRequest getCurrentServletRequest()
getCurrentJcmsContext()
public void setCurrentServletResponse(javax.servlet.http.HttpServletResponse response)
initFilter
.response
- the ServletResponsepublic void clearCurrentServletResponse()
initFilter
.public javax.servlet.http.HttpServletResponse getCurrentServletResponse()
getCurrentJcmsContext()
public JcmsContext getCurrentJcmsContext()
getCurrentServletRequest()
public java.lang.String getCurrentUserLang()
public java.util.Locale getCurrentUserLocale()
public Member getCurrentLoggedMember()
public Member getCurrentDelegateMember()
DelegationAuthenticationHandler.getSuHistory(HttpServletRequest)
.public boolean isFailSafeMode()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.