Package org.cyclos.impl.marketplace
Interface AdCustomFieldServiceLocal
-
- All Superinterfaces:
AdCustomFieldService,BaseCustomFieldService<AdCustomFieldDTO,AdCustomFieldData,Void>,CRUDService<AdCustomFieldDTO,AdCustomFieldData,Void>,CRUDServiceLocal<AdCustomField,AdCustomFieldDTO,AdCustomFieldData,Void>,Service
public interface AdCustomFieldServiceLocal extends AdCustomFieldService, CRUDServiceLocal<AdCustomField,AdCustomFieldDTO,AdCustomFieldData,Void>
Local interface for ad custom fields
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ViewManageOperationgetOperation(AdCustomField field, User owner)Returns whether the given field can be viewed or managed over the given ownerList<AdCustomField>listAll()Lists all advertisement custom fieldsList<AdCustomField>listEnabled(User owner)Lists visible advertisement custom fields for the given ad ownerList<AdCustomField>listManagedFieldEnabledToOwner(User owner)Returns a list with all enabled custom fields for the given owner and managed by the logged user.List<AdCustomField>listVisible(User owner, boolean userManager)Returns a list of the custom fields that meets with the following conditions: If userManager is true, then it returns the visible custom fields to the logged user manager.List<AdCustomFieldActions>listVisibleActionsEnabledToOwner(User owner)Returns a list of all the enabled custom fields and the possible actions over each custom fieldList<AdCustomField>listVisibleFieldEnabledToOwner(User owner)Returns a list with all enabled custom fields for the given owner and visible for the logged user.-
Methods inherited from interface org.cyclos.services.marketplace.AdCustomFieldService
list
-
Methods inherited from interface org.cyclos.services.system.BaseCustomFieldService
saveOrder
-
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
-
-
-
-
Method Detail
-
getOperation
ViewManageOperation getOperation(AdCustomField field, User owner)
Returns whether the given field can be viewed or managed over the given owner
-
listAll
List<AdCustomField> listAll()
Lists all advertisement custom fields
-
listEnabled
List<AdCustomField> listEnabled(User owner)
Lists visible advertisement custom fields for the given ad owner
-
listManagedFieldEnabledToOwner
List<AdCustomField> listManagedFieldEnabledToOwner(User owner)
Returns a list with all enabled custom fields for the given owner and managed by the logged user.
-
listVisible
List<AdCustomField> listVisible(User owner, boolean userManager)
Returns a list of the custom fields that meets with the following conditions: If userManager is true, then it returns the visible custom fields to the logged user manager. If an owner is also specified, the result will only include the enabled ones to the owner. If userManager is false, then it returns the visible custom fields to the logged member.
-
listVisibleActionsEnabledToOwner
List<AdCustomFieldActions> listVisibleActionsEnabledToOwner(User owner)
Returns a list of all the enabled custom fields and the possible actions over each custom field
-
listVisibleFieldEnabledToOwner
List<AdCustomField> listVisibleFieldEnabledToOwner(User owner)
Returns a list with all enabled custom fields for the given owner and visible for the logged user.
-
-