Skip to Content
0
Former Member
Apr 08, 2015 at 10:12 AM

Custmize CMS Restriction Error

756 Views

I defined own restriction called MyStoreTypeRestriction like below.

but, I got a error when I ant clean all. [yjavac] 1. ERROR in D:\xxxx\my-hybris\extensions\my\mycore\src\com\my\cms2\jalo\restrictions\MyStoreTypeRestriction.java (at line 9) [yjavac] public class MyStoreTypeRestriction extends GeneratedMyStoreTypeRestriction [yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^ [yjavac] The type MyStoreTypeRestriction must implement the inherited abstract method AbstractRestriction.getDescription(SessionContext) [yjavac] ---------- [yjavac] ---------- [yjavac] 2. ERROR in D:\xxxx\my-hybris\extensions\my\mycore\src\com\my\core\jalo\MyStoreTypeRestriction.java (at line 9) [yjavac] public class MyStoreTypeRestriction extends GeneratedmyStoreTypeRestriction [yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [yjavac] GeneratedmyStoreTypeRestriction cannot be resolved to a type [yjavac] ---------- [yjavac] 3. ERROR in D:\xxxx\my-hybris\extensions\my\mycore\src\com\my\core\jalo\MyStoreTypeRestriction.java (at line 15) [yjavac] protected Item createItem(final SessionContext ctx, final ComposedType type, final ItemAttributeMap allAttributes) throws JaloBusinessException [yjavac] ^^^^^^^^^^^^^^^^ [yjavac] ItemAttributeMap cannot be resolved to a type [yjavac] ---------- [yjavac] ---------- [yjavac] 4. ERROR in D:\xxxx\my-hybris\extensions\my\mycore\src\de\hybris\platform\cms2\jalo\restrictions\MyStoreTypeRestriction.java (at line 22) [yjavac] public class MyStoreTypeRestriction extends GeneratedMyStoreTypeRestriction [yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [yjavac] GeneratedMyStoreTypeRestriction cannot be resolved to a type [yjavac] ---------- [yjavac] 5. ERROR in D:\xxxx\my-hybris\extensions\my\mycore\src\de\hybris\platform\cms2\jalo\restrictions\MyStoreTypeRestriction.java (at line 28) [yjavac] protected Item createItem(final SessionContext ctx, final ComposedType type, final ItemAttributeMap allAttributes) throws JaloBusinessException [yjavac] ^^^^^^^^^^^^^^^^ [yjavac] ItemAttributeMap cannot be resolved to a type [yjavac] ----------

pls, suggest how to resolve these errors, thanks.