Interface DocumentServiceLocal
-
- All Superinterfaces:
CRUDService<DocumentDTO,DocumentData,DocumentDataParams>,CRUDServiceLocal<Document,DocumentDTO,DocumentData,DocumentDataParams>,DocumentService,Service
- All Known Implementing Classes:
DocumentServiceImpl
public interface DocumentServiceLocal extends DocumentService, CRUDServiceLocal<Document,DocumentDTO,DocumentData,DocumentDataParams>
Local interface forDocumentService
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_DOCUMENTScript attribute: the document
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDocumentCount(User user)Returns the documents count for the given userbooleanhasDocuments(User user)Return true if the member have at least one document to viewbooleanhasIndividualDocuments(User user)Returns true if the user have at least one individual document to viewbooleanhasSharedDocuments(User user)Returns true if the user have at least one shared document to viewvoidremoveAll(User user)Remove all indivitual documents for the given user-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
Methods inherited from interface org.cyclos.services.contentmanagement.DocumentService
getDocument, getDocumentFile, getDocumentSearchData, getProcessDynamicDocumentData, listUserDocuments, processDynamicDocument, readContent, saveFile, saveWithFile, search
-
-
-
-
Field Detail
-
ATTR_DOCUMENT
static final String ATTR_DOCUMENT
Script attribute: the document- See Also:
- Constant Field Values
-
-
Method Detail
-
getDocumentCount
int getDocumentCount(User user)
Returns the documents count for the given user
-
hasDocuments
boolean hasDocuments(User user)
Return true if the member have at least one document to view
-
hasIndividualDocuments
boolean hasIndividualDocuments(User user)
Returns true if the user have at least one individual document to view
-
hasSharedDocuments
boolean hasSharedDocuments(User user)
Returns true if the user have at least one shared document to view
-
removeAll
void removeAll(User user)
Remove all indivitual documents for the given user
-
-