public class PublicLinkManager extends java.lang.Object implements JPropertiesListener
REVISION
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildAccessUrl(java.lang.String accessId) |
boolean |
canCreatePublicLink(Member mbr) |
boolean |
canManagePublicLink(Member mbr) |
void |
deleteAllPublicLinks(FileDocument doc)
Delete all public links on the given doc.
|
java.lang.String |
generateAccessCode() |
java.lang.String |
generateAccessCode(int length) |
java.lang.String |
generateAccessId() |
int |
getAccessCodeLength() |
static PublicLinkManager |
getInstance() |
PublicLink |
getPublicLink(java.lang.String accessId) |
boolean |
isEnabled() |
void |
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk.
|
public static PublicLinkManager getInstance()
public boolean isEnabled()
public PublicLink getPublicLink(java.lang.String accessId)
accessId
- the access idpublic java.lang.String generateAccessId()
public java.lang.String generateAccessCode()
public int getAccessCodeLength()
public java.lang.String generateAccessCode(int length)
length
- the number of digit of the codepublic java.lang.String buildAccessUrl(java.lang.String accessId)
accessId
- the access IDpublic boolean canManagePublicLink(Member mbr)
mbr
- the memberpublic boolean canCreatePublicLink(Member mbr)
mbr
- the memberpublic void propertiesChange(JProperties properties)
JPropertiesListener
You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using channel.getProperties
or
channel.getProperty
.
propertiesChange
in interface JPropertiesListener
properties
- the properties which have been submitted to changepublic void deleteAllPublicLinks(FileDocument doc)
doc
- the documentCopyright © 2001-2022 Jalios SA. All Rights Reserved.