|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.files2docs.service.Files2DocsLinkDocument
public final class Files2DocsLinkDocument
Link class with document services
| Method Summary | |
|---|---|
java.lang.String |
createDocument(fr.paris.lutece.plugins.document.business.Document document,
fr.paris.lutece.portal.business.user.AdminUser user)
Creates a new document |
java.util.Collection<fr.paris.lutece.plugins.document.business.attributes.AttributeTypeParameter> |
getAttributeParametersValues(int nAttributeId,
java.util.Locale locale)
Gets parameters values |
java.util.Collection<fr.paris.lutece.plugins.document.business.attributes.AttributeTypeParameter> |
getAttributeTypeParameterList(java.lang.String strAttributeTypeCode,
java.util.Locale locale)
Gets attribute type parameters list |
fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute |
getDocumentAttributeById(int nKey)
Returns an instance of a documentAttribute whose identifier is specified in parameter |
fr.paris.lutece.plugins.document.business.Document |
getDocumentById(int nKey)
Returns an instance of a document whose identifier is specified in parameter |
fr.paris.lutece.plugins.document.business.DocumentType |
getDocumentTypeByCode(java.lang.String strCode)
Returns an instance of a documentType whose identifier is specified in parameter |
static Files2DocsLinkDocument |
getInstance()
Gets the unique instance of Files2DocsLinkDocument |
java.util.Collection<fr.paris.lutece.plugins.document.business.DocumentType> |
getListDocumentTypeFile(java.util.Collection<java.lang.String> listAttributeTypeFile)
Gets the document types filtered by fields of type file |
java.util.Collection<java.lang.Integer> |
getListRegularExpressionKeyByIdAttribute(int nIdAttribute)
Gets all regular expression key associated to the attribute |
java.util.Collection<fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute> |
getMandatoryAttributes(java.lang.String strDocumentTypeCode)
Gets mandatory attributes for the document type |
java.lang.String |
getSpacesBrowser(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.business.user.AdminUser user,
java.util.Locale locale)
Gets the HTML code to display the spaces browser |
boolean |
isAuthorizedAdminDocument(int nIdSpace,
java.lang.String strDocumentTypeId,
fr.paris.lutece.portal.business.user.AdminUser user)
Checks that a given user is allowed to access a document type for a given permission in a document space specified in parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Files2DocsLinkDocument getInstance()
public java.util.Collection<fr.paris.lutece.plugins.document.business.DocumentType> getListDocumentTypeFile(java.util.Collection<java.lang.String> listAttributeTypeFile)
listAttributeTypeFile - The list of document attributes types (codes) with a field of type file
public java.lang.String getSpacesBrowser(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.business.user.AdminUser user,
java.util.Locale locale)
request - The HTTP requestuser - The current userlocale - The current locale
public boolean isAuthorizedAdminDocument(int nIdSpace,
java.lang.String strDocumentTypeId,
fr.paris.lutece.portal.business.user.AdminUser user)
nIdSpace - The document space identifierstrDocumentTypeId - The identifier of the type document being considereduser - The user trying to access the resource
public java.util.Collection<fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute> getMandatoryAttributes(java.lang.String strDocumentTypeCode)
strDocumentTypeCode - The document type code
public java.util.Collection<fr.paris.lutece.plugins.document.business.attributes.AttributeTypeParameter> getAttributeTypeParameterList(java.lang.String strAttributeTypeCode,
java.util.Locale locale)
strAttributeTypeCode - The attribute type codelocale - The current locale
public java.util.Collection<fr.paris.lutece.plugins.document.business.attributes.AttributeTypeParameter> getAttributeParametersValues(int nAttributeId,
java.util.Locale locale)
nAttributeId - The attribute identifierlocale - The current locale
public java.lang.String createDocument(fr.paris.lutece.plugins.document.business.Document document,
fr.paris.lutece.portal.business.user.AdminUser user)
document - The documentuser - The user doing the action
public fr.paris.lutece.plugins.document.business.Document getDocumentById(int nKey)
nKey - The primary key of the document
public fr.paris.lutece.plugins.document.business.DocumentType getDocumentTypeByCode(java.lang.String strCode)
strCode - The document type code (primary key)
public fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute getDocumentAttributeById(int nKey)
nKey - The primary key of the documentAttribute
public java.util.Collection<java.lang.Integer> getListRegularExpressionKeyByIdAttribute(int nIdAttribute)
nIdAttribute - The identifier of the document attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||