◆ VisualElement()
◆ addBusinessGrouping()
Definition at line 166 of file VisualElement.java.
167 if(businessGroupings ==
null) {
168 businessGroupings =
new HashSet<>();
170 businessGroupings.add(grouping);
◆ addBusinessSyndication()
Definition at line 158 of file VisualElement.java.
159 if(businessSyndications ==
null) {
160 businessSyndications =
new HashSet<>();
162 businessSyndications.add(syndication);
◆ addGrouping()
Definition at line 150 of file VisualElement.java.
151 if(groupings ==
null) {
152 groupings =
new HashSet<>();
154 groupings.add(grouping);
◆ addSubElement()
Definition at line 174 of file VisualElement.java.
175 if(subElements ==
null) {
176 subElements = (F) factory.createSubElements();
178 V v = (V) factory.createElement(name);
180 return subElements.add(v) ? v :
null;
◆ addSyndication()
Definition at line 142 of file VisualElement.java.
143 if(syndications ==
null) {
144 syndications =
new HashSet<>();
146 syndications.add(syndication);
◆ allows()
Definition at line 80 of file VisualElement.java.
82 return dve ==
null || dve.check(entity, contact);
VisualElement getElement(String name)
VisualElement(String name, F factory)
◆ check()
Definition at line 61 of file VisualElement.java.
boolean emptyConstraints()
boolean checkContact(IContact contact)
boolean checkConstraints(E entity, IContact contact)
abstract boolean emptyEntityConstraints()
boolean isNullOrFalse(Boolean value)
◆ checkAllMatch()
◆ checkAnyMatch()
◆ checkConstraints()
Definition at line 183 of file VisualElement.java.
185 if(!Strings.isBlank(role) && !contact.getPermissions().isInRole(role)) {
188 IContact business = contact.getBusiness();
189 business = (business !=
null && business.isValid()) ? business :
null;
192 checkSyndications(contact) ||
193 checkGroupings(contact) ||
194 checkBusinessSyndications(business) ||
195 checkBusinessGroupings(business) ||
196 checkRoles(contact) ||
abstract boolean checkAllMatch(E entity, IContact contact)
boolean checkEval(E entity, IContact contact)
abstract boolean checkAnyMatch(E entity, IContact contact)
◆ checkContact()
◆ checkEval()
◆ compareTo()
Definition at line 295 of file VisualElement.java.
296 if(o ==
null)
return 0;
297 int result = CompareUtil.compare(this.order, o.order);
299 result = CompareUtil.compare(this.name, o.name);
◆ emptyConstraints()
Definition at line 202 of file VisualElement.java.
203 return eval ==
null && role ==
null && syndications ==
null && groupings ==
null &&
204 businessSyndications ==
null && businessGroupings ==
null &&
205 admin ==
null && worker ==
null && student ==
null && hhrr ==
null;
◆ emptyEntityConstraints()
◆ equals()
Definition at line 313 of file VisualElement.java.
320 if (getClass() != obj.getClass()) {
323 final VisualElement<?, ?, ?> other = (VisualElement<?, ?, ?>) obj;
324 if (this.order != other.order) {
327 if (!Objects.equals(
this.name, other.name)) {
◆ getElement() [1/2]
◆ getElement() [2/2]
◆ getLabel()
◆ getName()
◆ getOrder()
◆ getParent()
◆ getScript()
◆ getSubElements()
◆ hashCode()
Definition at line 305 of file VisualElement.java.
307 hash = 97 * hash + Objects.hashCode(this.name);
308 hash = 97 * hash + this.order;
◆ hasScript()
◆ isNullOrFalse()
Definition at line 271 of file VisualElement.java.
272 return value ==
null || value.equals(Boolean.FALSE);
◆ isVisitor()
◆ setAdmin()
◆ setHHRR()
◆ setLabel()
◆ setName()
◆ setOrder()
◆ setParent()
◆ setRole()
◆ setStudent()
◆ setVisitor()
◆ setWorker()
The documentation for this class was generated from the following file: