Package org.cyclos.impl.users
Interface GeneralReferenceServiceLocal
-
- All Superinterfaces:
CRUDService<GeneralReferenceDTO,GeneralReferenceData,GeneralReferenceDataParams>,CRUDServiceLocal<GeneralReference,GeneralReferenceDTO,GeneralReferenceData,GeneralReferenceDataParams>,GeneralReferenceService,Service
- All Known Implementing Classes:
GeneralReferenceServiceImpl
public interface GeneralReferenceServiceLocal extends GeneralReferenceService, CRUDServiceLocal<GeneralReference,GeneralReferenceDTO,GeneralReferenceData,GeneralReferenceDataParams>
Local interface forGeneralReferenceService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountReceived(User user)Returns the number of received general references for the given userGeneralReferenceget(User from, User to)Returns the reference from / to the given users, or throws anEntityNotFoundExceptionif none is foundList<ReferenceLevel>getReferenceLevels()Returns the available reference levelsbooleanhasReferences(User user)Returns if the user has given or received any referencevoidremoveAll(User user)Removes all references of the given user (both received and given), as well as the reference history-
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.users.GeneralReferenceService
getSearchData, getStatistics, search
-
-
-
-
Method Detail
-
countReceived
int countReceived(User user)
Returns the number of received general references for the given user
-
get
GeneralReference get(User from, User to)
Returns the reference from / to the given users, or throws anEntityNotFoundExceptionif none is found
-
getReferenceLevels
List<ReferenceLevel> getReferenceLevels()
Returns the available reference levels
-
hasReferences
boolean hasReferences(User user)
Returns if the user has given or received any reference
-
removeAll
void removeAll(User user)
Removes all references of the given user (both received and given), as well as the reference history
-
-